I want to develop a universal app. I thought my iPad app would work for both. It doesn't. I works for both devices in the emulator but not when I build it. As it stands I have to maintain two sources mobile and iPad.
How can I achieve this?
2 Answers
The easiest way is using the new 1.3.0 Titanium Developer and 1.6.0 SDK.
But I still do not recommend this version of the SDK, it still has several errors. You can test and see how it turns your application.
If you want try, download last build of SDK in http://builds.appcelerator.com.s3.amazonaws.com/index.html and save in the 1.6.0 folder in /Library/Application Support/Titanium/mobilesdk/osx.
Download the 1.3.0 source in https://github.com/appcelerator/titanium_developer.
Go to your Application folder and duplicate the Titanium Developer App. Rename this new to "Titanium Developer 1.3.0". Open the new App (folder) with "Show Package Content", open "Contents" folder, delete "Resources" folder and "tiapp.xml", save here the "Resources" folder and "tiapp.xml" from the source downloaded.
Now run "Titanium Developer 1.3.0" and create a new project in "Universal iOS" mode. Copy the resources of your actual project to this new project and test it.
If you need, your app can be a "smart", detecting if is iPhone ou iPad, using:
var device = Titanium.Platform.model;
To get 1.3.0 goto https://github.com/appcelerator/titanium_developer, click in "Download" button. In modal window tha will be showed, click in "Download .zip" in "Download Source" category.
Your Answer
Think you can help? Login to answer this question!