This is a bug that's really getting on my nerves...
Whenever I try to open the project settings for one of my projects, xcode crashes with this report:
Application Specific Information: ProductBuildVersion: 4H512 UNCAUGHT
EXCEPTION (NSUnknownKeyException): [<__NSCFConstantString
0x7fff783e0fa0> valueForUndefinedKey:]: this class is not key value
coding-compliant for the key CFBundleTypeName. UserInfo: {
NSTargetObjectUserInfoKey = "";
NSUnknownUserInfoKey = CFBundleTypeName; } Hints: 0: Replacement view is installing:
I created an entire new project and c/p the files from my bugged project into it. It happened again. I have Xcode 5 installed on my computer so I accidentally run my project in Xcode 5, setting certain Xcode 5 specific settings and breaking compatability with my Xcode 4.6.1.
Please help...
if you have open your project in xcode5 and then try to open the project in xcode4, all the nibs files get updated according new xcode and it will lead to crash as it is incompatible with older xcode4.
Same problem happened with me also,
What I have done to solve mine problem.
1. Remove references of all nibs from the project. or even move to trash by taking backup somewhere.2. Now, in xcode4 create new empty nib file and open the corresponding nib in xcode5, copy the view and paste in xcode4.3. do this for all the nibs and try to build again
hope it helps
Related
I have a project that builds and runs with no issues when using Xcode 13.0. However, if I close 13.0, and try to then build and run the project using Xcode 13.3, the app will build, but then crash immediately on launch with the following error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle
I'm making no changes in the project at all - the only change being the version of Xcode used to build the app. When comparing the build output between the two versions of Xcode, I have noticed that 13.3 is skipping the "Link Storyboards" step.
A few things that I've tried include:
Removing the storyboard file from the .xcodeproj, and re-adding it.
Removing all localization from the project, thinking it may be related to that. I then tried re-enabling localization.
Creating a brand-new storyboard using the File > New> Fileā¦ menu. Even the new .storyboard files are not linked or added to the project.
Removing and then re-adding the .storyboard files to the Copy Bundle Resources build phase.
Bumped the minimum deployment target from iOS 13.0 to 14.0
Cloned my source code from Git to a new location and built from there.
Product > Clean Build Folder and manually deleted the derived data folder locations more times than I can count. I'm using the default Derived Data location. (~/Library/Developer/Xcode/DerivedData)
I've been able to verify that the storyboard files are not being included in the finished app by inspecting the .app bundle after the build succeeds. All other resources I've been copying to the app are there, but the storyboards are not.
Has anyone else seen this issue, and if so, resolved it? I've been stumped for a few days now, and so far, the only thing that's worked has been rolling back to Xcode 13.0.
Fixed it. Turns out that a few years ago, a User-Defined build setting for CONFIGURATION_TEMP_DIR had been defined in our project. Removing this setting, and falling back to the default value got our project running again with no issues. I'm not sure why this setting had been defined originally, but apparently Xcode 13.3 just doesn't like it anymore.
This line also affected another project of ours, that doesn't use storyboards, but does have an Apple Watch app. In that case, the crash was similar, with the error stating that an Interface.plist file could not be found.
Apple's (archived) doc on the setting.
I can launch an Xcode project, but the second I try to do anything, e.g. toggle automatic signing, link a library, even change the build number or ANYTHING, Xcode crashes. The only hint I get as to why is this error on "Xcode quit unexpectedly"
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[PBXFileReference realReference]: unrecognized selector sent to instance 0x7fbc8f52ee10
Something is corrupted. I thought it was related to the pbxproj file I don't know if that's the case. There are no merge conflicts. Does anybody have any clue as to what is happening? I want to rip my hair out but I'm bald.
Things I've tried:
Updating my system software
Deleting and reinstalling Xcode entirely
The status quo of deleted Derived Data and cleaning the project/builds
Note:
Other Xcode projects are launching fine and I am able to navigate the
IDE. It's only this project.
It seems to be Xcode version agnostic. So far I've confirmed it crashes when changing anything on Xcode 9.4.1 and 8.3.3.
I can provide additional context around the project upon request.
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.
After Xcode Update (5.1) my app crashes when i try to run in iOS 6.x.
I have an app where I have a custom cell and constraints.
Auto layout is unchecked for the xib file. The error I get is:
*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate
class named _UITableViewCellSeparatorView'
I only found one thread about this issue in another forum, but without a solution, just a test that I've done too and got the same error.
I was getting the same error after updating to Xcode 5.1.
I was able to get rid of the error by editing the xib for my custom cell.
Under Interface Builder Document in the file inspector, I switched "View as" to "iOS 6.1 and Earlier". I also have "Builds for" set to "iOS 6.0 and Later".
I got same issue and "View as" and "Builds For" didn't help me. I changed "Opens in" - "Xcode 5.0" and it helped.
PS Don't forget to remove app from device/simulator, clean project and restart xcode (not sure which way was right, I did all of them)
After installing of Xcode 6.0.1 beta 2, I too was encountered with this problem.
My project has iOS Deployment Target is 6.0
Using answer of #AlexZd, I did next actions:
I found all xibs, which will created / displayed at this moment
Before my actions this xibs had next standard settings:
So, for every of xibs, selected by me, this settings was changed on next settings:
Now, check work of it. If this does not works, then do control actions
4.
1) Clean your Xcode project by CMD + SHIFT + K,
2) Clean ~/Library/Developer/Xcode/DerivedData folder by hands
3) Remove app from device and then run it via Xcode on this device
This solution was checked by me on 3 iPads with IOS6, IOS7 within IOS8 too. This works perfectly on any of them!
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.