简体   繁体   English

使用 Xcode,我如何导出应用程序并将其与模拟器中的团队成员共享?

[英]With Xcode how can I export and share an app with a team member in the simulator?

So I have a teammate/client I need to share an app I'm developing.所以我有一个队友/客户,我需要分享我正在开发的应用程序。 They have android and a Mac Desktop so it would be shared through the Simulator only.他们有 android 和 Mac 桌面,因此只能通过模拟器共享。

I've tried the archive app and there seems to be no way to get this work with the .ipa file which is generated.我已经尝试过存档应用程序,但似乎无法使用生成的 .ipa 文件来完成这项工作。

Does anyone know of a way to achieve this?有谁知道实现这一目标的方法?

Share the source code, then run the app in Xcode.共享源代码,然后在 Xcode 中运行该应用程序。 Voila, it is now in the Simulator.瞧,它现在在模拟器中。 They have to install Xcode anyway to get the Simulator so there really isn't any extra work involved other than building the app.他们无论如何都必须安装 Xcode 才能获得模拟器,因此除了构建应用程序之外,实际上没有任何额外的工作。

The .ipa is built for iOS devices and cannot run in the Simulator. .ipa 是为 iOS 设备构建的,不能在模拟器中运行。 I suppose you could transfer the binary to another simulator and get it to work, but I have not heard of anyone doing it that way and, frankly, it seems like potentially more work than "clone this git repo, load the project/workspace in Xcode, click the triangle button and wait a bit."我想你可以将二进制文件转移到另一个模拟器并让它工作,但我还没有听说有人这样做,坦率地说,这似乎比“克隆这个 git repo,加载项目/工作区在Xcode,单击三角形按钮并稍等片刻。”

All you can do is you can just generate the .app file.您所能做的就是生成.app文件。 But how you can run it on a simulator (applies only if Xcode 8.2 or above isn't installed), I really don't have the idea.但是如何在模拟器上运行它(仅适用于未安装 Xcode 8.2 或更高版本的情况),我真的不知道。 If you want to have your .app generated, follow this:如果您想生成.app ,请按照以下步骤操作:

  1. Connect any iPhone with your mac将任何 iPhone 与您的 Mac 连接
  2. Open your project in Xcode在 Xcode 中打开您的项目
  3. Wait for the setup (processing symbol files, blah, blah) to be completed等待设置(处理符号文件,等等,等等)完成
  4. Run your project in that iPhone once在 iPhone 上运行你的项目一次
  5. Now just build your project while the iPhone is connected现在只需在连接 iPhone 时构建您的项目
  6. Search for the Product group (or, folder) and expand it搜索产品组(或文件夹)并展开它
  7. You will see a file (maybe more) named as your target (project name)您将看到一个名为目标(项目名称)的文件(可能更多)
  8. Right click on that file and select show in finder .右键单击该文件并选择show in finder And voila, you have your .app file瞧,你有你的.app文件

What generates the .app什么生成 .app

You will need to have previously built the app for the intended target.您需要事先为预期目标构建应用程序。 The "Product" option in the top menu bar includes a couple of ways to trigger this including: "Build for" of "Destination".顶部菜单栏中的“产品”选项包括几种触发方式,包括:“目的地”的“构建”。

Where is the .app? .app 在哪里?

The yourApp.app you are looking for is stored in: <<YOURUSERHOME>>/Library/Developer/Xcode/DerivedData/<<YOURAPPNAME-UID>>/Build/Products/Debug-iphonesimulator您正在寻找的yourApp.app存储在: <<YOURUSERHOME>>/Library/Developer/Xcode/DerivedData/<<YOURAPPNAME-UID>>/Build/Products/Debug-iphonesimulator

Easier way to locate更容易定位

  1. Open you app in XCODE在 XCODE 中打开你的应用
  2. Browse the file tree in the left sidebar浏览左侧边栏中的文件树
  3. Expand the "Products" directory展开“产品”目录
  4. Right click the .app file you want to share, and select "Show In Finder"右键单击要共享的.app文件,然后选择“在 Finder 中显示”

What you are trying to do is not going to work.你试图做的事情是行不通的。 You can not share the .ipa file for someone else to install it on an iPhone simulator.您不能将 .ipa 文件共享给其他人以将其安装在 iPhone 模拟器上。

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

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