user5118640
user5118640

Reputation:

Xcode build successfully but iOS Simulator didn't run

I've developed a camera app with the swift language. Build processing succeeded in Xcode and iOS Simulator was done.

But app list in iOS Simulator didn't include my app. And an error occurred.What's wrong?

Two screenshots of my project are added below:

enter image description here

enter image description here

Upvotes: 9

Views: 10376

Answers (4)

MAS. John
MAS. John

Reputation: 542

You can try this, it worked for me. Go to Product on top xcode. Follow this flow.

-> Product -> Scheme -> Edit Scheme -> Select "Run" in the sidebar -> Info on tab -> Change the drop down box labeled Executable , changed it with your app. -> Close -> Run again.

Hope it will help you.

Upvotes: 18

Caleb Kleveter
Caleb Kleveter

Reputation: 11484

Like Joel said, try changing the scheme that you are running. Right next to the simulator selector, there is the scheme selector; select it, then the project instead of the framework.

enter image description here

Upvotes: 10

joel.d
joel.d

Reputation: 1631

From your screenshot it looks like you have the wrong scheme selected. Make sure you select the scheme for your iOS app, not the framework. The little dropdown to the right of the stop button in the upper-left corner.

Upvotes: 2

Helge Becker
Helge Becker

Reputation: 3243

Using any 3rd party libraries? Simulator relies on x86/x64 builds, but 3rd party libraries occasional don't have a matching binary for the simulator.

Result: Sim runs in to an error during compile while the app runs on a device. You should get an error in this case.

Upvotes: 0

Related Questions