Main storyboard error in xcode 8 beta - ios

I try to build my project in Xcode8 beta, but I get this storyboard error. Also, I cannot open the storyboard. Xcode shows The document "Main.storyboard" could not be opened. Could not verify document content . The error prompts when I try to open.
Main.storyboard: Exception while running ibtool: *** -colorSpace not valid for the NSColor NSPatternColorSpace

I just had this issue on Xcode 8 GM and I resolved it by doing the following:
Create a new storyboard.
Open your old storyboard as source code (via right clicking).
Select all and copy (cmd+A, cmd+C)
Right click on your new storyboard and open as source code.
Paste (cmd+V)
Right click on your new storyboard and open as Interface Builder - Storyboard
No idea why this works. It's the exact same file content. My guess is there's something cached in the workspace or project that's messing with Xcode's interpretation of the file.

Ok I think I got it.
I got an error like this when updating an Xcode 7 project to Xcode 8. Make sure that you let Xcode update everything in your project to current Xcode 8 standards.
To do this:
Open up your project
Go to Edit -> Convert -> To Current Swift Syntax.
Accept all changes it suggests.
Clean Project ( Product -> Clean)
Please tell me if this does not work so I can try to help further.

I filed a bug report. Now the issue fixed in Xcode 8 final version.

Related

ERROR: "This document requires at least Xcode 12.0"

Opened a project in Xcode 12.0 that I started on Xcode 11.x the other day. Without thinking, I made some edits in the interface builder and when I opened the project back up in Xcode 11.6 I got the This document requires at least Xcode 12.0. error. I can't build the project or open the main storyboard file.
Any thoughts on what I can remove to open/build this project in Xcode 11.6?
The recovery suggestion is Recovery Suggestion: This version does not support image references. Open this document with at least Xcode 12.0., but I'm not sure what that means or where to look.
I had the same issue while loading another author's project. The solution that worked for me was to open Main.storyboard in a text editor such as Sublime and change the line:
<capability name="Image references" minToolsVersion="12.0"/>
to
<capability name="Image references" minToolsVersion="11.0"/>
I was able to build successfully after this and there was no error.
Thanks for the two suggestions! Turns out the issue didn't originate from the storyboard, although that's where the error was being thrown. Instead it was caused by a navigationItem image that I was setting programmatically in one of the project's ViewController files. The icon ended up being exclusive to iOS 14+, which was why the project wouldn't build in Xcode 11.6.
I switched the icon and everything built without issue.
To run your project with previous Xcode versions, try the following:
Open the affected .storyboard file with an external editor (i.e. TextEdit, TextWrangler or any other..)
Search in the xml document for all keys "minToolsVersion"
If you find some key with value minToolsVersion="12.0"downgrade it manually to be compilant with your XCode version.
Save the file and come back to XCode
Now the error should be disappeared.
Select your storyboard > Right Click > Open As > Source code > Search for this key "minToolsVersion" from there you need to decrease your version as per your xcode.

Xcode 9 - Fix all in Scope greyed out

With Xcode 8 the errors could be fixed using the "Fix all in Scope", but in the latest Xcode 9 that option is always greyed out. Do you have an idea if I have to set up something or if it's just a bug?
The Xcode I'm using is the App Store version, build number 9A235, so it's not a beta.
Usually it helps to clean "derived data", the project and to restart your mac. Feels like Windows but I have good experiences with this kind of bugs.
Navigate to the deived data folder in Finder. For this open tab Locations in XCode Settings where you will find a link. Delete all data within derived data folder. (No worry - it will be restored by XCode)
look for and select the page you have error and there is the word fix
and go Editor >>>> Fix All Issues

XCode 7 crashes when clicking on storyboard and solution by Apple engineers in dev forum does not work

I got XCode 7 beta 2 installed and I do the following steps:
create a new XCode project (single view application)
add a Watch target to the project
select any .storyboard file
There is a similar discussion on the apple developer forum but the solution suggested by the Apple engineers does not work.
Anyone had better luck?
This is the Mac OS version and hardware specification I got:
Well what I would suggest is updating OS X Yosemite. After you do that close all applications (including safari) except Xcode beta. Once opened try click the app's main file (at top) when on that ctrl click on the storyboard:
"Open" > "Source Code"
Then simply change one line of code. Then undo it, but NOT with command z or going to:
"Edit" > "Undo"
Just rewrite that line of code. After rewriting that line of code go back to the app's main file. Then ctrl click on the storyboard:
"Open" > "Interface Builder – Storyboard"
That should work if not please be specific in when it first crashed when you did this. And if there is anything at all in the storyboard, please tell me. I hope this worked.
In my case storyboards was causing crashing because it was:
propertyAccessControl="nonLocalizable"
and should hould be:
propertyAccessControl="none"
Second line in storyboard.

Swift: Thread 1 signal SIGABRT

