VS2015远程构建, Cordova 6.5.0, Xcode 9.3.1,
我努力但仍无法解决问题。有人可以帮忙吗?
错误讯息:
1> ** ARCHIVE SUCCEEDED **
1>MDAVSCLI : error : exportArchive: "XXX.app" requires a provisioning
profile with the Push Notifications feature
1> Error Domain=IDEProvisioningErrorDomain Code=9 ""XXX.app" requires a
provisioning profile with the Push Notifications feature." UserInfo=
{NSLocalizedDescription="XXX.app" requires a provisioning profile with the
Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to
the "provisioningProfiles" dictionary in your Export Options property list.}
1>
1> ** EXPORT FAILED **
1>
1> Error code 70 for command: xcodebuild with args: -exportArchive,-
archivePath,XXX.xcarchive,-
exportOptionsPlist,/Users/UserName/.taco_home/remote-builds/taco-
remote/builds/20190/cordovaApp/platforms/ios/exportOptions.plist,-
exportPath,/Users/UserName/.taco_home/remote-builds/taco-
remote/builds/20190/cordovaApp/platforms/ios/build/device
答案 0 :(得分:0)
这意味着您必须使用Xcode打开在MacOS上创建的.xcodeproj
文件,然后启用自动签名选项来管理签名和配置文件。只有这样,您才可以直接从Xcode进行构建和部署,而不会出现问题。
答案 1 :(得分:0)
将我的cordova项目升级到Cordova@7.1.0之后,并在下面更改我的build.json:
{
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "yourTemaID",
"packageType": "development",
"automaticProvisioning": true,
"buildFlag": [
"EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
"LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
]
},
"release": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "FG35JLLMXX4A",
"packageType": "app-store",
"automaticProvisioning": true,
"buildFlag": [
"EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
"LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
]
}
}}
现在,一切都像灵符一样!