运行Cordova 7.0.1,Cordova-iOS 4.5.1,XCode 9.这是我的build.json:
{
"ios": {
"release": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "XXXXXXXXXX",
"packageType": "app-store"
}
}
}
执行cordova build ios --release
时,我通常没有问题。现在突然间我得到了以下错误。存档成功,但导出失败。我不确定它是否与XCode 9升级有关。
error: exportArchive: No profiles for 'xx.xxxxx.xxxx' were found
Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for 'xx.xxxxx.xxxx' were found"
UserInfo={NSLocalizedDescription=No profiles for 'xx.xxxxx.xxxx' were found,
NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching
'xx.xxxxx.xxxx'. Automatic signing is disabled and unable to generate a profile. To enable automatic
signing, pass -allowProvisioningUpdates to xcodebuild.}
任何帮助将不胜感激。谢谢!
答案 0 :(得分:1)
错误告诉您创建配置文件。转到https://developer.apple.com/account/并创建一个。然后在归档之前在codesigning部分的xcode中选择该配置文件。
导出是使用配置文件签署存档的步骤。打开xcode后,在中心窗口中选择目标。您应该看到下拉菜单,例如" Identity"和#34;签约"。您需要选择具有您的配置文件的正确团队。
答案 1 :(得分:0)
根据你需要的answer to this question cordova-ios 4.5.2 ie
cordova platform rm ios
cordova platform add ios@4.5.2
如果你使用push,,如果有必要,可以添加到Cordova build.json
"debug": {
"iCloudContainerEnvironment": "Development"
...
"release": {
"iCloudContainerEnvironment": "Production"
...
我最终得到了调试和发布版本。我通过将build.json“packageType”从“ad-hoc”更改为“development”来使调试版本工作。生产构建起初有同样的错误;我最终使用了Product>存档在Xcode中,然后cordova命令行构建工作......