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
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
If anyone knows then please help me with the solution.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With