iPad/ iPhone in single build

You must Login before you can answer or comment on any questions.

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?

— asked 2 years ago by James Huckle
2 Comments
  • Sorry to polluate ur thread with my question ... but i am actually just trying to make a basic app and launch it under the iphone simulator, but i don't manage to do it. I am under Mac OS, got Xcode installed, got an Apple developper licence, and using Titanium 1.2.2 and mobile SDK 1.6.0

    Please need help. Thanks Gwenael

    — commented 2 years ago by GUENEUC Gwenael

  • Hi, gueneuc-gwenael, create a new Q&A for this problem and explain more what's happening, i will try help you.

    — commented 2 years ago by Adriano Paladini

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;

— answered 2 years ago by Adriano Paladini
answer permalink
2 Comments
  • hello, i can't find titanium mobile 1.3.0 in https://github.com/appcelerator/titanium_developer is this correct?

    — commented 2 years ago by stefano di luca

  • there's a 1.3 Ti Developer????? where is this? ;)

    — commented 2 years ago by Kosso .

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.

— answered 2 years ago by Adriano Paladini
answer permalink
2 Comments
  • I don't see anything that shows 1.3.0, only 1.2.2.

    — commented 2 years ago by Frank A

  • Download https://github.com/appcelerator/titanium_developer/zipball/master. Trust me... the name of zip has 1_2_2, but this will be release as 1.3.0, if you see inside tiapp.xml, you will read: <version>1.3.0</version>

    — commented 2 years ago by Adriano Paladini

Your Answer

Think you can help? Login to answer this question!