I am trying to write an iOS Module that allows me to expose some functionality from the CoreImage framework. I have created a proper iOS Test Module and I am able to call functions that I create from my Titanium App.
However, when i try to import the CoreImage Framework into my module and simply create a context variable like this:
CIContext *context = [CIContext contextWithOptions:nil];
I then call titanium run from the command line
The compilation is failing on the following command:
Ld build/Debug-iphonesimulator/MultiplyFilter.app/MultiplyFilter normal i386
What concerns me is that in the error log, I notice this command be called right after:
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
(but I know that CoreImage only works on iOS 5.0+)
Here is the actual error message I am receiving:
Undefined symbols for architecture i386: "OBJC_CLASS$_CIContext", referenced from: objc-class-ref in libcom.golfballs.multiplyfilter.a(ComGolfballsMultiplyfilterModule.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any clues as to what the problem is?
I am not sure what other information would be helpful for someone to troubleshoot this. If anyone needs any more information, just ask and I will give it to you!
Thanks so much in advance!
-Nick