简体   繁体   English

获取应用程序文件ios xcode 7/8

[英]Get app file ios xcode 7/8

我想发送我写给朋友的应用程序,但是找不到有关如何在XCode 7或8中提取.app文件的答案。有没有办法做到这一点?

Once the app is able to run. 一旦应用程序能够运行。 Choose the "Archive" option from the "Product" menu in xcode. 从xcode的“产品”菜单中选择“存档”选项。 When it's done, open the Organizer window and click the "Archive" tab. 完成后,打开管理器窗口,然后单击“存档”选项卡。 Click the build you want (should be the top one) and then click the "Export" button on the right side. 单击所需的版本(应为顶部),然后单击右侧的“导出”按钮。 You will probably want Ad Hoc deployment or Development Deployment. 您可能需要临时部署或开发部署。 This will export an IPA file to your hard drive. 这会将IPA文件导出到您的硬盘驱动器。 You can mail it to your friend who can load it with iTunes. 您可以将其邮寄给可以通过iTunes加载的朋友。

It's easier if you have a dev account, you can register other test devices. 如果您拥有开发者帐户,可以更轻松地注册其他测试设备。 Look here for details when you have no dev account; 没有开发者帐户时,请查看此处以了解详细信息;

Test iOS app on device without apple developer program or jailbreak 在没有Apple开发人员程序或没有越狱的情况下在设备上测试iOS应用

For Xcode 8.x 对于Xcode 8.x

  1. Click on Window tab -> Organizer 单击窗口选项卡->管理器
  2. Right click the archive you need to get the .app file from (do not right click on the Name text as that will edit the text) 右键单击您需要从中获取.app文件的档案(不要右键单击“名称”文本,因为这会编辑该文本)
  3. Show in Finder 在Finder中显示
  4. Right click on the .xcarchive file that is selected -> Show Package Contents -> Products -> Applications 右键单击所选的.xcarchive文件->显示软件包内容->产品->应用程序
  5. There's your file 有你的档案

You can hit command+i to make sure it's a .app file if the extension is hidden! 如果扩展名被隐藏,您可以按Command + i以确保它是一个.app文件!

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

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