无法构建 cordova iOS 平台——错误 65 allowProvisioningUpdates

Cannot build cordova iOS platform -- error 65 allowProvisioningUpdates

我在尝试在 cordova 中构建 iOS 平台时遇到错误。我已经重新安装了平台,但我得到了同样的错误。这在几天前有效

你能帮我解决这个问题吗

xcode Version 10.0 (10A255)

my build call..

cordova build ios --release --buildConfig=build.json --device --buildFlag=-allowProvisioningUpdates --gradleArg=--no-daemon`

Here is error

Error: Error code 65 for command: xcodebuild with args: -
exportArchive,-archivePath,myapp.xcarchive,-exportOptionsPlist,/Users/Documents/Development/mymobile/dev/MobileV2/platforms/ios/exportOptions.plist,-exportPath,/Users/Documents/Development/mymobile/dev/MobileV2/platforms/ios/build/device,-allowProvisioningUpdates`

I have a build.json file that I use for the build

"codeSignIdentity": "iPhone Developer", "developmentTeam": "myid", "automaticProvisioning": true, "packageType": "app-store"

More --info

2018-10-19 13:01:08.558 xcodebuild[12415:403301] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/01/dln33_r97tzb95y8c1scy6bc0000gp/T/RandstadJobs_2018-10-19_13-01-08.558.xcdistributionlogs'. error: exportArchive: "RandstadJobs.app" requires a provisioning profile with the Push Notifications feature.

Here an error I see but now sure how to resolve it. I have push enable in the profile

Error Domain=IDEProvisioningErrorDomain Code=9 ""myapp.app" requires a provisioning profile with the Push Notifications feature."

UserInfo={NSLocalizedDescription="myapp.app" requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

您需要在 Xcode 的项目中启用推送通知,然后 select provisioning/developer 配置文件。最好允许自动签名和 select 您的 Apple 身份。它应该自己完成剩下的工作。

如果您使用 xcode10,您还需要将构建系统从新的更改为旧的

File -> WorkSpace Settings -> Build System: Legacy Build System