错误:exportArchive:找不到“io.ionic.starter"的配置文件 [英] error: exportArchive: No profiles for 'io.ionic.starter' were found

查看:18
本文介绍了错误:exportArchive:找不到“io.ionic.starter"的配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建我的 ionic 3 应用程序并在我的设备上部署和实时重新加载,因此我正在尝试以下命令:

ionic cordova run ios --device --prod -lcs

但运行该命令后,我得到以下错误:

错误:exportArchive:找不到io.ionic.starter"的配置文件

"没有找到 'io.ionic.starter' 的配置文件" UserInfo={NSLocalizedDescription=没有找到 'io.ionic.starter' 的配置文件,NSLocalizedRecoverySuggestion=Xcode 找不到任何 iOS 应用程序开发配置与io.ionic.starter"匹配的配置文件.自动签名已禁用,无法生成配置文件.要启用自动签名,请将 -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-0-0-034-28.034.xcdistributionlogs'.2018-03-21 15:34:31.900 xcodebuild[1673:18415] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fa985924610>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0定位签名资产失败."UserInfo={NSLocalizedDescription=定位签名资产失败.,IDEDistributionSigningAssetStepUnderlyingErrors=("Error Domain=IDEProfileLocatorErrorDomain Code=1 "没有找到 'io.ionic.starter' 的配置文件" UserInfo={NSLocalizedDescription=没有找到 'io.ionic.starter' 的配置文件,NSLocalizedRecoverySuggestion=Xcode 找不到任何配置文件iOS App Development 配置配置文件匹配'io.ionic.starter'.自动签名被禁用并且无法生成配置文件.要启用自动签名,请将 -allowProvisioningUpdates 传递给 xcodebuild.}")}错误:exportArchive:找不到io.ionic.starter"的配置文件Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profile for 'io.ionic.starter' were found" UserInfo={NSLocalizedDescription=没有找到'io.ionic.starter'的配置文件,NSLocalizedRecoverySuggestion=Xcode 找不到任何iOS App Development与io.ionic.starter"匹配的配置文件.自动签名已禁用,无法生成配置文件.要启用自动签名,请将 -allowProvisioningUpdates 传递给 xcodebuild.}** 导出失败 **(节点:1256)UnhandledPromiseRejectionWarning:命令错误代码70: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(节点:1256) UnhandledPromiseRejectionWarning:未处理的承诺拒绝.此错误源于在没有 catch 块的情况下抛出异步函数内部,或拒绝未使用 .catch() 处理的承诺.(拒绝编号:1)(节点:1256)[DEP0018] DeprecationWarning:不推荐使用未处理的承诺拒绝.将来,未处理的 Promise 拒绝将使用非零退出代码终止 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/RemoteWorkersRemoteFileEventsWorkerIntermediates/RemoteWorkersRemoteFileEvents-iphoneos/RemoteWorkersEvents.build/RemoteWorkersEvents.app.xcent --timestamp=none/Users/zafar/Library/Developer/Xcode/DerivedData/RemoteWorkersEvents-dxaeeftqppxbkmehuratdfbvdnom/Build/Intermediates.noindex/ArchiveIntermediates/RemoteWorkersEvents/InstallationBuildProductsLocation/Applications/RemoteWorkersEvents.应用程序验证/Users/zafar/Library/Developer/Xcode/DerivedData/RemoteWorkersEvents-dxaeftqppxbkmehuratdfbvdnom/Build/Intermediates.noindex/ArchiveIntermediates/RemoteWorkersEvents/InstallationBuildProductsLocation/Applications/RemoteWorkersEvents.appcd/Users/zafar/Documents/Projects/dne/ne-frontend/platforms/ios导出 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"导出 PRODUCT_TYPE=com.apple.product-type.applicationbuiltin-validationUtility/Users/zafar/Library/Developer/Xcode/DerivedData/RemoteWorkersEvents-dxaeftqppxbkmehuratdfbvdnom/Build/Intermediates.noindex/ArchiveIntermediates/RemoteWorkersEvents/InstallationBuildProductsLocation/Applications/RemoteWorkersEvents.app触摸 build/device/RemoteWorkersEvents.app.dSYMcd/Users/zafar/Documents/Projects/dne/ne-frontend/platforms/ios导出 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** 存档成功 **2018-03-24 13:47:59.274 xcodebuild[3032:92302] [MT] IDEDistribution:-[IDEDistributionLogging _createLoggingBundleAtPath:]: 在路径'/var/folders/rh/w_gp1jjn4zz2mhhhnkq3_xqh0000gn/T/RemoteWorkersEvents_2018-0-3-047-59.269.xcdistributionlogs'.2018-03-24 13:48:02.328 xcodebuild[3032:92302] [MT] IDEDistribution:步骤失败:<IDEDistributionSigningAssetsStep:0x7fb937015e10>:错误域 = IDEDistributionSigningAssetStepErrorDomain 代码 = 0定位签名资产失败."UserInfo={NSLocalizedDescription=定位签名资产失败.,IDEDistributionSigningAssetStepUnderlyingErrors=("Error Domain=IDEProfileLocatorErrorDomain Code=1 "没有找到 'io.ionic.starter' 的配置文件" UserInfo={NSLocalizedDescription=没有找到 'io.ionic.starter' 的配置文件,NSLocalizedRecoverySuggestion=Xcode 找不到任何配置文件iOS App Development 配置配置文件匹配'io.ionic.starter'.自动签名被禁用并且无法生成配置文件.要启用自动签名,请将 -allowProvisioningUpdates 传递给 xcodebuild.}")}*****------>>>>>错误:exportArchive:找不到io.ionic.starter"的配置文件//<--- 这里说的是不同的配置文件,这是默认配置,但我将其更改为上面的配置文件Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profile for 'io.ionic.starter' were found" UserInfo={NSLocalizedDescription=没有找到'io.ionic.starter'的配置文件,NSLocalizedRecoverySuggestion=Xcode 找不到任何iOS App Development与io.ionic.starter"匹配的配置文件.自动签名已禁用,无法生成配置文件.要启用自动签名,请将 -allowProvisioningUpdates 传递给 xcodebuild.}** 导出失败 **(节点:2553)UnhandledPromiseRejectionWarning:命令的错误代码70: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(节点:2553)UnhandledPromiseRejectionWarning:未处理的承诺拒绝.此错误源于在没有 catch 块的情况下抛出异步函数内部,或拒绝未使用 .catch() 处理的承诺.(拒绝编号:1)(节点:2553)[DEP0018] DeprecationWarning:不推荐使用未处理的承诺拒绝.将来,未处理的 Promise 拒绝将使用非零退出代码终止 Node.js 进程.

请检查以 *****------>>>> 开头的行这是我关心的两行,我想了一些那里正在发生奇怪的事情.知道这里发生了什么,我该如何解决这个问题?

解决方案

要在 iOS 设备上部署和测试应用,您需要创建开发者证书和配置文件.

<块引用>

iOS 开发人员需要生成配置文件以进行代码签名他们的应用程序进行测试.好消息是,从 iOS 9 开始,您可以无需付费 Apple 在您的 iOS 设备上开发和测试您的应用程序开发者账号.这对于想要尝试使用 Ionic 进行移动开发,因为它节省了成本,但仍然提供了拥有完整 Apple Developer 的许多功能帐户.有关所包含功能的完整细分,请查看

添加您的 Apple 帐户凭据:

现在回到 ionic 项目并按照以下步骤操作:

  • 使用以下命令运行您的应用的构建(生产或调试)

    $ionic cordova build ios --prod

  • 在 Xcode 中从路径 platforms/ios/ 打开 .xcworkspace 文件.

要从 XCode 中选择配置文件,请按照以下步骤操作:

现在转到您的应用设置(通过单击左侧菜单面板中的应用名称)

勾选自动管理登录"(通过检查这个 Xcode 将自动创建一个配置文件)

设置完所有这些之后,您的应用就可以在设备上进行测试了,有两种方法可以在设备上运行您的应用.

  1. 点击左上角的播放按钮,直接从 XCode 运行您的应用程序.

  2. 通过您的 ionic 项目终端运行 $ionic cordova run ios --device.

希望以上步骤有助于在 iOS 设备上运行您的应用.

有用的链接:

  1. 如何在设备(Android 和 iOS)上部署应用
  2. Apple 证书登录流程

I am trying to build my ionic 3 application and deploy and live reload 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 concerned with and I think something weird is happening there. Any idea what is happening here and how can I fix this?

解决方案

To deploy and test an app on an iOS device you need to create a developer certificate and a provisioning profile.

iOS developers need to generate a provisioning profile to code sign their apps for testing. The good news is that, as of iOS 9, 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 to Preferences > Account > Add account

Add Your Apple account credential:

Now Come back to the 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 path platforms/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 a profile automatically)

After setting all this now your app is ready to test on the device there are 2 ways to run your app on the device.

  1. Directly run your app from XCode by hitting on the play button on the top left corner.

  2. run $ionic cordova run ios --device through your ionic project terminal.

Hope above steps will help to run your app on the iOS device.

Useful links :

  1. How to deploy app on device (android & iOS)
  2. Apple Certificate Sign in flow

这篇关于错误:exportArchive:找不到“io.ionic.starter"的配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