如何使用设备代替模拟器
我是 iPhone 开发新手,想在我的 iPhone 上测试我的应用程序。我已经支付了 100 美元,但找不到任何方法来练习如何做到这一点。有一些参考资料,但它们适用于 xcode 3。
任何帮助将不胜感激。
I am a new with iphone development and want to test my application on my iphone . I have paid $100 but can not find any way to workout how to do that . There are some references around but they are for xcode 3.
Any help would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,您必须在 Mac 上设置开发人员证书/密钥。请参阅开发者门户,其中有有关如何进行此设置的详细说明。
获得证书后,插入设备,然后在 XCode 中按 cmd + shift + 2 - 加载管理器。选择设备窗格,单击您的设备,然后单击“用于开发”按钮。它会要求您输入开发帐户的用户名/密码,然后它将启用您的设备进行开发。启用后,您只需在 Xcode 主窗口的左上角选择它作为构建目标即可。
First you have to get your developer certificate/keys set up on your mac. See the developer portal where there are detailed instructions on how to get this set up.
Once you have your certificate, plug in your device, and press cmd + shift + 2 in XCode - to load up the organizer. Select the devices pane, click on your device, and click the 'use for development' button. It will ask you to put your username/password in for your dev account, and then it will enable your device for development. After it has been enabled, you simply select it as the target to build to in the top-left of the main Xcode window.
我知道这个问题已经得到了解答,但我在尝试将 XCode4 直接安装到我的设备上时费了不少功夫。如果您尝试将多台机器安装到同一设备上,天堂会帮助您。
我最好的建议是,让 XCode4 为您完成所有工作。尝试手动配置证书只会导致您的计算机或设备崩溃。
如果您遇到困难,或者只完成一半,请按照以下步骤操作。
当我在正常的 Xcode 和 beta 版本之间工作时,我经历了一次糟糕的尝试和错误才能让这些工作正常工作。我不希望我最大的敌人出现代码签名问题。希望这对您和其他遇到问题的人有用。祝你好运!
I know this question has been answered already, but I have had a lot of hair pulling trying to get XCode4 to install directly to my device. Heaven help you if you are trying to get multiple machines to install to the same device.
My best advice, let XCode4 do all the work for you. Trying to manually configure your certificates will only lead you to bashing your computer or device to smithereens.
If you get stuck, or only get half of it working, follow these steps.
I had a terrible run of trial and error to get these working as I was working between the normal Xcode and the beta build. I don't wish code signing issues on my worst enemy. Hopefully this will work for you and anyone else that runs into issues with it. Good luck!