Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (linker)
Viewing all articles
Browse latest Browse all 3

Having Trouble Creating a Native Module

$
0
0

Hi

I'm trying to wrap a third party library into a Titanium module for iOS. I have the .h and .a files, but no matter what I do, I'm getting a linker error

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: for architecture arm64 object: /Users/james.sugrue/Documents/CarmaOne/yz/Yozio/libYozio.a(YOZIO_OpenUDID.o) malformed object (unknown load command 1)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1
I tried modifying the xcodeproject for the module and adding the folder containing the library and header file. Even though they appear, and seem to be included in the build, I still get this error. It would seem I'm missing on last simple step.

If someone could tell me the changes that I need to make when adding a third party library that would be really useful.

Would really appreciate any help Thanks! James


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>