Xcode 7 beta - build error (xcassets)

I just installed the beta version of Xcode 7 and converted my Swift project with Swift 2 recommendations.

The build is ok, but xcassets: I reached this error in the logs:

CompileAssetCatalog /Users/phoenix/Library/Developer/Xcode/DerivedData/{...}/Build/Products/Debug-iphoneos/{...}.app {...}/Images.xcassets cd /Users/phoenix/Dev/Xcode/{...} export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode-beta.app/Contents/Developer/usr/bin/actool --output-format human-readable-text\ --notices --warnings --export-dependency-info /Users/phoenix/Library/Developer/Xcode/DerivedData/{...}/Build/Intermediates/{...}.build/Debug-iphoneos/{...}.build/assetcatalog_dependencies.txt --output-partial-info-plist /Users/phoenix/Library/Developer/Xcode/DerivedData/{...}/Build/Intermediates/{...}.build/Debug-iphoneos/{...}.build/assetcatalog_generated_info.plist\ --app-icon AppIcon --launch-image LaunchImage --compress-pngs\ --enable-on-demand-resources YES --target-device iphone --target-device ipad\ --minimum-deployment-target 7.0 --platform iphoneos --compile\ /Users/phoenix/Library/Developer/Xcode/DerivedData/{...}/Build/Products/Debug-iphoneos/{...}.app\ /Users/phoenix/Dev/Xcode/{...}/Images.xcassets /Users/phoenix/Dev/Xcode/{...}/Images.xcassets: error: Failed to find a suitable device for the type SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPad-2 with runtime SimRuntime : 9.0 (13A4254u) - com.apple.CoreSimulator.SimRuntime.iOS-9-0 Failure Reason: Failed to create new simulator device that matches SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPad-2 for runtime SimRuntime : 9.0 (13A4254u) - com.apple.CoreSimulator.SimRuntime.iOS-9-0 ((null)) 

UPD: Now when I try to launch iOS Simulator from the "Open Developer Tools" menu from the dock, I get this error:

 Dyld Error Message: Library not loaded: @rpath/SimulatorKit.framework/Versions/A/SimulatorKit Referenced from: /Applications/Xcode-beta.app/Contents/Developer/Applications/Simulator.app/Conte‌​nts/MacOS/Simulator Reason: image not found 

UPD2: When trying to start the launch simulator from the terminal, I get a warning:

 $ Applications/Simulator.app/Contents/MacOS/Simulator dyld: warning, LC_RPATH @loader_path/../../../../Library/PrivateFrameworks in /Applications/Xcode-beta.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator being ignored in restricted program because of @loader_path dyld: Library not loaded: @rpath/SimulatorKit.framework/Versions/A/SimulatorKit Referenced from: /Applications/Xcode-beta.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator Reason: image not found 

I think this is the main problem ...

+7
ios xcode7 ios-simulator
source share
3 answers

Go to ~/Library/Developer/CoreSimulator/Profiles/Runtimes , and then remove the runtime - the runtime is old. After that, restart Xcode7 and run Simulator ...

Further explanation from @seancook :

I also experienced this on El Capitan. NIBs will not load, no Sims are present and cannot run simulators through the Xcode / Open Developer / Simulator menu. After struggling with him for several hours, I finally got his job.

Here's what worked for me (YMMV): I noticed a message in Console.app on the lines of the simulator runtime not signing the code. I followed the path that he described "/ Library / Developer / CoreSimulator / Profiles / Runtimes" and deleted that I had there. They were old runtimes, so I assume that some validation is now applied in Xcode, which has not been done before. Who knows?

After that, I could finally run the simulator through the Xcode / Open Developer Tool. Unfortunately, the Simulator was still not showing up as a work target in my workspace, so I continued spelunking ...

Then I went into the Simulator Hardware / Devices / Manage Devices menu and added a new iOS9 device. It seems he did nothing, so I left Xcode and Simulator.app. Then I restarted Simulator.app (via Xcode / ODT / Simulator) and lo and here the expected iOS9 simulators were displayed. I closed and reopened Xcode, changed the target OS for my project, and the Sims were finally displayed as running targets.

+8
source share

I used the old xCode (I have 8.3.1 installed by appstore and I used 8.2.1). For me, the solution was Xcode / Preferences> Locations and setting up command line tools: Xcode 8.2.1 (8C1002) (it used to be on the new Xcode)

+5
source share

I just cleared the data and now it works fine.

+2
source share

All Articles