[AC-451] Creation of new APPC app is not working on XCODE 7.0 and APPC SDK 5.0.2GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2015-11-07T17:43:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator CLI |
Labels | defect, ios |
Reporter | Shivani Thakur |
Assignee | Shak Hossain |
Created | 2015-10-09T06:20:59.000+0000 |
Updated | 2015-11-07T17:43:55.000+0000 |
Description
I have recently upgraded to Xcode7 for the ios 9 support and after that I was trying to run my old app which I have created in Appcelerator SDK 4.1.2
Post discussion with one of the APPC team member I got to know that we should use SDK 5.0 for XCODE 7. But that still did not work.
Then I thought to try creating a TItanium app using command line
ti create -p ios -n sampleTitanium
After running this command I got following options and I selected option# 1
What type of project would you like to create?
1) Titanium App
2) Titanium Module
3) Apple Watch™ App
Select a type by number or name [app]: 1
After hitting ENTER I get this error and which is weird
[INFO] Creating app project
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:195
throw e;
^
TypeError: Cannot read property 'toLowerCase' of undefined
at exports.scrubPlatforms (/Users/kiproshmbpro/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/node_modules/titanium-sdk/lib/titanium.js:671:11)
at AppCreator.run (/Users/kiproshmbpro/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/cli/lib/creators/app.js:94:18)
at CreateCommand.<anonymous> (/Users/kiproshmbpro/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/cli/commands/create.js:166:12)
at /Users/kiproshmbpro/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/node_modules/async/lib/async.js:689:13
at iterate (/Users/kiproshmbpro/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/node_modules/async/lib/async.js:265:13)
at process._tickCallback (node.js:355:11)
---------------------------------------------
at /Users/kiproshmbpro/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/node_modules/async/lib/async.js:275:35
at /Users/kiproshmbpro/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/node_modules/async/lib/async.js:44:16
at /Users/kiproshmbpro/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/node_modules/async/lib/async.js:694:17
at /Users/kiproshmbpro/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/node_modules/async/lib/async.js:173:37
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:119:25
at AppCreator.<anonymous> (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:24:16)
at CLI._fireHookCallback (/usr/local/lib/node_modules/titanium/lib/hook.js:269:12)
at /usr/local/lib/node_modules/titanium/lib/hook.js:248:10
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2015-10-09 at 11.46.47.png | 2015-10-09T06:20:42.000+0000 | 218133 |
Hi [~shivanibhanwal], Make sure you have latest release version of CLI with "sudo npm install -g titanium” then “appc use latest" Once that step is done, check your CLI configuration with either "ti sdk" or "appc ti sdk" from the terminal. You are looking for what SDK is [selected] Make sure you have something selected. Preferably the same SDK you have set to build your project with. You can set the SDK with "appc ti sdk select" and choose from the list. Let me know if this works for you.