I have a project that must support iOS 7, so I had Xcode 7.3.1 and the latest Xcode 8 installed.
Things were mostly fine. But now, all of the sudden, when I build my project and run it on iOS7, the app crashes during startup.
My colleague never had Xcode 8 installed. When they build the same source (with git repository) on the same device, everything works perfectly fine.
The app fails when it tries to access the view
property of a view controller. That looks like this.
MyViewController *myViewCon = [[MyViewController alloc] initWithNibName:NSStringFromClass([MyViewController class]) bundle:[NSBundle mainBundle]];
// Access the view property
UIView *view = [myViewCon view]; // CRASH HERE
Here's the error I get:
Assertion failed: (tokenCount < maxCountIncludingZeroTerminator - 1), function CUIRenditionKeySetValueForAttribute, file /SourceCache/CoreUI/CoreUI-232.4/CoreTheme/ThemeStorage/CUIThemeRendition.m, line 136.
What I've tried
Deleting both versions of Xcode and removing all files listed here: How to Completely Uninstall Xcode and Clear All Settings
Then reinstalling only version 7.3.1.
Plus a full clean of the build folder.
I don't know what else to do.