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?
iOS Simulator -> Reset Contents and Settings
Worked for me!
iOS Simulator -> Reset Contents and Settings... -> Reset
referenced from:
http://qiita.com/tajihiro/items/f6f50b56162c93d25c90
I had this error too.
My solution was product->clean
As described in my answer to the queation that this is a duplicate of, this error is one manifestation of an install/launch race condition bug. The suggestions you find on this forum suggesting that you should "Erase Contents & Settings" or "Clean" from within Xcode are not correct.
You simply have to try again and hope you don't loose the race on the next launch. Alternatively, you can just "finger launch" it from within the booted simulator.
I had this error.
I got it while using Xcode 6 on Yosemite.
My solution was to download and install Xcode 6.1 for Yosemite. This solved my issue.
David
Related
I have just updated the Xcode from App Store from 10.2 to 10.3 and suddenly all the simulators are gone. Now when I open a project with a storyboard, it throws me an error as below.
Failed to find or create execution context for description ' System content for IBCocoaTouchFramework-ElevenAndLater scaleFactor=2x. These intermediate objects were non-nil.
Any one faced this issue before? Also it doesn't let me edit anything in my simulator.
I tried to restart Xcode, but it did not help.
The only way to fix the problem was to reboot my MacBook - it fixed the problem with simulator
Try to increase deployment target of your project. It worked for me.
After updating Xcode to 10.3 I get the bellow error (which I see has something to do with firebase):
The page which accompanies it is:
Why is this error happening and how can I fix it?
What I have tried:
updating pods
restarting Xcode
I solved this after looking at the answer on this question: Storyboard broken after updating Xcode to version 10.3 (10G8) & app no longer is running
Restarted the mac, problem solved.
When I build the app on simulator in Xcode 8.0, I am getting "SpringBoard was unable to service the request" error.
Please let me know how to resolve this error of Xcode.
Force quit the simulator and Xcode really works for me.
Worked solution :
i) Close the simulator
ii)Clean the Xcode cmd+shift+k
iii)Preference =>Derived Data => Move to trash
iv) Close Xcode
v) Clean Trash
iii)Relaunch Xcode
1.Quit the simulator
2.Cmd+shift+k(clean)the Code
3.Run again application.
Quitting the simulator and clearing the derived data worked for me.
Please close simulator and run again. if this doesn't work for you then try again after reset simulator.
This worked for me.
I've recently updated my Xcode to version 7.1 (from 7.0.1) and my Cordova app is failing to Archive with the error that says:
'Cordova/CDVViewController.h' file not found
in MainViewController.h file.
Searching through solutions on StackOverflow and elsewhere suggests that setting the project's Header Search Path from "$(OBJROOT)/UninstalledProducts/include"to "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" seems to solve the issue for a lot of people. However, this did not resolve the issue for me.
Is there anything that could be amiss? I never encountered a problem like this prior to updating Xcode.
Associated screenshot:
UPDATE: It seems like updating my Mac OS X to El Capitan might have fixed this problem as I no longer get it. At the time of posting this question, I was on Yosemite. Hope this helps anyone encountering the same issue
This is the solution!
Add this line to your Build Settings -> Header Search Paths:
"$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"
This is a problem with 7.1 check out this thread which may help (on the ionic forums but isn't an ionic specific issue, it's Cordova with XCode 7.1) http://forum.ionicframework.com/t/cordova-cdvviewcontroller-h-file-not-found-in-xcode-7-1-beta/32232
I found a solution on this thread which worked for me with Xcode 7.1 (I was still having problems on OS X El Capitan).
Gandhi's answer is:
Run this in your terminal: cordova platform update ios
Open your project in Xcode
Go to Preference -> Locations -> Advanced
Choose "Unique" as the option for Build Location
Product -> Clean
Product -> Build
I found this solution at http://forum.ionicframework.com/t/cordova-cdvviewcontroller-h-file-not-found-in-xcode-7-1-beta/32232:
Add this line to your Build Settings -> Header Search Paths:
"$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"
Don't replace the existing line that looks similar, that is still needed to be backwards compatible with Xcode 7 and Xcode 6.4.
but doesn't work for old Cordova versions. I cannot upgrade to recent version of Cordova, so after a little try&search approach I found a new solution that seem works on my environment:
"$(OBJROOT)/UninstalledProducts/$(CONFIGURATION)-$(PLATFORM_NAME)/include"
Same advice as before, don't replace the existing line, but append the new role at the end.
Hope this should be useful.
On the screenshot I see a whitespace on "build/UninstalledProducts/iphoneos/include ", try removing it.
And you don't have to remove the old, "$(OBJROOT)/UninstalledProducts/include", you have to keep both
I read all previous answers for this question but nothing helped to me.
I wanted to learn Swift but even empty projects shows this error after build:
Command /Volumes/Xcode/Xcode6-Beta4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255
I use Xcode6-Beta4.
When I try to click Storyboard, Xcode crashes.
Checked my previous applications - same problem with storyboard. But on Xcode5 they work perfectly.
What I tried/checked
I have no special symbols in the name/id/etc.
Provisioning profile is connected successfully.
Choosing another device/target in Deployment Info didnt help too
Clean/Rebuild/Restart/Reboot/Waiting for hour and smoking didnt help.
So I give up and really need your help.
You can do one thing may be this will work for you.
Delete that app from simulator or reset content of your simulator then try to run.
I had the same problem and my solution was to change the /System/Library/CoreServices/SystemVersion.plist content back to 10.10, because I'm using OS X Yosemite Public Beta.
I had the same problem with Xcode 9 beta and iOS 11 beta. Deleting the app and then reinstalling fixed the issue.
Just switch simulator and it works!! its an issue from the xCode! you can reset the simulator or switch to another simulator and it will work