On Oct 11, 2016, at 12:42 PM, Quincey Morris wrote: On Oct 11, 2016, at 06:37 , Alex Zavatone < email@hidden> wrote:
Is there any update on why creating an app in Xcode 8 on an iOS 8 device randomly crashes with malloc errors?
a. Is Xcode crashing or the app? You’re not clear on that point.
b. You’ve been doing this long enough to know that it’s pointless to state that your app crashed without posting the exact text of the error message, and (possibly) several lines from the top of the backtrace at the time of the error. If Xcode crashed, submit a bug report ASAP.
c. Xcode 8.1 is now up to beta 3. If you suspect that Xcode is mis-building your app, it’s worth retrying with the latest beta.
You're correct on all counts, Q.
What's happening is that under Xcode 8, building and running our app on iOS 8 causes random malloc, invalid pointer and bad access exceptions in our iOS app. These errors appear to be coming from all over the Foundation frameworks. There is no one clear crash point. There are many. I didn't want to waste everyone's time with 5 different stack traces. Every time the iOS app is run on iOS 8.1.3 from Xcode 8.0, the iOS app decides to crash at a different point in the code - the point being from a known set of about 5 places.
We have malloc errors, we have invalid pointer errors and we have bad access exceptions.
With this data, it's clear to me that Xcode 8 has a pretty significant issue with building to iOS 8, one that should be apparent to anyone who tried to build and run their app on iOS 8 from Xcode 8, as long as their app has view controller that features a method known as viewDidLoad within it.
Seriously, seemingly random crashes of several types, all over the place, just to keep things interesting. In main(). In view controllers, in foundation. All over the place and remarkably pseudo-random.
Considering how long it takes to download and install Xcode, I don't want to have to waste 1/2 a hour to download and install an Xcode 8 beta if I don't have to and knowledge can be shared.
Thank you, sir. - Alex Zavatone |