Ti.SvgView
Ti.SvgView copied to clipboard
Can't build iOS App in SDK 6.0.1.GA
When I try to build the app with SDK 6.0.1.GA in an iPhone 7 simulator, this error occurs:
[TRACE] : Undefined symbols for architecture x86_64: [TRACE] : "OBJC_CLASS$_SVGKLayeredImageView", referenced from: [TRACE] : objc-class-ref in libcom.geraudbourdin.svgview.a(ComGeraudbourdinSvgviewView.o) [TRACE] : "OBJC_CLASS$_SVGKImage", referenced from: [TRACE] : objc-class-ref in libcom.geraudbourdin.svgview.a(ComGeraudbourdinSvgviewView.o) [TRACE] : ld: symbol(s) not found for architecture x86_64 [TRACE] : clang: error: linker command failed with exit code 1 (use -v to see invocation) [ERROR] : ** BUILD FAILED **
With older versions of the module, the error doesn't occur but no SVG is seen on screen, just the empty view.
Thanks!
Sorry, I have seen that the build issue comes when using the module v1.1.0 from caffeinalab (https://github.com/caffeinalab/Ti.SvgView).
With v1.0.2 everything works ok. My problem was that I was testing with some .svg that seems to be not compatible (exported from illustrator). If I use the ones you put in the sample app, they work perfect.
Sorry for this mess :P
It would be great if v1.1.0 with last stable release of the lib worked fine. Thanks again.
Confirming that exporting from Illustrator does not work. Lost half a day figuring that out. Using VectorMagic for converting a PNG version of the Illustrator file and resampling that to a new SVG does the job...