Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to run app in Simulator XCode 6.0

After migrating from XCode 5.0 to XCode 6.0 the project fails to run with the following error.

An error was encountered while running (Domain = FBSOpenApplicationErrorDomain,
Code = 4)

Any suggestions?

Screenshot

like image 424
danfelabs Avatar asked Sep 12 '14 23:09

danfelabs


People also ask

How do I enable simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.

Can you run an IPA file on a simulator?

Just like an APK (Android Application Package) file can be installed on Android devices, an IPA file can be used for testing iOS applications. You can even push it to the app stores to publish your app. You can think of an IPA file like a simple ZIP file.

How do you run the Expo app in Simulation?

Start your app by using expo start command. Type i and a or click on Run on iOS simulator and Run on Android device/emulator buttons to launch your app on devices.

How do I debug an app in Xcode?

Click the Run button to build and run the app on the selected simulated or real device. View the status of the build in the activity area of the toolbar. If the build is successful, Xcode runs the app and opens a debugging session in the debug area.

How to restart the simulator Xcode 8?

Unable to boot the Simulator XCode 8. 1 Click the  menu. 2 Select Restart... 3 Hold down command-R to boot into the Recovery System. 4 Click the Utilities menu and select Terminal. 5 Type csrutil disable and press return. 6 Close the Terminal app. 7 Click the  menu and select Restart....

Do I need to code sign the app?

For macOS apps, you need to code sign the app if you enable certain capabilities. If you belong to the Apple Developer Program, you need to register the device before you can run the app. You can also run iOS and tvOS apps on a wireless device if you pair the device with Xcode.

Can you run iOS apps on a wireless device?

You can also run iOS and tvOS apps on a wireless device if you pair the device with Xcode. For example, you can pair an Apple TV that’s already on your network with Xcode so it appears as a run destination in the toolbar. For watch-only apps, you can run the watchOS app over the paired iOS device.


2 Answers

iOS Simulator -> Reset Contents and Settings

Worked for me!

iOS Simulator -> Reset Contents and Settings... -> Reset

enter image description here

referenced from: http://qiita.com/tajihiro/items/f6f50b56162c93d25c90

like image 161
Jeff Walters Avatar answered Oct 14 '22 06:10

Jeff Walters


I had this error too. My solution was product->clean

like image 45
xiaotest Avatar answered Oct 14 '22 07:10

xiaotest