xcode 如何在没有开发者帐户的情况下在 iphone/物理设备上构建应用程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43932076/
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 09:58:00  来源:igfitidea点击:

How to build app on iphone/physical device without developer account?

xcodecordovaprovisioning-profileapple-developer

提问by nilesh patil

I have xcode 8.3 along with mac sierra10.12.4 and i am building cordova app .am not able to build/generate app on iphone.I didnot have apple developer account so am trying with appleid but am not getting provisioning profile.App builds in simulator only.How to build app on iphone/physical device without developer account?

我有 xcode 8.3 和 mac sierra10.12.4,我正在构建科尔多瓦应用程序。我无法在 iphone 上构建/生成应用程序。我没有苹果开发者帐户,所以我正在尝试使用 appleid,但没有获得配置文件。应用程序在模拟器中构建only.如何在没有开发者帐户的情况下在 iphone/物理设备上构建应用程序?

回答by Shabir jan

You don't need Paid Apple Developer Account to run app on your device , but you do need Paid Apple Developer account for app distribution. To run the app on your iPhone, you just need to enter your Apple developer account credentials in the Xcode like this : enter image description here

您不需要付费 Apple 开发者帐户来在您的设备上运行应用程序,但您需要付费 Apple 开发者帐户来分发应用程序。要在您的 iPhone 上运行该应用程序,您只需在 Xcode 中输入您的 Apple 开发人员帐户凭据,如下所示: 在此处输入图片说明

After adding your apple developer account, just follow these and you will be able to run the app, small note before doing this select your device from the dropdown list.

添加您的苹果开发者帐户后,只需按照这些操作即可运行该应用程序,在此之前请注意从下拉列表中选择您的设备。

enter image description here

在此处输入图片说明

回答by wottle

You need to sign up your Apple ID to be a free developer account. This will allow Xcode to create free, 7-day provisioning profiles that you can use to build to a connected device.

您需要注册您的 Apple ID 才能成为免费的开发者帐户。这将允许 Xcode 创建免费的 7 天配置文件,您可以使用它来构建连接的设备。

For more information, you can see this tutorial. You seem like you already have an Apple ID, so you can skip step 1. But follow the other steps to make it a dev account and then link it inside Xcode.

有关更多信息,您可以查看本教程。您似乎已经拥有 Apple ID,因此可以跳过第 1 步。但请按照其他步骤将其设为开发帐户,然后将其链接到 Xcode 中。