Xcode 8 crashes on storyboard view and displays only blue outlines around views - crash

I have Updated Xcode yesterday from version 7 to version 8.1 overnight and deleted the xcode 8.0 beta that i had!
Today I tried to Open all my projects, and when I go to the storyboard, I get the following Error..
An internal Error Occured. Editing Functionality may be limited. Report a Bug (which I did).
The project that I opened, does not use size classes or autolayout.
I have searched many questions on the net, which pointed that the problem is caused by projects without autolayout. or suggested that i clean xcode, simulator, deleted derived data folder.. all without success..
I also tried saving the storyboard as an Xcode7x file with no success..
Finally I tried creating a new SingleView Application and added a UIButton to it.. (while using size classes, autolayout..) still the same.. so it's definitely an Xcode Bug issue.. Not an autolayout incompatibility problem.
any hints?
p.s. compiling the project will actually run great, and all ui elements will show as intended. I don't have Xcode7 installed anymore.. any suggestions?

I can not reproduce the crashe, but I could fix messed up UI by setting up the following under Editor menu -> Canvas:

It was fixed when i updated xcode!

Related

Xcode 6.1 crashing when running the project

I searched StackOverflow and it doesn't look like many people are having this problem, but for me, this happens very, very frequently. Maybe not every time, but perhaps every other time.
Once I try to build and run the app, Xcode crashes, and in a strange way: it just disappears with no error messages, no suggestion to report the problem, nothing at all. This happened with Xcode 6.0 as well. It doesn't matter whether I am running the app on a device or on an emulator.
To prevent the crash, I need to Product > Clean. If I do this clean each time before running the app, crashes do not happen, but once I forget to do that, Xcode can crash any moment.
I don't think I ever had this crash with an old project, but it keeps happening with the project that I started in Xcode 6.0.
Because of that, iOS development is becoming for me quite a painful exercise, similar to pre-Android-Studio Android development.
Is it just my problem, or maybe someone else is having it? Maybe someone has a solution?
I just started running into the same issue and found a workaround for it. Found it to be an issue with building when Xcode is full screen. Seems silly, but so far exiting full screen mode has worked for me. I've been able to re-introduce the issue after building full screen a few times, and then instantly fix it again by exiting full screen.
Yeah, it's not that the app is crashing, it's just that the click is triggering the red close window button behind the red button (yeah, seriously). You'll notice, Xcode is still open, it's just that the window has closed. You might also notice that sometimes when you click "stop" in full screen mode, it switches to non full screen. Again, the tap is passing through the run/stop buttons to the underlying window controls.
So dumb.
I solved it using 'cmd + R' instead of clicking the run button

simulate Document in Xcode 6

There used to be a pretty nifty command in xcode 5 where you could simulate the document. I mean when you pressed this option, only the UI of the app got loaded and then you can just see how the autolayout is working.
I forgot where this is and I'd upgraded to Xcode 6.0. COuld anyone help me where this option is in xcode?
Yes, it is gone. There's no way to get it back.
However, you can instead preview .xib or storyboard files in assistant editor. This dose not open a new window, however, the storyboard file shows the UI preview by default.

Xcode Interface Builder Click + Drag Sticking

I am attempting to use Xcode on Mavericks, but I am having a very peculiar problem. It seems as though my click locations are getting stuck and causing every click to be recognized at a click + drag. It's very strange and therefore somewhat hard to explain so I captured the problem within a QuickCast:
http://quick.as/a0jVc20J
I have tried using another mouse and I still have the problem. I have tried reinstalling Xcode and the problem persists. The mouse works fine elsewhere, and I do not have any other problems akin to this in any other app. Does anyone have any suggestions? I am desperate: as you can see, it is impossible to build an interface with this mouse situation.
Thanks!

changed product name in build settings, now app won't launch in simulator

I wanted a different title to be displayed in the sub-title under my iPad app's icon and changed the Product Name for my app under Build Settings.
This worked but has had a strange side effect. Whilst the app continued to work perfectly on a connected iPad, on the emulator it now behaves in a similar way to that described in [this question].1
Namely, it says it has finished running <my app> on iPad 6.0 Simulator
I tried changing the Product Name back but the problem persists.
I also tried some of the suggestions on the other question (e.g. removing armv7 frfom Required Device Capabilities) but nothing worked.
This isn't a showstopper at the moment as I have a real iPad to test on but I'd still like to understand what is going on, if anyone knows.
Sounds like time for a reboot of the Mac. Restarting Xcode might suffice. One other thing to try is to delete the app from the simulator.
I have seen this on iPhone simulator 6. Many a times, when you click "Run" again - it runs without problem.
However if that doesn't work, you may try one of the following:
Project->Command+Alt+Shift+K - a choice will appear saying something like clean folders. Do it.
In organizer, go to derived data folder (finder) using tiny arrow just at the right of your project. Try deleting your project from finder. If it doesnt delete at once, try it often.
Try resetting iPhone or iPad simulator.
Exit XCode and reopen project. Do the same with iPhone / iPad simulator.
If you are wondering why this is happening, no one really knows! It's just some flags gone bad, restored once you re-do everything for it to work, that's it.
Have you tried switching off the Debugger?
So Edit Schemes -> Debugger -> None
Also restarting the Simulator and Xcode and cleaning the project may help
Use another way: click on the azure icon of your project, keep the trackpad pressed until you see it allows to edit the name. Choose the name that you want, then a sheet like this will appear:
Click "rename" and you're done with it.

I comment out code in my iPad app, but it still gets executed...how is this possible?

I have a calendar program that I am trying to convert to iPad (using XCode4, no storyboards, but running on the Simulator).
It currently is not behaving correctly when I move to a previous month (I get a blank screen before the view is re-drawn). So I commented out the code that does the actual creating and drawing of the screen, and the screen is still re-drawn! I comment out other code, and the same thing happens... it's as if it is ignoring the commented statements!
I am dumbfounded as to why this is happening... I have done multiple cleans, straight builds then run... same thing happens.
Any ideas?
Have you tried clearing the cache of the simulator?
From the simulator menu:
IOS Simulator > Reset contents & settings
Try cutting out the code from Xcode. If it still runs then something is seriously wrong. Also try duplicating the project folder in finder and run the new project, it has solved some weird xCode behavior for me.
An unmatched brace, parenthesis or other syntax error can cause both the problems you describe.