错误:exportArchive:找不到'io.ionic.starter'的配置文件 [英] error: exportArchive: No profiles for 'io.ionic.starter' were found
问题描述
我正在尝试构建我的离子3应用程序并在我的设备上部署和livereload,因为我正在尝试以下命令:
离子cordova运行ios --device --prod -lcs
但是在运行该命令后,我得到以下错误:
错误:exportArchive:找不到'io.ionic.starter'的个人资料
和
否发现'io.ionic.starter'的个人资料UserInfo = {NSLocalizedDescription =找不到'io.ionic.starter'的个人资料,NSLocalizedRecoverySuggestion = Xcode找不到任何匹配'io.ionic.starter的iOS应用开发资源配置文件。自动签名已禁用,无法生成配置文件。要启用自动签名,请将-allowProvisioningUpdates传递给xcodebuild。}
它说到启用自动签名,将-allowProvisioningUpdates传递给xcodebuild。
但是如何在cordova中?
一些额外的错误输出。如下所示,首先存档成功
但随后失败。
** ARCHIVE SUCCEEDED **
2018-03-21 15:34:28.042 xcodebuild [1673:18415] [MT] IDEDistribution: - [IDEDistributionLogging _createLoggingBundleAtPath:]:在路径'/ var创建的包/folders/rh/w_gp1jjn4zz2mhhhnkq3_xqh0000gn/T/RemoteWorkersEvents_2018-03-21_15-34-28.034.xcdistributionlogs'。
2018-03-21 15:34:31.900 xcodebuild [1673:18415] [MT] IDEDistribution:步骤失败:< IDEDistributionSigningAssetsStep:0x7fa985924610>:Error Domain = IDEDistributionSigningAssetStepErrorDomain Code = 0查找签名资产失败。 UserInfo = {NSLocalizedDescription =定位签名资产失败。,IDEDistributionSigningAssetStepUnderlyingErrors =(
错误域= IDEProfileLocatorErrorDomain代码= 1 \找不到'io.ionic.starter'的配置文件\UserInfo = {NSLocalizedDescription = No发现'io.ionic.starter'的个人资料,NSLocalizedRecoverySuggestion = Xcode找不到与'io.ionic.starter'匹配的任何iOS App Development配置文件。自动签名被禁用且无法生成个人资料。要启用自动签名,将-allowProvisioningUpdates传递给xcodebuild。}
)}
错误:exportArchive:找不到'io.ionic.starter'的配置文件
错误域= IDEProfileLocatorErrorDomain Code = 1没有找到'io.ionic.starter'的配置文件UserInfo = {NSLocalizedDescription =找不到'io.ionic.starter'的配置文件,NSLocalizedRecoverySuggestion = Xcode找不到任何匹配'io.i的iOS应用开发配置文件onic.starter。自动签名已禁用,无法生成配置文件。要启用自动签名,请将-allowProvisioningUpdates传递给xcodebuild。}
** EXPORT FAILED **
(节点:1256)UnhandledPromiseRejectionWarning:命令的错误代码70:带args的xcodebuild :-exportArchive,-archivePath,RemoteWorkersEvents.xcarchive,-exportOptionsPlist,/ Users / zafar / Documents / Projects / dne / ne-frontend / platforms / ios / exportOptions.plist,-exportPath,/ Users / zafar / Documents / Projects / dne / ne-frontend / platforms / ios / build / device
(node:1256)UnhandledPromiseRejectionWarning:未处理的承诺拒绝。此错误源于通过抛出异步函数而没有catch块,或者拒绝未使用.catch()处理的promise。 (拒绝ID:1)
(节点:1256)[DEP0018]弃用警告:弃用未处理的承诺拒绝。将来,未处理的承诺拒绝将使用非零退出代码终止Node.js进程。
这是更多输出
签名身份:iPhone开发者:email@email.com(7V8DET9FFF)
***** ------>>> ;>>配置文件:iOS团队配置文件:io.ionic.dne//< ---这里说的是不同的配置文件,这是正确的,因为我在xcode中为此项目设置了它。
(c37524bf-b317-4957-85a4-01877cfac047)
/ usr / bin / codesign --force --sign 0180A41A2E305542B7292E256F380F50BADCD73B --entitlements / Users / zafar / Library / Developer / Xcode / DerivedData / RemoteWorkersEvents -dxaeeftqppxbkmehuratdfbvdnom / Build / Intermediates.noindex / ArchiveIntermediates / RemoteWorkersEvents / IntermediateBuildFilesPath / RemoteWorkersEvents.build / Debug-iphoneos / RemoteWorkersEvents.build / RemoteWorkersEvents.app.xcent --timestamp = none / Users / zafar / Library / Developer / Xcode /DerivedData/RemoteWorkersEvents-dxaeeftqppxbkmehuratdfbvdnom/Build/Intermediates.noindex/ArchiveIntermediates/RemoteWorkersEvents/InstallationBuildProductsLocation/Applications/RemoteWorkersEvents.app
Validate / Users / zafar / Library / Developer / Xcode / DerivedData / RemoteWorkersEvents-dxaeeftqppxbkmehuratdfbvdnom / Build / Intermediates.noindex / ArchiveIntermediates / RemoteWorkersEvents / InstallationBuildProductsLocation / Applications / RemoteWorkersEvents.app
cd / Users / zafar / D ocuments / Projects / dne / ne-frontend / platforms / ios
export PATH =/ Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin:/Applications/Xcode.app /Contents/Developer/usr/bin:/Users/zafar/Documents/Projects/dne/ne-frontend/node_modules/.bin:/Users/zafar/.nvm/versions/node/v9.6.1/bin:/usr/ local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin
export PRODUCT_TYPE = com.apple.product-type.application
builtin-validationUtility / Users / zafar / Library / Developer / Xcode / DerivedData / RemoteWorkersEvents-dxaeeftqppxbkmehuratdfbvdnom / Build / Intermediates.noindex / ArchiveIntermediates / RemoteWorkersEvents / InstallationBuildProductsLocation / Applications / RemoteWorkersEvents.app
Touch build / device / RemoteWorkersEvents.app.dSYM
cd / Users / zafar / Documents / Projects / dne / ne-frontend / platforms / ios
export PATH =/ Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin:/应用程序/ Xcode.app /内容/开发人员的/ usr / bin中:/我们ERS /扎法尔/文件/项目/ DNE / NE-前端/ node_modules / .bin文件:/Users/zafar/.nvm/versions/node/v9.6.1/bin:在/ usr / local / bin目录:在/ usr / bin中:/ bin:/ usr / sbin:/ sbin
/ usr / bin / touch -c /Users/zafar/Documents/Projects/dne/ne-frontend/platforms/ios/build/device/RemoteWorkersEvents.app.dSYM
**存档成功**
2018-03-24 13:47:59.274 xcodebuild [3032:92302] [MT] IDEDistribution: - [IDEDistributionLogging _createLoggingBundleAtPath:]:在路径'/var/folders/rh/w_gp1jjn4zz2mhhhnkq3_xqh0000gn/T/RemoteWorkersEvents_2018-03-24_13-47-59.269.xcdistributionlogs'中创建了捆绑包。
2018-03-24 13:48:02.328 xcodebuild [3032:92302] [MT] IDEDistribution:步骤失败:< IDEDistributionSigningAssetsStep:0x7fb937015e10>:Error Domain = IDEDistributionSigningAssetStepErrorDomain Code = 0查找签名资产失败。 UserInfo = {NSLocalizedDescription =定位签名资产失败。,IDEDistributionSigningAssetStepUnderlyingErrors =(
错误域= IDEProfileLocatorErrorDomain代码= 1 \找不到'io.ionic.starter'的配置文件\UserInfo = {NSLocalizedDescription = No发现'io.ionic.starter'的个人资料,NSLocalizedRecoverySuggestion = Xcode找不到与'io.ionic.starter'匹配的任何iOS App Development配置文件。自动签名被禁用且无法生成个人资料。要启用自动签名,将-allowProvisioningUpdates传递给xcodebuild。}
)}
***** ------>>>>>错误:exportArchive:找不到'io.ionic.starter'的配置文件//< ---这里它说的是默认的不同配置文件,但我将它更改为
以上的错误域= IDEProfileLocatorErrorDomain Code = 1找不到'io.ionic.starter'的配置文件UserInfo = {NSLocalizedDescription =找不到'io.ionic.starter'的配置文件,NSLocalizedRecoverySuggestion = Xcode找不到任何匹配的iOS App Development配置文件' io.ionic.starter。自动签名已禁用,无法生成配置文件。要启用自动签名,请将-allowProvisioningUpdates传递给xcodebuild。}
** EXPORT FAILED **
(节点:2553)UnhandledPromiseRejectionWarning:命令的错误代码70:带args的xcodebuild :-exportArchive,-archivePath,RemoteWorkersEvents.xcarchive,-exportOptionsPlist,/ Users / zafar / Documents / Projects / dne / ne-frontend / platforms / ios / exportOptions.plist,-exportPath,/ Users / zafar / Documents / Projects / dne / ne-frontend / platforms / ios / build / device
(node:2553)UnhandledPromiseRejectionWarning:未处理的承诺拒绝。此错误源于通过抛出异步函数而没有catch块,或者拒绝未使用.catch()处理的promise。 (拒绝ID:1)
(节点:2553)[DEP0018]弃用警告:弃用未处理的承诺拒绝。将来,未处理的承诺拒绝将使用非零退出代码终止Node.js进程。
请检查以开头的行***** ***** - >>>>>
这是我关注的两条线,我觉得有些奇怪的事情发生在那里。任何想法在这里发生了什么以及如何解决这个问题?
要在iOS设备上部署和测试应用程序,您需要创建开发者证书&供应配置文件。
iOS开发人员需要生成供应配置文件,以代码签署
他们的应用程序进行测试。好消息是,从iOS9开始,您可以在没有付费Apple
开发者帐户的情况下,在iOS设备上开发和测试您的应用程序。这对于想要使用Ionic进行移动开发的开发人员来说尤其有用,因为它可以节省成本,但是b $ b仍然提供了拥有完整的Apple Developer
帐户的许多功能。有关所包含功能的完整细分,请查看
添加您的Apple帐户凭据:
现在回到离子项目并按照以下步骤操作:
使用以下命令运行应用程序的构建(生产或调试)
$ ionic cordova build ios --prod
- 打开
.xcworkspace
Xcode中路径platforms / ios /
的文件。
对于XCode中的配置文件选择,请按照以下步骤操作:
现在转到您的应用程序设置(通过单击左侧菜单面板中的应用程序名称)
选中自动管理登录(通过检查此Xcode)将自动创建个人资料)
现在设置了所有这些后,您的应用已准备好在设备上进行测试,有两种方法可以在设备上运行您的应用。
点击左上角的播放按钮,直接从XCode运行您的应用。
运行
$ ionic cordova通过您的离子项目终端运行ios --device
。
希望以上步骤将有助于在iOS设备上运行您的应用。
有用的li nks:
I am trying to build my ionic 3 application and deploy and livereload on my device for that reason I am trying following command:
ionic cordova run ios --device --prod -lcs
But after running that command, I get below error:
error: exportArchive: No profiles for 'io.ionic.starter' were found
and
"No profiles for 'io.ionic.starter' were found" UserInfo={NSLocalizedDescription=No profiles for 'io.ionic.starter' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Development provisioning profiles matching 'io.ionic.starter'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}
It says
To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
but how in cordova?Some additional error output. As you can see below, first
Archive Succeeded
but then it failed.** ARCHIVE SUCCEEDED ** 2018-03-21 15:34:28.042 xcodebuild[1673:18415] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/rh/w_gp1jjn4zz2mhhhnkq3_xqh0000gn/T/RemoteWorkersEvents_2018-03-21_15-34-28.034.xcdistributionlogs'. 2018-03-21 15:34:31.900 xcodebuild[1673:18415] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fa985924610>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=( "Error Domain=IDEProfileLocatorErrorDomain Code=1 \"No profiles for 'io.ionic.starter' were found\" UserInfo={NSLocalizedDescription=No profiles for 'io.ionic.starter' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Development provisioning profiles matching 'io.ionic.starter'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}" )} error: exportArchive: No profiles for 'io.ionic.starter' were found Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for 'io.ionic.starter' were found" UserInfo={NSLocalizedDescription=No profiles for 'io.ionic.starter' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Development provisioning profiles matching 'io.ionic.starter'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.} ** EXPORT FAILED ** (node:1256) UnhandledPromiseRejectionWarning: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,RemoteWorkersEvents.xcarchive,-exportOptionsPlist,/Users/zafar/Documents/Projects/dne/ne-frontend/platforms/ios/exportOptions.plist,-exportPath,/Users/zafar/Documents/Projects/dne/ne-frontend/platforms/ios/build/device (node:1256) 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:1256) [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.
Here is more output
Signing Identity: "iPhone Developer: email@email.com (7V8DET9FFF)" *****------>>>>> Provisioning Profile: "iOS Team Provisioning Profile: io.ionic.dne" // <--- Here it says different profile which is correct because I set it up in xcode for this project. (c37524bf-b317-4957-85a4-01877cfac047) /usr/bin/codesign --force --sign 0180A41A2E305542B7292E256F380F50BADCD73B --entitlements /Users/zafar/Library/Developer/Xcode/DerivedData/RemoteWorkersEvents-dxaeeftqppxbkmehuratdfbvdnom/Build/Intermediates.noindex/ArchiveIntermediates/RemoteWorkersEvents/IntermediateBuildFilesPath/RemoteWorkersEvents.build/Debug-iphoneos/RemoteWorkersEvents.build/RemoteWorkersEvents.app.xcent --timestamp=none /Users/zafar/Library/Developer/Xcode/DerivedData/RemoteWorkersEvents-dxaeeftqppxbkmehuratdfbvdnom/Build/Intermediates.noindex/ArchiveIntermediates/RemoteWorkersEvents/InstallationBuildProductsLocation/Applications/RemoteWorkersEvents.app Validate /Users/zafar/Library/Developer/Xcode/DerivedData/RemoteWorkersEvents-dxaeeftqppxbkmehuratdfbvdnom/Build/Intermediates.noindex/ArchiveIntermediates/RemoteWorkersEvents/InstallationBuildProductsLocation/Applications/RemoteWorkersEvents.app cd /Users/zafar/Documents/Projects/dne/ne-frontend/platforms/ios export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/zafar/Documents/Projects/dne/ne-frontend/node_modules/.bin:/Users/zafar/.nvm/versions/node/v9.6.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" export PRODUCT_TYPE=com.apple.product-type.application builtin-validationUtility /Users/zafar/Library/Developer/Xcode/DerivedData/RemoteWorkersEvents-dxaeeftqppxbkmehuratdfbvdnom/Build/Intermediates.noindex/ArchiveIntermediates/RemoteWorkersEvents/InstallationBuildProductsLocation/Applications/RemoteWorkersEvents.app Touch build/device/RemoteWorkersEvents.app.dSYM cd /Users/zafar/Documents/Projects/dne/ne-frontend/platforms/ios export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/zafar/Documents/Projects/dne/ne-frontend/node_modules/.bin:/Users/zafar/.nvm/versions/node/v9.6.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /usr/bin/touch -c /Users/zafar/Documents/Projects/dne/ne-frontend/platforms/ios/build/device/RemoteWorkersEvents.app.dSYM ** ARCHIVE SUCCEEDED ** 2018-03-24 13:47:59.274 xcodebuild[3032:92302] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/rh/w_gp1jjn4zz2mhhhnkq3_xqh0000gn/T/RemoteWorkersEvents_2018-03-24_13-47-59.269.xcdistributionlogs'. 2018-03-24 13:48:02.328 xcodebuild[3032:92302] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fb937015e10>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=( "Error Domain=IDEProfileLocatorErrorDomain Code=1 \"No profiles for 'io.ionic.starter' were found\" UserInfo={NSLocalizedDescription=No profiles for 'io.ionic.starter' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Development provisioning profiles matching 'io.ionic.starter'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}" )} *****------>>>>> error: exportArchive: No profiles for 'io.ionic.starter' were found // <--- Here it says different profile which is default but I changed it the one above Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for 'io.ionic.starter' were found" UserInfo={NSLocalizedDescription=No profiles for 'io.ionic.starter' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Development provisioning profiles matching 'io.ionic.starter'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.} ** EXPORT FAILED ** (node:2553) UnhandledPromiseRejectionWarning: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,RemoteWorkersEvents.xcarchive,-exportOptionsPlist,/Users/zafar/Documents/Projects/dne/ne-frontend/platforms/ios/exportOptions.plist,-exportPath,/Users/zafar/Documents/Projects/dne/ne-frontend/platforms/ios/build/device (node:2553) 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:2553) [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.
Please check the line begins with
*****------>>>>>
Those are the two lines I am concern with and I think something weird is happening there. Any Idea what is happening here and how can I fixe this?解决方案To deploy and test app on iOS device you need to create Developer Certificate & Provisioning Profile.
iOS developers need to generate a provisioning profile to code sign their apps for testing. The good news is that, as of iOS9, you can develop and test your apps on your iOS device without a paid Apple Developer account. This is particularly great for developers who want to try out mobile development with Ionic, since it saves the cost but still provides a lot of the features of having a full Apple Developer account. For a full breakdown of the features included, check out Apple’s docs.
Basic Requirements to run your iOS app :
- MacOS (10.10 or higher)
- Xcode 7 or higher
- iOS 9
- A free Apple ID or paid Apple Developer account
Need to Generate Certificate & Profile:
Open Your
XCode
--> Go topreferences
--> Account --> Add accountAdd Your Apple account credential:
Now Come back to ionic project and follow below steps:
Run a build (production or debug) of your app with below command
$ionic cordova build ios --prod
- Open the
.xcworkspace
file from pathplatforms/ios/
in Xcode.For Profile Selection from XCode follow below steps:
Now Go to your App Setting (By clicking on App name in Left Menu panel)
Check "Automatically manage signin" (by checking this Xcode will create profile automatically)
After setting all this now your app is ready to test on device there are 2 ways to run your app on device.
Directly run your app from XCode by hitting on play button on top left corner.
run
$ionic cordova run ios --device
through your ionic project terminal.Hope above steps will helps to run your app on iOS device.
Useful links :
这篇关于错误:exportArchive:找不到'io.ionic.starter'的配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!