Appcelerator/Titanium plugin

Hi all, we’ve posted a prelim Appcelerator/Titanium plugin here: 

 

https://github.com/CoronaCards/plugin-appcelerator-ios

 

More info in the README. It’s prelim, so we’re assuming you’re already familiar with using Appcelerator and installing modules manually.

Hi

If I run the build.py, I get:

/Titanium/plugin-appcelerator-ios-master/Classes/ComCoronalabsCoronacardsView.mm:45:3: error: unknown type name 'TiRootViewController'; did you mean 'CoronaViewController'? TiRootViewController \*parentController = [TiApp app].controller; ^ ~~~~~~~~~~~~~~~~~~~ CoronaViewController In file included from /Titanium/plugin-appcelerator-ios-master/Classes/ComCoronalabsCoronacardsView.mm:6: In file included from /Users/Shared/CoronaLabs/ios/CoronaKit.framework/Headers/CoronaKit.h:11: /Users/Shared/CoronaLabs/ios/CoronaKit.framework/Headers/CoronaViewController.h:10:12: note: 'CoronaViewController' declared here @interface CoronaViewController : GLKViewController ^ /Titanium/plugin-appcelerator-ios-master/Classes/ComCoronalabsCoronacardsView.mm:45:45: error: use of undeclared identifier 'TiApp' TiRootViewController \*parentController = [TiApp app].controller; ^ 2 errors generated. \*\* BUILD FAILED \*\*

Any ideas what I’m doing wrong?

We’ve encountered various header issues in Appcelerator’s frameworks. In particular, there were header dependencies that were just plain wrong, and we had to actually add forward declarations (see for example comment in ComCoronalabsCoronacardsView.h). 

So given that, my guess is that whatever version you are using, you need to add some additional #imports of Appcelerator headers corresponding to the 2 classes (TiRootViewController and TiApp)

Hi

If I run the build.py, I get:

/Titanium/plugin-appcelerator-ios-master/Classes/ComCoronalabsCoronacardsView.mm:45:3: error: unknown type name 'TiRootViewController'; did you mean 'CoronaViewController'? TiRootViewController \*parentController = [TiApp app].controller; ^ ~~~~~~~~~~~~~~~~~~~ CoronaViewController In file included from /Titanium/plugin-appcelerator-ios-master/Classes/ComCoronalabsCoronacardsView.mm:6: In file included from /Users/Shared/CoronaLabs/ios/CoronaKit.framework/Headers/CoronaKit.h:11: /Users/Shared/CoronaLabs/ios/CoronaKit.framework/Headers/CoronaViewController.h:10:12: note: 'CoronaViewController' declared here @interface CoronaViewController : GLKViewController ^ /Titanium/plugin-appcelerator-ios-master/Classes/ComCoronalabsCoronacardsView.mm:45:45: error: use of undeclared identifier 'TiApp' TiRootViewController \*parentController = [TiApp app].controller; ^ 2 errors generated. \*\* BUILD FAILED \*\*

Any ideas what I’m doing wrong?

We’ve encountered various header issues in Appcelerator’s frameworks. In particular, there were header dependencies that were just plain wrong, and we had to actually add forward declarations (see for example comment in ComCoronalabsCoronacardsView.h). 

So given that, my guess is that whatever version you are using, you need to add some additional #imports of Appcelerator headers corresponding to the 2 classes (TiRootViewController and TiApp)