After upgrading Xcode from 5 to 6 beta, almost every project gives me an unexpected error after running the application. There are some other posts with this title but the error is different.
In AppDelegate.swift, sometimes the simulator goes completely black, without the error, sometimes it gives me the error on this line:
class AppDelegate: UIResponder, UIApplicationDelegate {
In Xcode 5 I didn't had this error before, with Deployment Target set to 7.0 or 7.1.
Thanks in advance.
This error is caused when you have 2 or more of the same IBOutlets or IBActions in your main.storyboard inspector (right arrow key at the very end of your options). Find out where there is double, and delete the one you don't need! It should work perfectly fine after that.
Seems like there was a bug with iOS 7.1 as target.
Running tests on devices with iOS 7.1 installed now works. (17028705)
Try it again with the beta 2 update
I found this issue happened when I linked #IBOutlet/#IBAction and the linkage broke (renaming for instance). In the main.storyboard inspector, right click (control click) on the elements and delete any bad linkages. Should fix the error if that's the issue.
(Xcode 7)
fix my problem:
Go to deployment info and in "Main interface" select your correct storyboard...
Rerun app.
My issues with this started after I installed the legacy simulators (iOS7.1) under 'More Simulators' under the simulator build target. Xcode 6 and its native simulator had been running fine until then. What fixed it for me was to close Xcode, delete Derived Data, and under iOS Simulator in the simulator application choose "Reset Content and Settings" then restart the system.
I'm new to the coding world but resolved the painstacking problem. I was getting the same error by doing something and even though i deleted everything around that i couldn't resolve it. It was still giving me the same error, which meant that it is not deleting in some file it stores. Took me a while to figure out which file, finally when i opened the Mainstoryboard as source file, and did search on the error key word which i knew i changed, it gave me the lines it was sitting in. After deleting those lines error got fixed. I know basic HTML so i knew which lines to delete.
I cannot start my project all over again everytime i have this error so i had to find the solution and there was no solution i could find. So i had to do it myself with common sense, as i said i have no knowledge of coding.
Hope it helps.
I know there's already plenty of answers but just to note what happened in my case:
I created the ViewController on the storyboard first and then I created the class, I don't know why this was an error because both class names where identical, but by rewriting the class name on the storyboard helped to "link" correctly the view controller and its file. First create file then ViewController on storyboard to prevent this error.

How do I fix a project opened in xcode5 dp3 by accident?

At some point I opened a project in xcode5 that was created in xcode4. Now I can build/run because of a storyboard error. XCode4 simply wont run it, it says:
The document Storyboard.storyboard could not be opened, could not read
archive. Please use a newer version of XCode. Consider changing the
documents development target to preserve compatibility.
So I go to XCode5 I get this:
2013-07-19 10:38:11.340 ibtoold[756:707] [MT] DVTAssertions: ASSERTION
FAILURE in
/SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-3697.3/IBPlugin/Utilities/IBObjectMarshalling.m:673
Details: Failed to compute auto layout status IBLayoutConstraint,
IBUILabel, IBUITableViewCell, and IBUITableViewCellContentView.
Interface Builder encountered an error communicating with the iOS
Simulator. If you choose to file a crash report or radar for this
issue, please check Console.app for crash reports for "Interface
Builder Cocoa Touch Tool" and include their content in your crash
report.
and when I try to open the storyboard, XCode5 crashes.
Any ideas?
Open the Storyboard/Xib file on Xcode 5, And then: 1. Open file inspector 2. On "Interface Builder Documents" section change "Open with" to Xcode 4.6 (if it's 5.x). 3. Save, Close the project and open that with old Xcode.
It should work now.
This is same method like on earlier releases so I assume that's ok for NDA case (you can do the same thing on Xcode 4.6 to work with older version).
Or read my answer here: Just installed xcode 5 and have missing storyboards
Open the storyboard in Xcode 5. In the file inspector on the right, you should see something that says "Document Versioning". There you should set the deployment level to iOS 6.1 and set it to open the file with Xcode 4.6.2. After you do this, you should be able to open and build the storyboard in Xcode 4 again.
I had a similar problem but could not even open the storyboard - Xcode 5.0.1 and 5.0.2 kept crashing with
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-3697.3/IBPlugin/Utilities/IBObjectMarshalling.m:673 Details: Failed to compute auto layout status IBLayoutConstraint, IBUILabel, IBUITableViewCell, and IBUITableViewCellContentView.
The solution in my case was to open project and storyboard with Xcode 5.0 (the last version the storyboard opened in) and to search for a table problem.
After some time searching, I found a second table that must have been inserted in error behind the real table. It had no height or width so was only spotted in the inspector on theleft hand side (see picture). I deleted this rogue table and then loaded in 5.0.2 and life was good!
I ended up opening the XML and removing the Boolean for AL and then re-adding it.

Resources