简体   繁体   English

在Xcode中,如何在没有付费的Apple Developer帐户的情况下注册设备以对其进行测试?

[英]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.

相关问题 是否可以在不支付Apple开发人员帐户的情况下将其添加为Enterprise Apple开发人员团队的成员? - Can I be added as a team member to Enterprise Apple developer team without having paid Apple developer account? 我可以在没有苹果开发者帐户的真实苹果设备上测试我的 Flutter 应用程序,如果可以,我该怎么做? - Can I test my Flutter application in a real apple device without apple developer account, and if so how do I do it? 我是否需要付费的苹果开发者帐户才能将 Firebase 连接到 Xcode? - Do I need a paid apple developer account to connect Firebase to Xcode? 如何在没有付费Apple开发人员帐户的情况下通过终端在真实设备中运行iOS应用程序? - How to run iOS application in real device through terminal without a paid apple developer account? 如何在没有Apple开发人员帐户的设备上运行应用程序 - How do I run an app on a device without an Apple developer account 没有苹果开发者帐户,如何降级Xcode? - How to downgrade Xcode without apple developer account? 没有付费的iOS开发人员帐户,我们如何测试相机应用程序? - How can we test a camera application without a paid iOS developer account? 无法通过付费 Apple 开发者帐户获取 Apple Provisioning - Can't Obtain Apple Provisioning through Paid Apple Developer Account 我可以在没有 Apple Developer 帐户的情况下使用 TestFairy 共享 iOS 调试应用程序吗? - Can i share iOS debug application using TestFairy without having Apple Developer account? 切换到 Xcode 8 并转换为免费(非付费)开发者帐户后,无法再构建到设备 - Can no longer build to device after switching to Xcode 8 and transitioning to free (non-paid) developer account
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM