繁体   English   中英

运行xcode iOS模拟器构建

[英]Running xcode iOS simulator build

我开发了一个与Facebook集成的iOS应用程序。 我需要为Facebook发送一个iOS模拟器版本来审查Facebook集成如何在我的应用程序上运行。

该链接提供有关如何创建iOS模拟器版本的说明。 https://developers.facebook.com/docs/ios/creating-ios-simulator-build-for-review/

所述链接提供了创建iOS模拟器构建的代码

xcodebuild -arch i386 -sdk iphonesimulator{version}

我想要做的是运行应用程序iOS模拟器构建。 我想测试iOS模拟器构建是否有效。

我搜索并发现了这个:

在没有XCode的模拟器中启动iOS应用程序

这要求我使用此代码来运行iOS模拟器构建。

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication ${PROJECT}/build/Debug-iphonesimulator/<yourapp>.app/<yourapp>

是的,iOS模拟器运行但它不启动我的应用程序。

我该如何在模拟器上运行iOS模拟器? 需要帮助。 谢谢!

添加注意:我使用的是Xcode 5.1.1

我使用ios-sim取得了成功。 然后使用ios-sim launch <yourproject>.app

使用simctl更新Xcode 6.x及更高版本的说明:

xcrun simctl install booted /path/to/your/built/simulator.app
xcrun simctl launch booted com.your.app.identifier

暂无
暂无

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

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