简体   繁体   English

需要在不使用xcode的情况下在模拟器上运行Iphone应用程序

[英]Need to run Iphone app on simulator without using xcode

I need to distribute my app to be tested using iphone simulators. 我需要分发我的应用程序,使用iphone模拟器进行测试。 So I built the binary and whenever i try to run the app by double clicking on it, The app crashes with the error 所以我构建了二进制文件,每当我尝试通过双击它来运行应用程序时,该应用程序崩溃并出现错误

Dyld Error Message: Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit Referenced from: /Users//dev/iphone_workspace/MD2final/build/Analyzer-iphonesimulator/MD2final.app/MD2final Reason: image not found Dyld错误消息:未加载库:/System/Library/Frameworks/UIKit.framework/UIKit引用自:/Users//dev /iphone_workspace / MD2final / build / Analyzer-iphonesimulator / MD2final.app / MD2final原因:未找到图像

But I have added the UIKit to the project and am Able to run the same application from Xcode by using "Build and go". 但我已经将UIKit添加到项目中,并且能够通过使用“Build and go”从Xcode运行相同的应用程序。

Is there a way I can build the binary in my Xcode and distribute only the binary to others for testing. 有没有办法可以在我的Xcode中构建二进制文件,只将二进制文件分发给其他人进行测试。

You may be able to build for the simulator in RELEASE mode, then zip the file out of the application directory on the Mac and then have your testers unzip it back into their own application directory for the simulator on their machine. 您可以在RELEASE模式下为模拟器构建,然后将文件从Mac上的应用程序目录中压缩出来,然后让测试人员将其解压缩回自己的应用程序目录,以便在其计算机上运行模拟器。

I've read that this works - though I have not tried it myself. 我读过这个有用 - 虽然我自己没试过。

I'll leave it to you as an exercise to locate the files in the right directory. 我将把它留给你作为练习,找到正确目录中的文件。

-t -t

  1. You can get the testers' devices' UDIDs and create a new provisioning profile from your developer account which includes the UDIDs of all those testers. 您可以从开发人员帐户获取测试人员设备的UDID并创建新的配置文件,其中包括所有这些测试人员的UDID。

  2. Then you download the provisioning profile, double click it to install, and use the identifier in your Xcode project which you used when creating the new provisioning profile. 然后,下载配置文件,双击它以进行安装,并使用您在创建新配置文件时使用的Xcode项目中的标识符。

  3. In your Xcode project, you then need to clean build by pressing cmd + shift + K and the .app file in Xcode project will turn red as it gets deleted when you clean the build. 在你的Xcode项目中,你需要通过按cmd + shift + K来清理构建,并且当你清理构建时,Xcode项目中的.app文件会变为红色。

  4. You then need to choose "Device 3.1.2 | Debug" from the drop down menu and press cmd + B to build again. 然后,您需要从下拉菜单中选择“Device 3.1.2 | Debug”,然后按cmd + B再次构建。 This will rebuild the .app file. 这将重建.app文件。 You need to right click on it and choose "Reveal in Finder". 您需要右键单击它并选择“在Finder中显示”。

  5. You can then give the provisioning profile and the .app file just built by the above step to the testers. 然后,您可以将上述步骤构建的配置文件和.app文件提供给测试人员。 They can copy the provisioning profile and .app file to their iTunes and then sync their library which will copy the app on their device. 他们可以将配置文件和.app文件复制到他们的iTunes,然后同步他们的库,这将在他们的设备上复制应用程序。

They can only test it on their device and there is no way to make it work on the simulator but that is good. 他们只能在他们的设备上测试它,并且没有办法让它在模拟器上工作,但这很好。 :) :)

为什么不希望您的测试人员只安装Xcode?

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

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