Storyboard Preview in Xcode force closes every time - xcode

Whenever I try to use the Storyboard Preview feature as part of the Preview Assistant Editor in Xcode, the whole program just force closes each time. However, there is nothing wrong with the code as it runs just fine in simulator.
The message I get simply states: "Xcode closed unexpectedly".
OS X Version: 10.11.6
Xcode version: 7.3.1

I have had the same problem and the only thing that solved it for me was to completely uninstall and remove Xcode and the to reinstall it again.
This is the stops you do to uninstall Xcode you need to remove:
/Applications/Xcode.app
/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Caches/com.apple.dt.Xcode
~/Library/Application\ Support/Xcode
~/Library/Developer/Xcode

Related

Flutter: XCode error "Unable to boot the Simulator"

Iam running the latest OSX/Flutter/XCode Versions using flutter, android studio and firebase and 1 hour ago everthing works perfectly.
Then i rebooted my macbook and when i try to launch an ios simulator i get this error "Unable to boot the simulator".
The following steps shows no solution:
Reinstall the ios simulator
Flutter clean and pub get
Updating comand line tools 13.3.1 (13E500a)
Run invalid cache of android studio
I found the problem also on stackoverflow but all sugestions does not working.
Any ideas?
Let me know if you need more information!
Thank you
NO NEED TO UNINSTALL XCODE! Though I know the contributor already has solved the issue, I'm happy if this answer will help someone else.
Go to [About this Mac > Storage > Manage > Developer]
Delete all the content (no worries!)
You can delete xcode cache and it will work,
by going to
About this Mac > Storage > Manage > Developer or any folder you choosed for development when installing xcode and flutter then Delete XCode Cache.
Step 1:
Go to About this Mac
Step 2:
Go to Storage
Step 3:
Delete all the content Or Delete XCode Cache
You can just clean your Xcode Caches, and that will do the trick,
About this Mac
Storage
Developer
XCode Caches
For me it was not necessary to delete XCode. I could solve it with this:
1: Click on "About this Mac" in the top left corner
2: Click on "Storage"-Tab
3: Click on "Manage"-Button
4: Click on "Developer"-Tab
5: Right click on all the data and "Delete"
For Mac Ventura 13.0 OS and higher -> Click apple logo on top left of your Mac
System Settings > search Storage > Developer
Then delete Xcode Caches
Product-> Clean Build Folder works for me!
After checking some other comments, it seems uninstalling XCode is not necessary.
The issue is not directly related to Flutter but it is related to the XCode 13.3.1 with the Simulator, specially for iPhone and iPad (tvOS and watchOS should have no issue so far).
Somehow the existing files during the security update causes the simulator to get corrupted.
As temporary workaround, you can try the following steps:
Uninstall XCode by moving from Applications folder to the Trash
Empty the Trash
Open the Mac Storage Management and go to the Developer in the sidebar
Delete everything from the Developer Section
Download Xcode 13.1 from Apple Developers and not the stable release from App Store
Extract the downloaded Xcode_13.1.xip file, i actually recommend via terminal by using xip -x Xcode_13.3.1.xip, and take in mind the extraction uses 100GB and it takes up to 2 hours to complete. You are going to have this message at the beggining xip: signing certificate was "Software Update" (validation not attempted), but you can ignore since this is expected.
Finally, move the extracted XCode file to the Applications folder
Run sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Run sudo xcodebuild -runFirstLaunch

Xcode launch screen minimising whenever I try to open project

I have been using the latest Xcode for weeks now with no issues. Today I tried to launch Xcode and was met with a bouncing icon which ultimately got no further.
So I restarted my Mac and tried again, this time with success, I got as far as the launch screen
Now what I have is I try to open the project that I was using yesterday (I have tried other projects) and the launch screen disappears.... and nothing happens, if I click Xcode's icon in the launch bar (along the bottom) the launch screen reappears.
Xcode is not closing so it's not crashing as far as I can tell
every so often it does give me the spinning circle and then crash.
I have also reinstalled Xcode but nothing has changed
Macbook air 2017 -
macOS Big Sur (11.2.3) -
Xcode 12.4 (12d4e)
Incase anybody else experiences this issue I will answer this question here.
This appears to be a bug with the Xcode launch screen for this version of Xcode.
My solution was to simply click the checkbox that says "show this window when Xcode launches" to turn that off
relaunch Xcode and open my project from the file menu.
Thanks matt for the suggestion :)

Xcode 10 storyboard UI components are not visible and painfully slow?

My code was working fine (showing UI properly) when I had Xcode 9 and I removed it from the application folder (could not update as it had installed using another apple id) and reinstall the Xcode 10 from the Appstore.
Now Xcode storyboard not showing any added UI elements colors or anything and I removed Xcode 10 and installed Xcode 9 again but problem remains same.
UI screen shot of storyboard.
I tried removing Xcode in this way:
/Applications/Xcode.app
/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Caches/com.apple.dt.Xcode
~/Library/Application Support/Xcode
~/Library/Developer/Xcode
~/Library/Developer/CoreSimulator
Then I tried installing macOs Mojave and install XCode 10 again from the Appstore. Issue still remains. I tried cleaning derived data, xuserdata and everything.
Try cleaning your project using "Command + K"
and run your project again!
Hope it works!
I encountered the same issue that you are facing in my case i had xCode 10.0 installed and everything was working fine. As soon as I installed version 10.1 I faced the same issue that you're facing but the good thing was i had xCode 10.0 installed at the same time so I switched back and everything was working fine.
From my point of view my system(Mac-mini mid 2011) was lacking hardware specification that was required for xCode 10.1 also had very low graphic processor in my mac mini. If you install the same version in a MacBook or any other system having higher specification you'll face the issue. I hope that helps.
I was stuck on this all day. One of my coworkers suggested removing occurrences of IB_DESIGNABLE & #IBDesignable. This fixed the issue for me. It still lags sometimes but doesn’t go invisible anymore.
If you have multiple xib files then just try to switch between or Try moving to launchScreen storyboard and then switch to main storyboard. I think this is just loading issue.
Reinstall Xcode. That worked for me.
Click on library button(Circular Button) which is left to hamburger sign(Top Bar Right Side). Elements will be popup on your screen then you can choose elements.
try
xcrun simctl erase all
it helped me with the same problem

Update to xcode 7.3 is not working

Is someone else having problems to update xcode 7.2 to 7.3?
Firstly there is no update option in App Store. I found a link at App Store xcode 7.3, this link will open your app store on the xcode page, after I press update, a loading spinner appears but after 2 hours of waiting nothing has happened Is there another way to update xcode?
Edit: There is no option update xcode in App Store
xcode 7.3 is not supported in OS lower than 10.11, You need to upgrade your OS to OS X 10.11 or later (El Capitan) and try to upgrade the xcode to 7.3
You can download Xcode yourself from https://developer.apple.com/downloads (an Apple Developer account required).
This is what you should see (I filtered the available downloads by typing "Xcode"):
I had the same problem while I was trying to update to Xcode 8.1 with Waiting.. status on AppStore under Xcode icon. What I has done to fix this is:
1) Go to https://developer.apple.com/download/
2) Press Lunch Application
And when it opens on AppStore, it will refresh the status from Waiting.. to Downloading...

Xcode 4.6 crash on Mountain Lion

I'm trying to use Xcode but since I'm on OS X Mountain Lion (10.8) it always crashes. If I try to run an app (a new project without anything) with the iOS Simulator it crashes. If I go into settings it crashes.
I've tried removing Xcode (moving to trash), reinstalling it from the Mac App Store, repairing the hard disk...but nothing worked.
Any ideas?
I can copy the log if you need it.
Edit: log http://pastebin.com/rgsYbpQ0
I would try wiping out these two folders after uninstalling:
~/Library/Developer/Xcode/
/Library/Developer/Xcode/

Resources