【问题标题】:Running xcode iOS simulator build运行 xcode iOS 模拟器构建
【发布时间】:2014-07-12 06:52:54
【问题描述】:

我开发了一个集成了 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 Simulator Build。我想测试 iOS 模拟器构建是否有效。

我搜索并找到了这个:

Launch an iOS app in the simulator without XCode

要求我使用此代码运行 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

【问题讨论】:

  • 它对我有用,检查此answer 并按照步骤操作。

标签: ios facebook simulator


【解决方案1】:

我成功使用了ios-sim。然后用ios-sim launch &lt;yourproject&gt;.app运行

【讨论】:

  • 这应该是正确的答案。如果您使用的是 brew,那么就像 brew install ios-sim 然后 ios-sim launch &lt;your-app&gt;.app 一样简单。
【解决方案2】:

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

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

【讨论】:

    猜你喜欢
    • 2015-12-31
    • 2013-01-08
    • 2013-02-14
    • 1970-01-01
    • 1970-01-01
    • 2014-10-12
    • 2019-11-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多