Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19344] Cannot build a Titanium app if the project is named "iphone"

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-08-12T20:30:10.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.0
ComponentsiOS
Labelsregression
ReporterWilson Luu
AssigneeChris Barber
Created2015-08-12T18:54:11.000+0000
Updated2015-08-12T22:05:23.000+0000

Description

*Details:* Cannot build a Titanium app if the project is named "iphone". *Note:* This is a *regression* from SDK 4.1.0.GA and 4.1.1.v20150807121809 *Steps to reproduce:*

Create a Titanium project with appc new

Make sure to specify the project name as iphone

After project is created, run appc run -p ios -T simulator -l trace

*Actual:* The following error will appear:
Command
  /usr/local/bin/node /Users/wluu/.appcelerator/install/4.2.0-42/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium build -p ios -T simulator -l trace --plugin-paths /Users/wluu/.appcelerator/install/4.2.0-42/package/node_modules --config-file /var/folders/g9/bw6h6yr11t79h_mw4q1r87pm0000gp/T/build-1439405214762.json --no-banner

[ERROR] Found blacklisted directory in the Resources directory
[ERROR] The directory "iphone" is a reserved directory.
[ERROR] You must rename this directory to something else.

TRACE  | titanium exited with exit code 1
ERROR  | Error: ti run exited with error code 1
    at ChildProcess.<anonymous> (/Users/wluu/.appcelerator/install/4.2.0-42/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
    at ChildProcess.emit (events.js:117:20)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)
*Expected:* Should be able to build a Titanium project if it's named iphone.

Comments

  1. Chris Barber 2015-08-12

    PR: https://github.com/appcelerator/titanium_mobile/pull/7021/files
  2. Wilson Luu 2015-08-12

    Closing ticket as fixed. Verified that you can build and launch a Titanium app if the project is named "iphone." Tested on: Appc CLI NPM: 4.1.0-2 Appc CLI Core: 4.2.0-44 SDK: 4.2.0.v20150812133622 Node: v0.10.38 OS: Yosemite (10.10.4) Xcode: 6.4

JSON Source