Is there a way to not build un-necessary libraries with Titanium?
Hi,
I opened one of my iPhone projects in Xcode, and I see that there are a lot of library files that mostly my app would not use.
The basic app that I built has around 10 screens and all the logic built in with the DB and does a few Http connects. The rough size of the app to my surprise was 4.3 MB.
I Xcode I saw that there were around 220 Files that were built, is there a way to take out or build without the full library support?
It will greatly improve app performance and no more memory issues of some things not loading properly and some things loading slow.
Let me know guys. FYI, I have not plaed with taking out the libraries and building the app in Xcode, it might help or it might completely render my app useless as I am not sure whats being used and whats not.
THanks,
Arun
5 Answers
-
This is a great point. And to answer your question, I don't think there's a way.
I wish you could also exclude all the Android stuff that gets rolled in to your app if you're only targeting the iPhone.
I hope Appcelerator is wildly successful, but if they fail, it will likely be because they're trying to do too much (iPhone + Android + Blackberry). There's a risk that this undertaking is too involved and will get too complex. I hope not, but as a developer only focused on the iPhone and iPad, I can't help but daydream how much faster Titanium SDK releases could be if the developers weren't spending so much time fixing Android bugs.
-
When your actual application binary gets created, only the dependencies you need should be included in your application (determined by checking which Titanium APIs your code uses). Also, there are no cross platform libraries included in your application (for Android or anything else), so there isn't anything included in your binary that is unused by the framework. The binary size is a bit larger than it might otherwise be for a native application since we are shipping a JavaScript interpreter. If you're experiencing performance issues, a test case to reproduce would be very helpful.
-
I am puzzled at this state now. I dont have any dependencies with any libraries from google or yahoo or video or audio processing. But every time I compile the xcode code generated, there are 220 files that are compiled. This is the case of 1.3.0 with 3.2 code and if its 1.4.0 there are 290 files that are being compiled.
Any pointers to stop that will be greatly appreciated. Also, I have another question on the 1.3.0 to 1.4.0 transition, any pointers on that would also be helpful.
Thanks,
Arun -
I am puzzled at this state now. I dont have any dependencies with any libraries from google or yahoo or video or audio processing. But every time I compile the xcode code generated, there are 220 files that are compiled. This is the case of 1.3.0 with 3.2 code and if its 1.4.0 there are 290 files that are being compiled.
Any pointers to stop that will be greatly appreciated. Also, I have another question on the 1.3.0 to 1.4.0 transition, any pointers on that would also be helpful.
Thanks,
Arun -
Any way to remove unused libraries etc that get generated by titanium at build stage?
If you open a Titanium project in xcode basically the entire farm is in there - making for a massively bloated app.