[英]In Xcode, how can I register a device to test on it, without having a paid Apple Developer account?
I am trying to test an app in a real device, using XCode 9. 我正在尝试使用XCode 9在真实设备中测试应用程序。
In Xcode > General > "Automatically manage signing" I get this error: Failed to create provisioning profile. 在Xcode>常规>“自动管理签名”中,出现此错误: 无法创建配置文件。 There are no devices registered in your account on the developer website. 在开发者网站上,您的帐户中没有注册任何设备。 Plug in and select a device to have Xcode register it. 插入并选择要进行Xcode注册的设备。
I have tried physically plugging in an iPod, an iPad and an iPhone. 我尝试过物理插入iPod,iPad和iPhone。 They all show up in iTunes, and also in XCode under Windows > "Devices and Simulators", but XCode simply doesn't register anything. 它们都显示在iTunes中,也显示在Windows>“设备和模拟器”下的XCode中,但是XCode根本不注册任何内容。
I also tried to go to the website to register the devices manually, but it seems I cannot even access this website without having a paid Apple developer account? 我也尝试过去网站手动注册设备,但是,如果没有付费的Apple开发人员帐户,我什至无法访问该网站?
I do NOT have a paid Apple developer account, but I do have the Apple ID. 我没有付费的Apple开发人员帐户,但是我有Apple ID。 I know that I can test in a real device without an account because in this page https://developer.apple.com/support/compare-memberships/ under Benefits and Resources the Sign in with Apple ID column has Test on Device checked. 我知道我可以在真实的设备,因为在这个页面来测试没有一个帐户https://developer.apple.com/support/compare-memberships/ 在与苹果ID列下的优势和资源 , 注册有测试设备的检查。
Please, how can I solve this? 拜托,我该怎么解决?
What I normally do when I test on a device is by selecting general device before I archive the build, and then after you follow the prompts after the build, choose install on a device. 在设备上进行测试时,我通常要做的是在存档构建之前选择常规设备,然后在构建后按照提示进行操作之后,选择在设备上安装。
If you are really set on just being able to run directly without archiving, make sure that you are signed in with your apple id (the only reason you would need to pay would be if you are submitting to the app store, so you don't have to worry about that) under accounts (XCode -> Preferences -> Accounts), and then replug your device. 如果您真的希望不存档就可以直接运行,请确保您使用Apple ID登录(唯一需要付费的原因是您要提交至应用商店,因此您无需不必担心)在帐户(XCode->首选项->帐户)下,然后重新插入设备。
And if that doesn't work, try following the instructions on this site: https://help.apple.com/developer-account/#/ under Registera Single Device. 如果不起作用,请尝试按照以下网站上的说明进行操作: https : //help.apple.com/developer-account/#/在Registera Single Device下。
At the top of the Xcode window, from left to right, after the Run and the Stop buttons, there is another button which displays the tooltip "Set the active scheme" when you hover the mouse over it. 在Xcode窗口的顶部,从左到右,在“运行”和“停止”按钮之后,还有一个按钮,当您将鼠标悬停在其上方时,会显示工具提示“设置活动方案”。
This button lets you choose a simulator. 使用此按钮可以选择模拟器。 But once your device is plugged in it also let you select that device. 但是,一旦您插入设备,也可以选择该设备。 Once you select your device, the problem disappears. 选择设备后,问题就消失了。
Note to those using Xcode to run code developed for Google's Flutter: You probably must also select Product
> Run
in Xcode, before you are able to go the device to trust the certificate, under the device's General
> Device Management
. 请注意使用Xcode运行为Google Flutter开发的代码的用户:在设备“ General
>“ Device Management
下,您必须先选择“ Product
> Run
在Xcode中Run
,然后才能使设备信任证书。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.