GeraudBourdin / Ti.SvgView

Create a view from an svg file (expose the androidsvg-1.2.1 lib and the SVGKit 2.X for IOS lib).
MIT License
50 stars 24 forks source link

Can't build iOS App in SDK 6.0.1.GA #14

Open danimarin opened 7 years ago

danimarin commented 7 years ago

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] : "_OBJCCLASS$_SVGKLayeredImageView", referenced from: [TRACE] : objc-class-ref in libcom.geraudbourdin.svgview.a(ComGeraudbourdinSvgviewView.o) [TRACE] : "_OBJCCLASS$_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!

danimarin commented 7 years ago

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.

focussing commented 7 years ago

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...