错误:命令:带参数的xcodebuild的错误代码70:EXPORT FAILED

时间:2018-12-24 10:33:45

标签: ios xcode cordova ionic-framework xcode10.1

我的CLI信息:

Cordova CLI: 6.5.0
Ionic Framework Version: 1.3.4
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
ios-deploy version: 2.0.0 
ios-sim version: 7.0.0 
OS: Mac OS X El Capitan
Node Version: v6.10.2
Xcode version: Xcode 10.1 Build version 10B61 

我已经在更新Xcode 9.4并在Xocde 10.1中打开我的项目之后,在我的离子项目中添加了推送通知,该项目在Xcode 10.1中正常运行。当我在CLI中运行ionic build ios命令时,我的CLI中出现以下错误。我的应用程序正在设备上运行,但推送通知不起作用。

2018-12-24 15:54:32.585 xcodebuild[1441:238192] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/dl/T/app_2018-12-24_15-54-32.584.xcdistributionlogs'.
error: exportArchive: "app" requires a provisioning profile with the Push Notifications feature.

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

** EXPORT FAILED **

Error: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,app.xcarchive,-exportOptionsPlist,/Users/app/platforms/ios/exportOptions.plist,-exportPath,/Users/app/platforms/ios/build/device

我已删除iOS platform并再次添加,并检查了所有的开发,分发证书,推送通知设置配置文件,并再次添加到我的项目中,仍然收到此错误。 项目已在Xcode 9.4中通过推送通知正常运行,但在Xcode 10.1中不起作用。 我找不到确切的root原因是因为它与Xcode版本或任何证书问题有关? 谁能帮我? 预先谢谢你。

0 个答案:

没有答案