我使用CocoaPods来管理项目中的依赖关系.我写了一个播客文件:
target 'MyApp' do
platform :ios, '8.0'
# Uncomment this line if you're using Swift or would like to use dynamic frameworks
#use_frameworks!
# Pods for MyApp
pod 'KeepLayout', :git => 'https://github.com/iMartinKiss/KeepLayout', :tag => 'v1.6.0'
pod 'EasyMapping'
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'MyAppUITests' do
inherit! :search_paths
# Pods for testing
end
end
这个文件在CocoaPods 0.x上工作得很好,但是在我更新到CocoaPods 1.0之后,我无法编译项目.在我跑完之后
pod update
我无法编译我的项目,出现错误:
/Users/<...>/Pods/KeepLayout/Sources/KeepAttribute.m:195:1: Cannot synthesize weak property because the current deployment target does not support weak references
我已经看到,每个库都是用不同的部署目标构建的.例如,KeepLayout是使用4.3部署目标构建的.
我如何确定每个Pod依赖项的构建目标?