Extending Titanium Mobile with Module SDK possible?
I read this document:
http://developer.appcelerator.com/doc/mobile/iphone/module_sdk
I cannot get it to work with 1.3.2 and Xcode 3.2.3. After creating my project from xcode using Appcelerator/Titanium Mobile Module template, I get the example code, but it complains about the "Base SDK Missing". So I edit the project settings and update the Base SDK from 3.1.3 to 3.2, then I edit the manifest, type '% python build.py' :
http://gist.github.com/491513
I unzip this to /Library/Application Support/Titanium, update my modules in tiapp.xml, as instructed, but it the simulator never starts up. Weird.
http://gist.github.com/491515
So it is loading 'myphonenumber/0.1' but doesn't go any further.
Is there a log somewhere I can read to get more info when things break? Ah ha, found build.log:
Undefined symbols:
"_ADBannerContentSizeIdentifier320x50", referenced from:
_ADBannerContentSizeIdentifier320x50$non_lazy_ptr in TiUIiOSAdViewProxy.o
(maybe you meant: _ADBannerContentSizeIdentifier320x50$non_lazy_ptr)
"_OBJCCLASS$_ADBannerView", referenced from:
objc-class-ref-to-ADBannerView in TiUIiOSAdView.o
"_ADBannerContentSizeIdentifier480x32", referenced from:
_ADBannerContentSizeIdentifier480x32$non_lazy_ptr in TiUIiOSAdViewProxy.o
(maybe you meant: _ADBannerContentSizeIdentifier480x32$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Not sure how to fix this?
3 Answers
-
I am running into the exact same bug, using the 1.4.0 Titanium SDK release, and iOS SDK 4, when trying a base case of building the Clipboard SDK extension module in with my newly created app. As a sanity check, both are 100% unmodified from the defaults (e.g. my app is a stock new project created in Titanium Developer, and with the clipboard module I just changed it to build up against 1.4.0 instead of 1.3.0).
The clipboard SDK extension module I am talking about is at: http://github.com/xavierlacot/titanium_mobile_clipboard_module
(I'll be gutting it and replacing it with EventKit logic once I can get past this bug)
Any help for us would be greatly appreciated! Will have to write a native app if I can't figure this out, as I need eventkit functionality….:/
-
See this ticket
# # PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE # PICKED UP DURING THE APP BUILD FOR YOUR MODULE #
Delete this code from module.xcconfig. Comments should use double slash (//).
-
I created my own module under 1.3.0 templates and I could compile, link, and run with appcelerator.
But i can't get the same module to run against 1.4.0.
Do I need to install new template from 1.4.0? There is a new install.py (in a different directory path then 1.3.0). I'm not sure what that is doing yet.