Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2150] iOS: Project will not build after updating to Studio 3.1.2

GitHub Issuen/a
Resolution Date2013-07-18T17:35:18.000+0000
Affected Version/sn/a
Fix Version/sn/a
ReporterDavid Nevels
AssigneeDaniel Sefton


Just updated to Titanium Studio 3.1.2 and a current project that has been building just fine suddenly will not build. I'm attempting to build for iOS and run on the iPhone simulator. Project builds fine on Android. *Log*
[ERROR] :  TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at exports.join (path.js:358:36)
    at exports.detect (/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/node_modules/node-appc/lib/android.js:40:30)
    at /Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/android/cli/commands/_build.js:28:11
    at /Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/node_modules/titanium-sdk/lib/titanium.js:105:5
    at /Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/node_modules/async/lib/async.js:454:21
    at /Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/node_modules/async/lib/async.js:185:13
    at /Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/node_modules/async/lib/async.js:86:13
    at Array.forEach (native)
[ERROR] Unable to find command "build"




  1. Daniel Sefton 2013-07-17

    Please can you attach your Studio log file and diagnostic? (Both found at Help -> Studio) But I imagine that if you run this in Terminal:
    node -v
    That you will have 0.10.x installed. If that's the case, try downgrading to 0.8.x (most compatible version is 0.8.22)
  2. Carter Lathrop 2013-07-17

    Hello David, Can you do me a favor and try cleaning and rebuilding the project and see if that also makes any difference. Besides that my next best guess to the issue would be what Daniel suggested. Thanks, Carter
  3. David Nevels 2013-07-17

    Log and Diagnostic requested by Daniel Selfton
  4. David Nevels 2013-07-17

    I cleaned and attempted to rebuild again to no avail. Next I downgraded to Node v0.8.22. Restarted the machine and checked the version of node, confirmed it was v08.22. Cleaned the project and attempted to rebuild. Here is the error I got: [ERROR] : ** BUILD FAILED ** [ERROR] : The following build commands failed: [ERROR] : PhaseScriptExecution Pre-Compile "build/Find It! Harrisonville.build/Debug-iphonesimulator/Find It! Harrisonville.build/Script-241EAF36118E30260081A5BE.sh" [ERROR] : (1 failure) Log and Diagnostic attached.
  5. David Nevels 2013-07-18

    This morning I updated to the latest build (Titanium Studio, build: in hopes that the problem was fixed in this build. I cleaned the project and attempted a build. I got the same "PhaseScriptExecution Pre-Compile" error that I got in my 17/Jul/13 4:49 PM comment above. I decided to focus on my code. I commented out the file that I had been working on, cleaned the project and performed a build. The build was successful. I found a couple of instances where curly braces were misplaced, I fixed them and now my project builds. Thank you for your prompt attention, please close out this ticket.
  6. Daniel Sefton 2013-07-18

    Yeah, TC-2233 was a code issue too. Thanks, closing.

JSON Source