Xcode14報(bào)錯(cuò)處理

應(yīng)蘋果要求2023.4.25之后提交送審必須使用Xcode14.1以上版本開發(fā),在此記錄一下升級遇到的報(bào)錯(cuò)問題處理。

CocoaPods報(bào)錯(cuò)

Signing for "xxx" requires a development team. Select a development team in the Signing & Capabilities editor.

  • 解決方案:
    修改Podfile文件,在Podfile中添加如下內(nèi)容:
#方案一
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
  end
end

#方案二
post_install do |installer|
  installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
          config.build_settings['CODE_SIGN_ALLOWED'] = 'NO'
          # 將Sign置為空
          # config.build_settings['CODE_SIGN_IDENTITY'] = ''
      end
  end
end

xxx.xcworkspace子工程報(bào)錯(cuò)

Ad Hoc code signing is not allowed with SDK 'iOS 16.2'

  • 解決方案:
    TARGETS - Build Settings - User-Defined,添加配置CODE_SIGNING_ALLOWED=NO
    signing.jpg

提交送審構(gòu)建包階段報(bào)錯(cuò)

"Unexpected CFBundleExecutable Key. The bundle at 'Payload/xxxxxxx.app/xxx.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."

  • 解決方案:
    找到該bundle內(nèi)的info.plist文件,打開后刪除CFBundleExecutable或Executable file 那一行對應(yīng)的配置,然后重新構(gòu)建打包即可。
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容