I recently upgraded to Xcode 8 and an existing project for Swift 3. After many problems with Cocoapods, I decided to start from scratch. After running pod deintegrate
and removing Podfile
, Podfile.lock
and [Project].xcworkspace
, I had a clean slate before Cocoapods.
Then I did the following:
I opened the terminal at the project site and launched pod init
, then pod install
(using the stub file created by pod init
).
This turned out to be successful, but with the following two warnings:
[!] The `Xena [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Xena/Pods-Xena.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag, or - Remove the build settings from the target.
[!] The `Xena [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-Xena/Pods-Xena.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag, or - Remove the build settings from the target.
At this point, opening Xcode and building the project gives the error "There is no such module," which is quite expected.
Following the instructions of this question , this problem is resolved, and the reuse of pod install
is successful.
Closed Xcode, the added modules that I use in the subfile (see below) ran pod install
again. According to the terminal findings, this is successful.
Opened Xcode and built a project. I get the error "No such module" again, in particular No such module 'ReactiveCocoa'
I confirmed that the same problem occurs with SnapKit, Hue, KMPlaceholderTextView, KeychainSwift and Siren depending on the order of the import statements. For some reason, this problem does not affect any of the Google modules.
My subfile:
source share