Appcelerator Developer Blog

Community Tips and Tricks

For folks that haven’t found it yet, there’s a question in Community Q&A that is gathering a number of suggestions for tips and tricks for development in Titanium Mobile. Here’s the direct link to the thread, but I thought I would post a couple of my favorites here on the Dev Blog.

Some nice general tips

  • Remember that the device is significantly less speedy than the emulator, so test on a device early and often
  • It’s pretty easy to target both iPhone and Android for most applications – if you plan to support both, you’re better off testing on and developing for both simultaneously
  • If you don’t have a lot of structured data, use Properties rather than the SQL database for persistence

Some nice tutorials


Do you have a tip or trick that you’ve found useful that you’d like to contribute? Add on to thread if you do, and your fellow developers will thank you for it!


Introducing New Getting Started Guides

I’m Dave Richey, Director of Training for Appcelerator. We’re going to be expanding our documentation and training efforts for Titanium. My first project has been a series of Getting Started guides, for Mac, Windows and Linux, to help get Titanium Mobile up and running. These guides cover the steps needed to install Titanium and run two of the sample programs. We want to hear from developers — please let me know what additional documentation and training resources will be helpful.

Here are the new guides for your platform of choice:

Windows Guide

Mac Guide

Linux Guide

Thank you, and let us know what you think!


Titanium For New Developers (Webinar Slides)

Hi everybody, and thanks to those of you who checked out our Titanium For New Developers webinar this morning. Just wanted to quickly share the slides from this morning’s presentation, and invite you to join us tomorrow morning when we talk about the new features available in our 1.4 release. Here you go…


iOS package for distribution with 1.4+

There have been a few questions around how to package for distribution for iOS starting with Titanium SDK 1.4. Apple has changed the requirement on how you package and submit your application to iTunes connect. You can no longer use the web-based portal to upload your application.

I thought I’d explain the steps on how to package and distribute with some screenshot walk throughs.

In Titanium, you’ll do the normal package for distribution step, selecting your distribution profile.

NOTE: I have circled the “Select Distribution Location” since this is no longer required. In 1.4 SDK, we ignore this value. We didn’t want to rev Titanium Developer just to remove this field and to keep in backwards compatible. However, you will still need to enter a value for this field. In a future release of Developer, we’ll improve this.

After packaging, we’ll automatically start Xcode Organizer. Select the “Archived Applications” on the left menu and you should see your Application with a package date.

If you select the date, you will be able to enable the buttons at the bottom.

First step, you’ll want to validate your application. This will actually validate your application with Apple prior to submission and let them perform some pre-flight checks.

You’ll need to login to iTunes connect before you can validate. (The first time, you’re credentials will be empty. Subsequent times, if you check “Remember my…” if we remember).

After successful login, you’ll need to choose the appropriate application and profile. IMPORTANT STEP: If you don’t have an application setup in iTunes Connect (on the website), these subsequent steps SILENTLY FAIL.

NOTE: Organizer gives no visual clues to as what’s happening. The UI will lock-up while it runs network operations and when it fails, it simply does nothing and you have no idea. The biggest problem I’ve encountered is when someone doesn’t actually have an application setup (see above).

Choose your app and profile and you should see this alert result (after a few seconds to minute):

Since you’re building with Titanium, everyone should work. However, we’ve seen a few issues mainly related to the wrong size icon when validating. Apple has gotten more strict on icon sizes, etc.

To submit your application, click the “Submit Application to iTunes Connect..” button. BEWARE: when you do this, it will immediately upload your app and submit it for approval (assuming that your application details are setup).

At this point, your application should be submitted and in the queue for approval.


Introducing Titanium Mobile 1.4

OK, so this release took way longer than we all anticipated. We tried our best working days and nights and weekends to make it faster, but sometimes this stuff just takes longer than you’d like. In our case, we ran into a lot of major issues with iOS4 and between the various devices, versions and permutations. There’s quite a bit of more work we intend to do starting tomorrow for 1.5 but we feel like this release is much improved over the 1.3.2 drop we did 2 weeks ago.

Thanks for everyone’s patience and assistance during this time. We fixed well over 200 reported bugs as well as worked through many many more we found in our own testing. There’s a lot of great improvements in this release and a few new things. The full release notes can be found on the documentation page for the release.

Next up is 1.5. We’ll be publishing more information about the next release once we’ve had some time to rest, review with the engineering, support and QA teams and write it all up.

We also have a bunch of new high quality documentation that will roll out soon, thanks to two of our newest members of our official Training team we added awhile back. We hope to have more information about that very soon. Stay tuned!

UPDATE (7/27 10:30PM ):

There’s a logging issue that Apple introduced with 4.0.1 that affects logging while running your app in the simulator.

You can get the hot patch for this by downloading this file (name it logger.py). Drop this into your /Library/Application Support/Titanium/mobilesdk/osx/1.4.0/iphone directory. Make sure that you chmod a+x the logger.py file to make it executable. No need to restart Titanium Developer. Just re-launch your app in the simulator.

Mobile
Page 82 of 90« First...102030...8081828384...90...Last »