这是我的pod文件:
platform :ios, '8.0'
use_frameworks!
target 'TestApp' do
...
end
pod install
之后我收到以下错误:
[!] The `TestApp [Debug]` target overrides the `OTHER_SWIFT_FLAGS` build setting defined in `Pods/Target Support Files/Pods-TestApp/Pods-TestApp.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `TestApp [Release]` target overrides the `OTHER_SWIFT_FLAGS` build setting defined in `Pods/Target Support Files/Pods-TestApp/Pods-TestApp.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
如何解决此问题?
答案 0 :(得分:58)
答案 1 :(得分:0)
我也遇到同样的问题,我必须使用多个目标和cocoapods
您可以在目标中添加多个swift标志->构建设置--->其他Swift标志。