In my case, the problem occurred when one of the source files contained a very large array declaration like this:
NSArray<NSArray<NSNumber *> *> *points = @[ @[@38.576732f, @-90.230682f, @1495320246], // 1 item ... @[@37.478034f, @-89.524851f, @1495336147] // 3000 item ];
There were about 3 thousand items. Dividing the source line into small ones does not help.
Fixed it by placing items in a CSV file and analyzing it at runtime.
Another approach can be broken down into smaller arrays and concatenations at runtime.
source share