简体   繁体   English

如何在 Xcode 中导出应用程序文件

[英]How can i export app file in Xcode

Do you know how to export app file in Xcode?你知道如何在 Xcode 中导出 app 文件吗? (like .apk file in android) I want to send my testing app to someone for feedback. (例如 android 中的 .apk 文件)我想将我的测试应用程序发送给某人以获得反馈。 i have never tried it before.我以前从未尝试过。 please let me know easy way to export app file.请让我知道导出应用程序文件的简单方法。 (not all project, only a file which can be played in another iPhone) (不是所有项目,只有一个可以在另一部 iPhone 中播放的文件)

  • First Archive it ( XCode->Product->Archive ).首先归档它( XCode->Product->Archive )。 (For Archive button to be in visible state : either your device should be selected or generic ios device should be selected, incase any simulator is selected archive button will be disabled.) (要使存档按钮处于可见状态:应选择您的设备或应选择通用 ios 设备,以防选择任何模拟器,存档按钮将被禁用。)
  • A Window will appear : Choose Export->AdHoc .将出现一个窗口:选择 Export->AdHoc
  • .ipa will be generated. .ipa 将被生成。
  • u can use https://www.diawi.com/ for uploading and send app to anyone.您可以使用https://www.diawi.com/上传和发送应用程序给任何人。

I am posting a very late response to this old question in case anyone else finds their way here and infers that it isn't possible to export an app to your own iPhone or iPad without a developer account.我对这个老问题发布了一个很晚的回复,以防其他人在这里找到他们的方法并推断没有开发人员帐户就不可能将应用程序导出到您自己的 iPhone 或 iPad。 That isn't true.那不是真的。 I unearthed these posts when looking for an answer to the same question, and initially read them that way.我在寻找同一问题的答案时发现了这些帖子,最初是这样阅读的。

If you want to test an app you have written in XCode on your own iOS device you do not need a developer account.如果你想测试你写XCode中你自己的iOS设备上的应用程序,你并不需要一个开发者账户。 Provided the device you wish to test it on (or share it with) is physically nearby so that you can connect it to your macOS device to pair with it as a trusted device, it will remain paired when physically disconnected and accessible over a shared network by WiFi.只要你想测试它(或共享含)设备物理附近,这样你可以用它把它连接到您的Mac OS设备,以作为一个值得信赖的设备,它将保持在物理上断开,并访问通过共享网络配对通过无线网络。 You can build and run apps from XCode on to the iOS destination device and they will remain in place there and executable afterwards.您可以从 XCode 构建应用程序并将其运行到 iOS目标设备上,它们将保留在那里并在之后可执行。 There is a limit to how many exported apps there can be at one time, which seems to be 3.一次可以导出的应用程序数量是有限制的,好像是 3 个。

Apple explain how to do all this here .苹果在这里解释了如何做到这一切。 You do need to have a registered App Store account, but that's the same one you use to buy apps and build projects in XCode, and it's free unless you want to distribute your app through the App Store.您确实需要有一个注册的 App Store 帐户,但这与您用来在 XCode 中购买应用程序和构建项目的帐户相同,而且它是免费的,除非您想通过 App Store 分发您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM