What happened:
I was editing a View with lots of Stack Views in it, which was
causing Xcode to behave very slowly.
In one of these edits, I changed the spacing between stacks and Xcode stopped responding.
I forced quit.
The problem
The projects and all its files are opening just fine, but when I go to Main.storyboard, the loading icon never stops spinning. It doesn't load.
What I've tried so far to fix it
I restarted the computer.
I cleaned the project and built again.
I've opened other Xcode projects and the IB opens just fine, looks like the problem is only with the project I was working on when it stopped responding.
Any tips on how I could solve this?
Thanks in advance.
Additional info:
Xcode Version 9.2
Related
As the heading states, I do not get the contents on my live preview appearing on the simulator. The issue does not seem to stem from a syntax error, as the simulator runs perfectly fine. Current solutions I have found have been completed using the storyboard, not the swiftUI.
I have only been able to "resolve" the error through a painstaking restart on my computer every time I update the code. Any solutions appreciated.
Update 1: The white screen persists across projects as well. It may be a software problem, so I am considering reinstalling XCode.
Update 2: "Hello World" works after a bit of waiting. It seems to simply be a really slow launch time..
I realised that all I had to do was run the simulator and then stop the simulator. Then, the updated form would appear within the app.
I just updated to xcode 7.0 and now my app is hanging at the splash screen.
I'm using a Google Maps Pod.
At first a clean & build caused a build fail stating that the Enable bitcode needed to be switched off.
I did that. My app now builds, however when I install it to the simulator or iPad it hangs on the splash screen.
There are no issue flags being displayed and the app appears to just hang forever until forced closed.
Everything was working fine until this xcode 7.0 update. Any ideas?
A previous post xcode 7 issues
stated that there are some problems with content in the view controller when compiled with 7.0. The solution was to completely reassemble the views piece by piece until it starts working. This is not a practical response because of time constraints and financial aspects at work. I uninstalled xcode 7.0 and then went to the Apple developer archives and reinstalled xcode 6.4.
The app now runs correctly. Hopefully this will get sorted out by 7.1.
Originally, I thought this was an issue of the code I was writing, but I've just downloaded four or five WatchKit projects even one from Apple. All of them, fail to load.
I've uninstalled Xcode, reinstalled it and still nothing. Any one else experiencing the same issue? Workarounds? Solutions?
You can see in the screenshot above what the loading screen looks like.
I am already bloody sick of official Xcode 6.2 & WatchKit Simulator. It is so super flaky. Here's another fun fact, if there is some constraint in your storyboard that the watchKit doesn't like then it will also keep looping in an infinite loop without letting anyone know why its doing that. What you need to do is
Drag and drop & add another WKInterfaceController to your storyboard
Make that one your main by dragging the arrow on it
Delete the old watchKit app controller
Now start adding elements one by one and keep testing till it doesn't work any more on the simulator (infinite spin of death)
Try clean and build and even after that it keep the spin ball of death then the last change you made to the storyboard is what it didn't like.
I had to spend hours debugging this crap.
UPDATE:
If the above steps don't work for you then try this
launch Xcode
compile and build & launch iPhone simulator
Now don't shutdown the simulator instead do Xcode --> Product --> Stop
This will keep the simulator running but swill top the iphone app running on it
Do Build --> Clean
Do build again
Now launch watchkit simulator
If you need to stop and start always do Xcode --> Product --> Stop
These steps have always worked for me while making watchkit apps
I experienced this a lot with Xcode 6.2 beta 1. I only got this a few times with beta 2 and 3. Here is what I would do to get it to work.
Reset the simulator via menu->IOS Simulator->Reset Content and Settingsā¦
Quit the simulator
Clean the Xcode project
Restart Xcode
Build and run the iOS App (not the Watch App)
Stop the iOS App
Build and run the Watch App
This would generally fix the app just spinning for me. With beta 1 sometimes I would have to do this two or three times to get it up and running. Once I had it running, it would usually not do it again for a while. With beta 2 and 3 I only saw this a few times.
I always get this issue with Xcode 6.3. I've spent a lot of time on resetting caches in simulator, cleaning/rebuilding projects and so on.
But only one thing always helps me. I just add new blank interface controller on my storyboard and create sequence to it from my main controller.
And when I get this infinite loading of my app, I just swipe to my blank controller and than back to my main controller. After that everything works fine.
In my case nothing here proposed helped. I had to select the module name in addition to the Custom Class name:
This was as a result after renaming the watch kit app. Maybe this is helpful for someone else, since the "spinning wheel of death" itself doesn't give much insight :-/ .
I just recently finished my project and I was chaining a few things and them suddenly nothing is changing when I run it on simulator or device. It stays the same. When I change the text on label it stays same. Nothing is changing at all! Why is this happening?
Have you tried restarting your computer or cleaning the build. There are times xcode gets buggy and just stops functioning properly.
I have an app built in XCode 4 against iOS6. If I open that workspace in XCode 5, clean and build my project, and run it in the simulator, it works (looks a bit different and needs some work, but it works). If I the simply navigate to my Storyboard and do absolutely nothing else, running the app in the simulator again results in my Photo Slideshow showing up black rather than showing pictures properly. A diff reveals it made some changes to the story board file when I looked at it. Rolling back the changes pertaining to my slideshow only is not effective. Rolling back all the changes works until I look at the Storyboard again.
It's obviously capable of working properly - why does it have to ruin everything just because I look at the Storyboard? Now I have to rebuild this part of the app, which is painful because I didn't build this part of the app to start with. This is not great for maintainability.
OK I have been messing with this all day.
In a nut shell keep or install Xcode 4.6 to deploy iOS 6.1 and before apps.
So for Xcode 5 messing stuff up, yes it's not working as expected.
I would expect to set the target
And have it look like an ios 6.1 app but it does not it looks ok in the viewer but both on the simulator and a iPad it looks bad. I have already filed a bug report.
ALSO if you have Autolayout checked in your 4.6 project and then try to look at it in Xcode 5.0 be prepared to kill Xcode as it tries to move everything around. In my case many table views got stuck in an endless loop and finally got a warning that tables can not exceed 10,000 :)