Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: Could not load any Objective-C class information using PaintCode's code

I am trying to draw svg maps using code generated through paintcode. The code is working fine when I am running it using simulator. But If I run it in device (iPad), it is crashing in drawCanvas method giving

Warning : Could not load any Objective-C class information. This will significantly reduce the quality of type information available.

Warning Screen Shot

Click here to check the warning Screen Shot

I am drawing map in storyboard where in view there is a scrollview and inside that one image View. I have added one StyleKitClass object (StyleKitClass is an NSObject class generated using PaintCode app) with which I connected via IBOutlet Collections to imageView.

Outlet Connections

Click here to view Outlet Connections

If anyone knows then please help me with the solution.

like image 345
PriyaJain Avatar asked Jul 26 '16 07:07

PriyaJain


1 Answers

I work at PixelCut, we make PaintCode.

After you sent us the project I was able to confirm this issue by running on iPhone 5s. Unfortunatelly, you are pushing PaintCode, Xcode and iOS to their functional limits by trying to use drawing method with 53 thousand lines of code. This single method takes 9 MB in the binary (arm64 only, -Onone) and uses almost 1000 variables of pointer type. My best guess it that the app reaches some limits of stack memory size and is terminated by system.

We have seen StyleKits with more than 10 thousand lines before, but none of them had a single method this large. I would recommend to split your drawing into several canvases and compose them using Symbols, but I’m afraid that working with such huge drawing may be painfully slow.

like image 135
Tricertops Avatar answered Oct 16 '22 16:10

Tricertops