I successfully ported my game to iOS 11 with Xcode 9, written 3 years ago in objective-c using cocos2d-objc 3.4.9 and the no-longer maintained SpriteBuilder.
Everything works fine and as expected except for a very strange error which pops up only while testing it with the iPhone X simulator (and only there).
The error is the following, as shown:
[LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
Will attempt to recover by breaking constraint
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
Even if the error is generated, as far as I was able to test it, the game behaves as expected, at least it seems to.
Any idea on why this happens and on how to fix it?
Is this coming from cocos2d?
Is this happening to any of you?
Thank you so much for your precious help.