构建Cordova iOS应用程序时Phantomjs签名证书错误

时间:2018-09-10 17:56:34

标签: ios cordova phantomjs

我有一个Cordova应用,可以很好地为Android构建。当我尝试为iOS创建一个临时构建时,该构建工作正常,我收到“ Archive Succeeded”消息,然后它签名失败,并显示以下错误消息:

** ARCHIVE SUCCEEDED **

2018-09-10 10:47:48.414 xcodebuild[56102:560271] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/_9/vkdjn0vn43l032b80b1q87r40000gp/T/MyApp_2018-09-10_10-47-48.413.xcdistributionlogs'.
2018-09-10 10:47:56.330 xcodebuild[56102:560271] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7ffda418dd90>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
    "Error Domain=IDEProvisioningErrorDomain Code=14 \"\"phantomjs\" specifies a signing certificate for the wrong platform.\" UserInfo={NSLocalizedDescription=\"phantomjs\" specifies a signing certificate for the wrong platform., NSLocalizedRecoverySuggestion=Specify a signing certificate for the macOS platform in your Export Options property list.}"
)}
error: exportArchive: "phantomjs" specifies a signing certificate for the wrong platform.

Error Domain=IDEProvisioningErrorDomain Code=14 ""phantomjs" specifies a signing certificate for the wrong platform." UserInfo={NSLocalizedDescription="phantomjs" specifies a signing certificate for the wrong platform., NSLocalizedRecoverySuggestion=Specify a signing certificate for the macOS platform in your Export Options property list.}

** EXPORT FAILED **

(node:55728) UnhandledPromiseRejectionWarning: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,MyApp.xcarchive,-exportOptionsPlist,/Data/GIT/mycompany_myapp/source/platforms/ios/exportOptions.plist,-exportPath,/Data/GIT/mycompany_myapp/source/platforms/ios/build/device
(node:55728) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:55728) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

似乎已为iOS进行了所有设置,并且过去我们使用相同的设置构建了多个应用程序,而没有出现此错误。我什至删除了所有插件。我怀疑这是XCode问题,但我不知道它可能是什么。有什么想法吗?

0 个答案:

没有答案