Every time I try to create a new project in Xcode, the first window, which asks me for the kind of project I want to create, comes up, but after 5
seconds Xcode completely crashes:
Dyld Error Message: Library not loaded:
#rpath/IBCocoaTouchToolFoundation.framework/IBCocoaTouchToolFoundation
Referenced from:
/Volumes/VOLUME/executable_path=/*/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/Interface
Builder Cocoa Touch Tool Reason: image not found
Creating a playground works, but when Xcode tries to compile it, it fails:
Playground execution terminated because the playground process exited
unexpectedly.
Also my previously working project doesn't build anymore with following error:
Please file a bug at http://bugreport.apple.com with this warning
message and any useful information you can provide. Command
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool
failed with exit code 255
When selecting the main.storyboard or launchscreen.xib in the navigator, it also crashes immediately without any error-message afterwards.
I already re-installed Xcode multiple times, which didn't change anything.
I'm running OS 10.11 Public Beta 3 on a MacBook Pro mid 2014
Related
The error: "Command CompileSwiftSources failed with a non-zero exit code"
Cause: Simply messing with 2 Xcode installs by installing both Xcode 13 and Xcode 14 beta (with Xcodes)
Consequences: First, Xcode lost connection with SwiftUI Previews device. Then compiling issues occur. All simulators were also gone from the list. The error keeps showing up for each dependency of the project.
Unsuccessful attempts to solve this:
Uninstalling Xcode by moving it to trash, even performing a clean-uninstall with CleanMyMacX
Manually wiping every Xcode-related file possible (browse the internet or perform a find / -path "*Xcode*" 2> /dev/null)
Recreating a brand new project and moving all previous Swift files into it
Removing and re-adding a bunch of times all my dependencies
Solution: Check the answer below.
The solution came from nowhere. I was trying to open Xcodes to check which versions were installed on the Mac when I accidentally pressed enter on the wrong Spotlight result: Xcode Server Builder.
I have no clue what that is, but I assume it's an embedded Xcode component used for compilation. That is, I opened it and it prompted me some Accessibility access request. I fulfilled it because why not, and I tried by curiosity to compile with ⌘+B, and it worked.
About the empty list of simulators, I simply downloaded the latest available iOS 15.4 Simulator, and every device showed up as before.
Xcode still cause apps using UITextView to crash even after installing "Xcode Version 11.2.1 (11B500)" from app store.
Actually I faced this issue when I run the app on device after installing "Xcode 11.2.1 (11B500)". I got below error response.
Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITextLayoutView because no class named _UITextLayoutView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)'
To fix the above problem:
I had to clear the derived data folder, go to path:
~/Library/Developer/Xcode/DerivedData.
And I did clean build folder using menu: Product -> Clean Build Folder(Shift + Command + K).
Now the app won't be crashed due to UITextView issue.
Whenever I start a new project (macOS Swift) in Xcode (latest versions of Xcode and Mac) I come across this error message:
Unable to load Info.plist exceptions (eGPUOverrides)
I create a new project, run it without having edited a single thing, and this message appears in the console.
Has anybody come across this issue before or have any suggestions as to how to fix it?
I'm using Xcode 4.6, and trying to run a simple app in iPad 6.1 Simulator, build fails with error message
mkdir: /Users/chakradar.r/Library/Developer/Xcode/DerivedData/dino-eddkhtnsnrlgwjgqnaceabrxcjsh/Build/Products/Debug-iphonesimulator/dino.app/wwwof: File exists
that is a temporary directory, i even tried building it after removing the directory, it again fails with a similar message.
Once my Xcode went unresponsive so I force quit Xcode while this application was running, I suspect that could be the reason for the failure. Error message is not helping, how can I fix this situation?
While I don't know the exact reason you're getting this error. Here are some generic steps that you can try in these situations:
In the simulator app go to 'iOS Simulator' (in the top menu), choose 'Reset Content and Settings...'
In Xcode go to 'Product' then 'Clean'
In Xcode go to 'Window' then 'Organizer', click on the 'Projects' icon on the top, find your project in the list on the left and click 'Delete...' beside the 'Derived Data'
Restart your Mac (Yes, sometimes this really resolves some issues)
You can try any of these options individually or all of them.
I too even don't know the exact root cause but
Killed both Xcode and Simulator and ran the app again and it started working for me.
Apparently out of nowhere I've suddenly started getting a compilation error, which only occurs when building for the simulator:
Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 255
It compiled this morning, I have not changed the xib, now this afternoon it fails.
What is it and why is it only for the simulator?
EDIT - the number of errors increasing, first it was one, then I relaunched x code, then it was two, now its increased to 3.
EDIT - Now XCode crashes whenever I try to view any xib.
Maybe time for a reinstall
I had a similar error once. In my case I had edited the SourceCode of a storyboard and failed to add a file in the section.