[TIMOB-17204] Titanium 3.3.0.Beta generates invalid custom shell scripts
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | None |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2014-06-24T23:13:13.000+0000 |
| Affected Version/s | Release 3.3.0 |
| Fix Version/s | n/a |
| Components | CLI |
| Labels | build, sdk |
| Reporter | Fokke Zandbergen |
| Assignee | Chris Barber |
| Created | 2014-06-04T21:24:01.000+0000 |
| Updated | 2017-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
Platform team will set the priority on this.
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.
Closing ticket as duplicate.