xcode “ionic run ios”如何添加配置文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35460784/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:33:16  来源:igfitidea点击:

"ionic run ios" How to add provisioning profiles

iosxcodeionic-framework

提问by Publicus

I wish to use Ionic to run my app on my iOs device with livereload enabled. According to the docs this should be easy:

我希望使用 Ionic 在启用 livereload 的 iOs 设备上运行我的应用程序。根据文档,这应该很容易:

ionic run ios --device -l

ionic run ios --device -l

Of course I have to add provisioning profiles, but how am I supposed to do it?

当然,我必须添加配置文件,但是我该怎么做呢?

I have the .mobileprovision and the .p12 of the certificate, but no matter what I do I still get this error when running the command:

我有证书的 .mobileprovision 和 .p12,但无论我做什么,在运行命令时仍然出现此错误:

No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “<MyBundleID>” were found

No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “<MyBundleID>” were found

How am I supposed to add my provisioning profiles? I'm not able to find any info about this in the framework docs.

我应该如何添加我的配置文件?我无法在框架文档中找到任何关于此的信息。

Note: I can reploy the project using Xcode, but then I don't get the livereload. Plus I'd prefer doing everything from the CLI.

注意:我可以使用 Xcode 重新部署项目,但是我没有得到 livereload。另外,我更喜欢从 CLI 做所有事情。

采纳答案by Chris

You need to go into XCode and add those provisioning profiles to your device.

您需要进入 XCode 并将这些配置文件添加到您的设备中。

Set those provisioning profiles into the build process and add the profile to the device as well.

将这些配置文件设置到构建过程中,并将配置文件也添加到设备中。

Though you may not be using Visual Studio, their explanation on the setup works for all methods of building Ionic apps.

尽管您可能没有使用 Visual Studio,但他们对设置的解释适用于构建 Ionic 应用程序的所有方法。

The documentation is here, but to tell you what's going on:

文档在这里,但要告诉您发生了什么:

  1. Make sure you have a developer account to make provisioning profiles.
  2. You would sign into Itunes Connect to add your device as a testing device
  3. Create an App ID
  4. Create a provisioning profile associated to that App ID
  5. Download the provisioning file into Xcode
  6. Add the provisioning file to your device via Xcode
  7. Run ionic run ios --device -l
  1. 确保您有一个开发者帐户来制作配置文件。
  2. 您将登录 Itunes Connect 以将您的设备添加为测试设备
  3. 创建应用 ID
  4. 创建与该 App ID 关联的配置文件
  5. 将配置文件下载到 Xcode 中
  6. 通过 Xcode 将配置文件添加到您的设备
  7. 运行 ionic run ios --device -l

That should do the trick.

这应该够了吧。

Follow the setup guide by Microsoft starting at create your provisioning profile.

从创建您的配置文件开始,按照 Microsoft 的设置指南进行操作。