Friday 25 January 2013

Appcelerator builds for Pieceable

Pieceable is  a great site that allows you to upload an iOS simulator app to the web and then interact with it over a flash player.

I build a number of projects with Titanium Appcelerator which saves some time and space in simulator builds by symlinking. This app bundle won't work in Pieceable. There are some old patches to the Titanium build system, but they are for SDK version 1.8 and 2.0. We are now on 3.0.

So after a build the symlinks need to be converted to the orignal file. This cmd line does that trick.

First cd into ~/Library/Application Support/iPhone Simulator/6.0/Applications/<<APP UUID>>

then

find . -type l -exec bash -c 'FULLPATH=$(readlink "{}"); ORIGPATH="{}"; echo "Copying $FULLPATH onto $ORIGPATH"; rm "$ORIGPATH"; cp -f "$FULLPATH" "$ORIGPATH"' \;

1 comment:

Unknown said...

I might even nick one or two of your topics from time to time if that OK with you? And we've added you to our BlogRoll as well.
facebook application.