mchoe / SwiftSVG

A simple, performant, and lightweight SVG parser
Other
1.92k stars 229 forks source link

Crash only when a build for distribution is made #97

Closed pavelgubarev closed 6 years ago

pavelgubarev commented 6 years ago

Hi. The app with SwiftSVG works fine when we launch it on our devices with xCode. But when we make a build and distribute it with TestFlight we have this error.

#0Crashed: com.straussmade.swiftsvgEXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000018 Raw Text
--
0 | SwiftSVG | Identifiable.swift line 74_T08SwiftSVG12IdentifiablePA2A19SVGContainerElementRzrlE8identifyySS10identifier_tFAA8SVGGroupC_Tg5
1 | SwiftSVG | SVGParserSupportedElements.swift line 0_T08SwiftSVG12IdentifiablePA2A19SVGContainerElementRzrlE8identifyySS10identifier_tFAA8SVGGroupC_Tg5TA
2 | SwiftSVG | SVGParserSupportedElements.swift line 0_T0SSIegx_SSytIegir_TRTA
3 | SwiftSVG | NSXMLSVGParser.swift line 142specialized NSXMLSVGParser.parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)
4 | SwiftSVG | NSXMLSVGParser.swift line 0@objc NSXMLSVGParser.parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)

Line number 74 in Identifiable.swift is self.containerLayer.name = identifier

Any clues?

buguibu commented 6 years ago

Could you take a look on this other issue https://github.com/mchoe/SwiftSVG/issues/92 ? It seems to be related and your debug could help.

pavelgubarev commented 6 years ago

Thanks buguibu!

buguibu commented 6 years ago

Hi @pavelgubarev , you can close the issue if it's truly related to the one i proposed , ok? thanks!