我在我的项目中使用,之前一直正常工作,但是升级到Xcode 14后出现了不同类型的错误。
首先它要求启用位码(bit code),然后要求指定开发团队,我通过在Podfile中使用以下脚本解决了这个问题。
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
#config.build_settings['BITCODE_GENERATION_MODE'] = 'bitcode'
config.build_settings['ENABLE_BITCODE'] = 'YES'
config.build_settings["DEVELOPMENT_TEAM"] = " Your Team ID "
end
end
end
解决了那些错误之后,又出现了另一个错误,即:
错误构建:无法签署代码,因为目标没有 Info.plist 文件,且未自动生成。使用 INFOPLIST_FILE 构建设置为目标应用 Info.plist 文件,或通过将 GENERATE_INFOPLIST_FILE 构建设置设置为 YES(推荐)自动生成一个。
我的 pods 已经更新,CocoaPods 版本为 1.11.3
。我该如何解决这个错误?
编辑:
这里提到了一些细节here,但对我都不起作用。