Hi,
I recently upgraded to Xcode 7.0 via the Mac App Store. I have been having an error recently which I have been unable to resolve. Basically, when I try to build (or build and run) my Xcode project (which is an iOS 9 app), I get the following error "LaunchScreen.storyboard - Could not open document".
I have tried so many different methods of trying to resolve the problem, but alas, they have all failed. Here are the methods that I tried:
- Restart Xcode (Didn't work).
- Clean and rebuild project (Didn't work).
- Restart Mac (Didn't work).
- Reinstall Xcode 7 from the Mac App Store (Didn't work).
- Delete the "User/Library/Developer" folder and reinstall Xcode 7 from the Mac App Store (Didn't work).
- Delete the contents of the "Derived Data" folder and rebuild the application (Didn't work).
- Installed Xcode 7 on a different Mac (Still got the same issue, even with a new Xcode project).
- I tried the solution in this Stack Overflow question: http://stackoverflow.com/a/31614717/1598906 - But alas it did not work.
- Finally, I tried the following Terminal command with no avail:
$ sudo killall -9 ibtoold (Didn't work) - Obviously I have always cleaned by project and build folder before building my application (Didn't work).
Below is the error log I am getting from Xcode 7.0:
CompileStoryboard BloodyTest/Base.lproj/LaunchScreen.storyboard
cd "/Users/daniel_sadjadian_2/Desktop/Test/BloodyTest"
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module BloodyTest --output-partial-info-plist /Users/daniel_sadjadian_2/Library/Developer/Xcode/DerivedData/BloodyTest-dqhxemnfmeljzncdtjhgruuqqnby/Build/Intermediates/BloodyTest.build/Debug-iphoneos/BloodyTest.build/LaunchScreen-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --minimum-deployment-target 9.0 --output-format human-readable-text --compilation-directory /Users/daniel_sadjadian_2/Library/Developer/Xcode/DerivedData/BloodyTest-dqhxemnfmeljzncdtjhgruuqqnby/Build/Intermediates/BloodyTest.build/Debug-iphoneos/BloodyTest.build/Base.lproj /Users/daniel_sadjadian_2/Desktop/Test/BloodyTest/Base.lproj/LaunchScreen.storyboard
2015-09-21 10:12:34.619 ibtoold[596:7807] [MT] IBPlatformTool: *** Failed to launch tool with description <IBCocoaTouchPlatformToolDescription: 0x7fbceae543b0> System content 1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity: Failed to find or create execution context for description <IBCocoaTouchPlatformToolDescription: 0x7fbceae543b0> System content 1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity: Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-1x with runtime SimRuntime : 9.0 (13A340) - com.apple.CoreSimulator.SimRuntime.iOS-9-0 (Failure reason: Failed to create SimDeviceSet at path /Users/daniel_sadjadian_2/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed.)
2015-09-21 10:12:34.678 ibtoold[596:7807] [MT] IBPlatformTool: Failed to write out diagnostics for marshalling failure: Error Domain=NSCocoaErrorDomain Code=516 "Failed to write out diagnostics for failure" UserInfo=0x7fbceb58c560 {NSLocalizedDescription=Failed to write out diagnostics for failure, NSUnderlyingError=0x7fbceb588110 "Failed to setup directory for failure diagnostics"}
/ com.apple.ibtool.errors */
/Users/daniel_sadjadian_2/Desktop/Test/BloodyTest/Base.lproj/LaunchScreen.storyboard: error: Could not open document
Recovery Suggestion: Failed to connect with the iOS agent. Please file a bug report at bugreport.apple.com.
Underlying Errors:
Description: Failed to find or create execution context for description <IBCocoaTouchPlatformToolDescription: 0x7fbceae543b0> System content 1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity
Underlying Errors:
Description: Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-1x with runtime SimRuntime : 9.0 (13A340) - com.apple.CoreSimulator.SimRuntime.iOS-9-0
Failure Reason: Failed to create SimDeviceSet at path /Users/daniel_sadjadian_2/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed.The last few interesting points to note are as follows:
- There is no option for mew to select an iOS simulator from the Devices list.
- I opened "Window->Devices" and tried to add an iOS simulator, but whenever I select "Create", nothing happens.
- Everytime I try to open one of the storyboard files in Xcode 7.0 - it crashes....
Thanks for your time, Dan.