由于没有选定的开发团队,这两个项目都不会使用 Xcode 14 beta 进行构建。两次都是带有蓝色乐高图标的目标(我想是捆绑包?)
似乎在早期版本的 Xcode 中,团队也没有设置,但它并没有导致构建错误。
在这里选择自己的开发团队会不会是错误的?
我使用CocoaPods来管理项目中的依赖项.我写过Podfile:
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
Run Code Online (Sandbox Code Playgroud)
这个文件适用于CocoaPods 0.x,但是在我更新到CocoaPods 1.0后我无法编译项目.我跑完之后
pod update
Run Code Online (Sandbox Code Playgroud)
我无法编译我的项目错误:
/Users/<...>/Pods/KeepLayout/Sources/KeepAttribute.m:195:1:无法合成弱属性,因为当前部署目标不支持弱引用
我已经看到每个库都使用不同的部署目标进行构建.例如,使用4.3部署目标构建KeepLayout.
我如何确定每个pod依赖项的构建目标?