I am a JS developer who has built some Ti Alloy projects before and am currently trying to create an iOS module with a provided framework bundle and 2 small header files.
- I started with the module documentation
- I created a module which loads the framework bundle
- I copied the two provided header files into the module header directories
- I can package and load this module in an Alloy project and confirm it has loaded the framework bundle
- I can access my own module properties:
var test = require('net.tb.mod1'); Ti.API.info("module is => "+test); $.label.text = test.example();
However I cannot access any of the copied module headers, which look like:#import <Foundation/Foundation.h> @class ItemStatus; @interface ItemUtility : NSObject -(NSNumber*)TB_GetItemStatus; -(NSString*)TB_GetItemDimension; -(ItemStatus*)TB_GetItemStatus; @end
I feel like I am missing something crucial (but am still close to achieving this!), do I need to create a proxy? Will I need to create .m files for these headers? Any help is greatly appreciated, I am currently reviewing the github module repo.
Many thanks,