如何在设备上从 xcode 运行应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17555789/
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
how to run app from xcode on device?
提问by Myworld
I had created my first iOS app with Xcode, but when I tried to export the file to run on an iPad I couldn't build the project. When I go to products > file.app >and then right click to show on folder it is hidden.
我已经使用 Xcode 创建了我的第一个 iOS 应用程序,但是当我尝试导出文件以在 iPad 上运行时,我无法构建该项目。当我转到products > file.app >然后右键单击以显示文件夹时,它是隐藏的。
How can I export the file to run on iOS devices?
如何导出文件以在 iOS 设备上运行?
Also if I have the project at my Windows PC can I export the app file to work on iOS devices ?
另外,如果我的 Windows PC 上有该项目,我可以导出应用程序文件以在 iOS 设备上运行吗?
回答by Alan
In order to run iOS apps on a device, you need to first have a valid Apple Developer Account, and have your device setup as a valid developer enabled device.
为了在设备上运行 iOS 应用程序,您首先需要有一个有效的 Apple Developer Account,并将您的设备设置为有效的开发者启用设备。
Once that is done, you simply set your ipad as the target in Build Target. You may need to use the Organizer to first ensure you have the dev certs setup properly.
完成后,您只需将 ipad 设置为 Build Target 中的目标即可。您可能需要先使用 Organizer 来确保正确设置了开发证书。
Also if I have the project at my Windows PC can I export the app file to work on iOS devices ?
另外,如果我的 Windows PC 上有该项目,我可以导出应用程序文件以在 iOS 设备上运行吗?
In order to build iOS apps, you need Mac OS X (and legally that can only run on an Apple computer)
为了构建 iOS 应用程序,您需要 Mac OS X(并且在法律上只能在 Apple 计算机上运行)

