Hello everybody,
One of our customer wants to use our push notifications service in their Titanium iOS application.
Currently, we've develop a native singleton ios framework (.framework file) to include in a native obj-c application (from xCode).
Today, we need to make a connector between our framework, and Titanium. So we've start reading the documention about Ti Module, and after few clicks on Ti Studio, we were able to print on screen information from a module method.
Since we've open the module in xCode, we first import our framework :
#import <Pushlib/Pushlib.h>And for example, we wanted to call one of our framework method. So we've done this :
-(id)addTag:(NSString *)tag_name { [[Pushlib getInstance] addTag:tag_name]; }References are good, our Ti Module on XCode recognize framework method. We decided to package the module, and everything is fine.
So let's go back to our Ti Application, and let's call our framework method :
var pushlib = require('com.pushlib.module'); pushlib.addTag('test');But we always got the following error when building the app :
[ERROR] : ** BUILD FAILED ** [ERROR] : The following build commands failed: [ERROR] : Ld build/Debug-iphonesimulator/pushlibApplication.app/pushlibApplication normal i386 [ERROR] : (1 failure)
Does anybody could help us with this ?
iPhoneSimulator (iPhone 6 iOS 8.1) xCode 6.1.1 Mac OS Yosemite Ti Studio 3.4.1
Regards,