当我从 Xcode 为 iOS 模拟器编译和部署应用程序时,编译后的 .ipa 驻留在何处?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11441503/
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
Where does the compiled .ipa reside when I compile and deploy the app for the iOS simulator from Xcode?
提问by ZacAttack
I'd like to be able to pass around the version of my iphone application that was compiled for the simulator. The idea here is to be able to give copies of the app to different vms where they would deploy the app to the iOS simulator and run some tests.
我希望能够传递为模拟器编译的 iphone 应用程序版本。这里的想法是能够将应用程序的副本提供给不同的虚拟机,他们将应用程序部署到 iOS 模拟器并运行一些测试。
But after I compile the app for the iOS simulator, I can't find the darn *.ipa. Does anyone know where it resides?
但是在我为 iOS 模拟器编译应用程序后,我找不到该死的 *.ipa。有谁知道它住在哪里?
回答by Cliff Ribaudo
You can see where it is putting your build products by looking on:
您可以通过查看以下内容来了解它放置您的构建产品的位置:
Xcode Menu-> Preferences-> Locations
Or if you have project Specific settings they will be found by looking on
或者,如果您有项目特定的设置,可以通过查看
Xcode Menu-> File-> Project Settings
I think it builds the ipas from the products in those locations and loads them into the simulator. So you might not find an actual .ipa there you find .app in these locations.
我认为它从这些位置的产品构建 ipa 并将它们加载到模拟器中。因此,您可能无法在这些位置找到 .app 的实际 .ipa。
If you want an ipa. Do an Archive build. Do an Ad Hoc distribution and save the resulting .ipa to your desktop.
如果你想要一个ipa。进行存档构建。执行 Ad Hoc 分发并将生成的 .ipa 保存到您的桌面。
回答by Noah Witherspoon
There's no .ipa—Xcode copies the .app
bundle by itself into the simulator. You can check:
没有 .ipa——Xcode 自己将.app
包复制到模拟器中。您可以检查:
~/Library/Developer/Xcode/DerivedData/YourProject-<some garbage>/Build/Products/Debug-iphonesimulator/
(swap Debug for Release if you're looking to distribute a release build, obviously), or, alternately, get the version that's actually installed in the simulator from:
(显然,如果您希望分发发布版本,则将 Debug 交换为 Release),或者,从以下位置获取实际安装在模拟器中的版本:
~/Library/Application Support/iPhone Simulator/<OS version>/Applications/<some UUID>/.
You can copy that app bundle into another simulator by creating an arbitrarily-named folder in the above Applications
directory and placing the .app
inside it.
您可以通过在上述Applications
目录中创建一个任意命名的文件夹并将其.app
放入其中来将该应用程序包复制到另一个模拟器中。
回答by Obaid Maroof
have you already tried the following location???
您是否已经尝试过以下位置???
Library/Developer/Xcode/DerivedData
库/开发人员/Xcode/DerivedData