I get a No such module for Pods when I try to build a project. If I delete the code waiting for this Pod, another βNo such moduleβ is suitable for the other Pod, which means that each Pod must be affected. When I type pod install , I get the following messages:
[!] The X target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT` build setting defined in `X'. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag, or - Remove the build settings from the target. [!] The `X` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `X'. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag, or - Remove the build settings from the target.
I get each of them both for debugging and for releasing versions of my application and two tests, so there are only 12 messages.
I set Always Embed Swift Standard Libraries and EMBEDDED_CONTENT_CONTAINS_SWIFT to NO and YES in my build settings, and did nothing. I also added the following code to my subfile, and it didn't work either:
post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO' end end end
ios xcode swift xcode8 cocoapods
Questioner Sep 19 '16 at 9:30 2016-09-19 09:30
source share