Xcode build fails. Xcode crashes on clicking mainStoryBoard - ios

Build fails for running (every) iOS project only. Succeed's for other For Eg: Command line tool application. Also when I click on MainStoryBoard the Xcode crashes.
My Xcode: Version 5.0 (5A1413) on OS X Yosemite Version 10.10
Getting two errors:
(1)Command
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool
failed with exit code 255
(2)
/Users/sky/Desktop/xcode projects/SKY/SKY/Images.xcassets: The
operation couldn’t be completed. (IBMessageChannelErrorDomain error
1.)
Things I have tried.
(1)I have tried Right click on Storyboard in the navigator -> Show File Inspector -> Uncheck "Use Autolayout". It does not solve. Please help!
(2)I have tried project cleaning cmd+Shit+K, Clean succeeded, Build Failed!

This might help. Create a new project and check if the behaviour is the same. If Xcode doesn't crash on your new project, open your "problematic" project and go to the menu "Product" and then "Clean", that might fix the issue. That happens to me a lot with visual studio and eclipse. Hope you get it working, post the solution later please.

Apparently, installing latest version of Xcode (Xcode6) did solve the issue. (My older one was xcode5). Now all iOS projects run. I had a feeling upgrading should ideally solve the problem, but I wanted to work for that project on xcode5, hence I was looking for a solution. Thank you every one for help.

Related

Build Error in Xcode 11.3.1 - IBCocoaTouchFramework-ThirteenAndLater

I am having following error every single time I try to build an app in Xcode 11.3.1 on macOS Catalina 10.15.3. I see this error for UIKit as well as SwiftUI based projects. Xcode fails to load storyboard file (or scene) and fails to build
/<PATH TO PROJECT>/Base.lproj/LaunchScreen.storyboard:1:1:
Failed to find or create execution context for description '<IBCocoaTouchPlatformToolDescription: 0x7fd283181f90> System content for IBCocoaTouchFramework-ThirteenAndLater <IBScaleFactorDeviceTypeDescription: 0x7fd283187160> scaleFactor=2x'.
Please note, this error is not specific to LaunchScreen.storyboard file. I have tried not having launch screen and instead straight Main.storyboard but nothing works.
I have tried everything else including rebooting my mac, killing Simulator process deleting Derived Data. All these steps, a few of these steps but cannot get rid of it. My Xcode is plagued with this issue and I cannot build any project.
If you have encountered this issue, please share what you did to solve it.
Thanks in advance.
In my case, reinstalling Xcode fixed it for me.

Simulator not found after Xcode update

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.

FirebaseUI/PhoneAuth/FirebasePhoneAuthUI/FUICodeField.xib:-1: Failed to find or create execution context for description

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.

Xcode 8.2.1 quits unexpectedly every time when I open my project

I'm getting an error Xcode 8.2.1 quit unexpectedly whenever Xcode is opened. This was working fine till last night. I have tried restart system but didn't worked.I have updated mac OS with macOS Sierra (version 10.12.3).
I already deleted derived data from preferences but it's not working for me.
please tell me why its happening like this...Thanks a lot in advance...
I've had this situation before.
My solution is that:
quit Xcode clearly
open other no question project or create a new project
open the your project again which will quit unexpectedly
it's maybe Xcode's bug, this is work to me, hope it's work to you too!
That state information might have become corrupted.
Follow these steps hope it will help you
1.) Right click on your project.
2.) Choose package content.
3.) Delete all extra files except project.pbxproj
4.) Come back to your project.
5.) Run

Xcode 8 Beta (null) was unable to service the request

I have an app that worked fine in the released version of Xcode. I downloaded the beta and after I fixed all the little changes I ran it and it worked. I just came back and ran it again and I get an error saying
The request to open "com.matthewhsingleton.Smoke" failed . (null) was unable to service the request.
I have quit Xcode and reopened it, I have restarted my computer, tried different iPhone simulators and all produce the same resulte
My error was similar, instead of "(null)", the message was: "SpringBoard was unable to service the request"
Restarting the simulator worked for me.
After reading #Droppy suggestion I read the thread and it is a common issue. To solve it is as follows
Problem solved for by an Apple Engineer in the lab. It's an issue they're working on. The bottom line was that when I copied Xcode to Applications folder, there was a bit set on it and that was preventing it from communicating with the simulator.
To fix it:
Copy-paste Xcode-beta.app from Applications folder to somewhere else, e.g. Documents folder.
Delete Xcode-beta.app from Applications folder.
Move Xcode-beta.app from Documents to Applications folder again.
Seen here https://forums.developer.apple.com/message/143094#143094
I had 2 versions of Xcode installed. Xcode 7 and 8. I resolved this issue by setting the command line tools to Xcode 8 in preferences. Open preferences -> Locations -> Command Line tools. Set that to Xcode 8.

Resources