應(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)建打包即可。
