NSLayoutConstraint SIGABRT on iPad
Asked Answered
V

1

0

Application is made in Interface builder. Seperate storyboards for iPhone and iPad. Project runs and works properly on iPhone Simulator, iPad Simulator, iPhone 4 with newest iOs, but I get this error when I build it on 'new iPad' spring 2012 with iOs 5.1. Fix/explanation?

2012-12-12 16:44:16.763 LNG[397:707] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
*** First throw call stack:
(0x32b7488f 0x34b19259 0x32b74789 0x32b747ab 0x3536254d 0x353626bb 0x35362423 0x352f3001 0x352613c7 0x3513ec59 0x350b4c17 0x350b3461 0x350a5e87 0x351167d5 0x350b3e6d 0x350ad7dd 0x3507bac3 0x3507b567 0x3507af3b 0x32c1822b 0x32b48523 0x32b484c5 0x32b47313 0x32aca4a5 0x32aca36d 0x350ac86b 0x350a9cd5 0x84ad 0x8448)
terminate called throwing an exception(lldb) 
Vacillation answered 12/12, 2012 at 15:49 Comment(0)
Z
3

The new autolayout mechanism is iOS 6.0+ only, and the device it is crashing on is 5.1.

To fix it, load the XIB in Interface Builder, select the File Inspector tab, and uncheck Use autolayout. Alternatively, you can target iOS 6.0+-only devices and change the minimum target, if you absolutely must have autolayout.

Zettazeugma answered 12/12, 2012 at 15:50 Comment(5)
Nah. i dont HAVE to. Is unwind also iOS 6 only?Vacillation
Unfortunately, yes. The new unwind segue is iOS 6.0+ only as well.Zettazeugma
Is there an easy workaround / better way to do unwind programmatically?Vacillation
That would perhaps be better suited for its own, separate question as it is a different issue entirely. There is no 'easy' solution that I can think of off the top of my head, but as I tend to not use Storyboards, somebody else would be more equipped to answer.Zettazeugma
Ok, thanks for helping. As my app is kinda aimed toward technical and smart people and not the average home consumer i guess i'll set it for iOS 6 only and hope people survive the apple maps :pVacillation

© 2022 - 2024 — McMap. All rights reserved.