Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Still not able to install on iphone greater than Ti SDK 1.3.0 & 3.2

I have tried everything now but still get install error anything greater that 1.3.0 and 3.2?

SImulator works fine with 1.4.0 and 4.0.

I have tried deleting the build folder, removed the app from iTunes and deleted it from the iPhone. to get it back on the iphone it will only do it set to 1.3.0 and 3.2. It will not istall on 1.3.2 or 1.3.3 either.

I have tried building on simulator via Xcode and thats fine. When trying to build on device i get build fail.

1 error: Command /bin/sh failed with exit code 2

I really want to get this sorted now as its holding me back :(


xcode 3.2.3 iTunes 9.2.1.(5) Titanium 1.2.1 SDK 1.4.0 4.0

Many thanks in advance.


— asked August 29th 2010 by Mark Pierce
  • error
  • install
  • iphone

4 Answers


    This is the part of the build log. I have change the app name to AppName


    The following build commands failed:
    PhaseScriptExecution Pre-Compile /Users/markpierce/Desktop/AppNameFolder/AppName/build/iphone/build/AppName.build/Release-iphoneos/AppName.build/Script-241EAF36118E30260081A5BE.sh
    (1 failure)


    Exception detected in script:
    Traceback (most recent call last):
    File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.0/iphone/builder.py", line 962, in main
    execute_xcode("iphoneos%s" % iphone_version,args,False)
    File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.0/iphone/builder.py", line 758, in execute_xcode
    output = run.run(args,False,False,o)
    File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.0/iphone/run.py", line 31, in run
    SystemExit: 1

    Does this mean anything to anyone :)


    — answered August 29th 2010 by Mark Pierce

    I created a new project and now the Install error happens instantly. It looks like its trying to find an old provision. But I have been through all the motions as described by everyone. where is it getting the old one from when its showing the correct one in the run on device window?

    Build output:

    Exception detected in script:
    Traceback (most recent call last):
    File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.0/iphone/builder.py", line 524, in main
    provisioning_profile = read_provisioning_profile(pp,o)
    File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.0/iphone/builder.py", line 171, in read_provisioning_profile
    f = open(f,'rb').read()
    IOError: [Errno 2] No such file or directory: u'/Users/markpierce/Library/MobileDevice/Provisioning Profiles/37DC05CC-28BA-4AC8-B450-CC8FAABDFB41.mobileprovision'

    — answered August 30th 2010 by Mark Pierce

    Got it to install now. 2 Issues

    first issue. A corrupt png file was produccing an error in the build log. deleted the image and it worked

    Second issue if the .mobileprovision is the mobile device folder it still shows an install error. SO i linked to a local version of the file and it istalls fine. that was just luck finding that!

    Now the local sqlite database randomly loads or not now ! ARRRH! works fine in 1.3.0 :(

    Has there been any major changes to database since 1.30. and 1.4.0?


    — answered August 31st 2010 by Mark Pierce
    1 Comment
    • how did you know with png was corrupt?

      — commented January 19th 2011 by Joshua Ceaser
  • Yes this still fails. Does the Kitchen Sink need a plumber?

    /Users/MY_USERNAME/dev/titanium-kitchensink/KitchenSink/KitchenSink/KitchenSink.build/Debug-iphonesimulator/KitchenSink.build/Script-241EAF36118E30260081A5BE.sh: line 2: /Users/kevin/Library/Application Support/Titanium/mobilesdk/osx/1.4.0/iphone/builder.py: No such file or directory

    Who is /Users/kevin and why is he hard coded in some build script from git-hub? Can't this directory/file just be relative path or rather perhaps included in some directory called build-helpers/ or misc/?

    — answered October 10th 2010 by Jonathan Reyes
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.