post_install do |installer| installer.generated_projects.each do |project| project.targets.each do |target| target.build_configurations.each do |config| config.build_settings["DEVELOPMENT_TEAM"] = "Your Team ID" end end endend
方法三: 在 Podfile 文件 中设置 CODE_SIGN_IDENTITY (保举此方法)
post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0' config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = "" config.build_settings['CODE_SIGNING_REQUIRED'] = "NO" config.build_settings['CODE_SIGNING_ALLOWED'] = "NO" end endend三、XCode14打出来的包多了一些体系库
⚠️ 牢记:在Build Phases -> Link Binary With Librarires 内里添加 libswiftCoreGraphics.tbd。
否则xcode14打出来的包,在iOS12.2以下的体系找不到libswiftCoreGraphics.dylib而发生瓦解。
Xcode 14 beta 6下载官方地点(须要AppID登录)
iOS16 Beta8版 形貌文件下载官方地点(须要AppID登录)