Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17204] Titanium 3.3.0.Beta generates invalid custom shell scripts

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2014-06-24T23:13:13.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsCLI
Labelsbuild, sdk
ReporterFokke Zandbergen
AssigneeChris Barber
Created2014-06-04T21:24:01.000+0000
Updated2017-03-21T19:24:26.000+0000

Description

When you compile an iOS project without (or after) running it:
$ ti build -p ios -b
And then open the Xcode project to run it you'll get:
Shell Script Invocation Error
Command /bin/sh failed with exit code 1
And when you open the script you see why:
#!/bin/sh
if [ "x$TITANIUM_CLI_XCODEBUILD" == "x" ]; then
    /usr/local/bin/node "/usr/local/bin/ti" build --platform iphone --sdk 3.3.0 --no-prompt --no-progress-bars --no-banner --no-colors --build-only --xcode
    exit $?
else
    echo "skipping pre-compile phase"
fi
As you can see it has \-\-sdk 3.3.0 instead of \-\-sdk 3.3.0.Beta. When you use the 3.2.3.GA CLI (and SDK) it works fine. The errors seems to be here: https://github.com/appcelerator/titanium_mobile/blob/c6ebe0eda2087b2bf184b46107eab1292adfcafd/iphone/cli/commands/_build.js#L2020

Comments

  1. Mauro Parra-Miranda 2014-06-24

    Platform team will set the priority on this.
  2. Chris Barber 2014-06-24

    This was fixed already as a part of TIMOB-17034. Ironically, this was merged in what appears to be moments after the beta release was packaged. The fix is in 3.3.0.RC.
  3. Lee Morris 2017-03-21

    Closing ticket as duplicate.

JSON Source