Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

upgrading to iOS 7 and Xcode 5 - having issues with UIAccelerator, UIStringDrawing and NSObject

I updated my iPad to iOS 7, and discovered that the Enterprise app that I have been working on for over a year crashes. OK, no problem, I'll see where in Xcode it's crashing.

OK, Problem: I have to upgrade to Xcode 5 to debug iOS 7. OK, no problem, I'll upgrade to Xcode 5.

OK, Problem: The source code in Xcode 5 now shows 19 errors: One in NSObject.h, three in UIStringDrawing.h, and the rest in UIAccelerometer.h.

And, for a bonus, it adds one at the bottom, "Too many errors emitted, stopping now." Which is not all that comforting.

I've really scoured the internet for answers, but I must be using the wrong search terms because I am finding nothing that addresses this. Surely I am not the only one.

I have been developing iOS apps for almost two years now, I think, but I am still pretty stupid when it comes down to the nitty-gritty stuff. I usually just hit "Run" and hope it works. So far that has been a pretty effective strategy, but now I am stumped.

Can anyone tell me what I am doing wrong? Except the obvious, being that I should have left everything well enough alone.

I will also have to update my previous app, because it has iOS 7 issues too, but it scares me to even think of it.

I appreciate any help anyone can give.

like image 961
Bill Norman Avatar asked Sep 19 '13 21:09

Bill Norman


1 Answers

I found the answer here: http://blog.spacemanlabs.com/2013/09/how-to-support-old-ios-sdks-in-xcode-5/#comment-1056917662

After figuring out how to do all this, the app showed a couple more errors unrelated to the original problem. Turns out I had a couple of XIBs set for Autolayout. Those being disabled, the app worked great on my iOS 6 phone with Xcode 5.

like image 56
Bill Norman Avatar answered Oct 22 '22 00:10

Bill Norman