cocoa pods 相关

pod 语法

  • Podfile语法
  • Podfile语法参考(译)

Pod 遇到的 警告和错误

  • Target overrides the OTHER_SWIFT_FLAGS build setting
pod 警告
Target overrides the `OTHER_SWIFT_FLAGS` build setting
详细警告信息:
[!] The `GuanAiBaoUITests [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-GuanAiBaoUITests/Pods-GuanAiBaoUITests.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.


原因: 在pod中添加了 单元测试
 target 'GuanAiBaoTests' do
    inherit! :search_paths
    # Pods for testing
    pod 'MMDrawerController','~>0.6.0'


解决: http://stackoverflow.com/questions/32683499/target-overrides-the-other-swift-flags-build-setting

1. Select your project
2. Switch to your project 's Build Settings panel.
3. Search for Other Swift Flags
4. Now you may see the value of Other Swift Flags shows in 

你可能感兴趣的:(cocoa pods 相关)