user3667354
user3667354

Reputation: 121

Running xcode iOS simulator build

I developed an iOS app with Facebook integration. I need to send an iOS simulator build for Facebook to review how the Facebook integration works on my app.

The link provides the instructions on how to create the iOS Simulator build. https://developers.facebook.com/docs/ios/creating-ios-simulator-build-for-review/

The said link provides code that creates the iOS simulator build

xcodebuild -arch i386 -sdk iphonesimulator{version}

What I wanted to do is to run the app iOS Simulator Build. I want to test if iOS simulator build works.

I searched and found this:

Launch an iOS app in the simulator without XCode

which asked me to use this code to run the iOS simulator build.

/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>

Yes, the iOS simulator runs however it does not launch my app.

How should I run the iOS simulator build on the simulator? Need help on this. Thanks!

Addition Note: I am using Xcode 5.1.1

Upvotes: 11

Views: 4605

Answers (2)

Jeremy Huddleston Sequoia
Jeremy Huddleston Sequoia

Reputation: 23651

Update instructions for Xcode 6.x and later using simctl:

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

Upvotes: 2

vish
vish

Reputation: 2436

I had success using ios-sim. Then run with ios-sim launch <yourproject>.app

Upvotes: 7

Related Questions