Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18559] iOS: TypeError: Arguments to path.join must be strings

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-02-28T15:36:21.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sRelease 4.0.0
ComponentsiOS
Labelspackaging, qe-4.0.0, typeerror
ReporterEric Wieber
AssigneeJon Alter
Created2015-02-12T19:09:40.000+0000
Updated2015-03-02T17:42:18.000+0000

Description

This is a regression. When packaging for iOS, I see the below error. Xcode is still opened and the archive/package is still created, however.
[INFO] :   Archiving debug symbols to /Users/ewieber/Library/Developer/Xcode/Archives/2015-02-12/universalIconSplash_10-38-52.xcarchive/dSYMs/universalIconSplash.app.dSYM
[INFO] :   Launching Xcode: /Applications/Xcode.app
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185
        throw e;
              ^
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 /Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212085635/iphone/cli/hooks/package.js:94:34
    at exithandler (child_process.js:635:7)
    at EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Socket.<anonymous> (child_process.js:956:11)
---------------------------------------------
    at exports.execFile (child_process.js:691:9)
    at exports.exec (child_process.js:578:18)
    at /Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212085635/iphone/cli/hooks/package.js:92:7
    at /Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212085635/node_modules/async/lib/async.js:232:13
    at /Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212085635/node_modules/async/lib/async.js:119:25
    at /Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212085635/node_modules/async/lib/async.js:24:16
    at /Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212085635/node_modules/async/lib/async.js:229:17
    at /Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212085635/node_modules/async/lib/async.js:516:34
*Steps To reproduce issue*: 1. Create a new project with SDK 4.0.0.v20150212104820 2. Package the project for iOS (either adhoc or for the store) 3. Notice the above error in the console *Expected results*: No error is shown *Notes*: 1. This is a regression as I do not see the error with 3.5.0.GA 2. I get this error with Xcode 6.1.1 as well as 6.2b5

Comments

  1. Jon Alter 2015-02-25

    PR: https://github.com/appcelerator/titanium_mobile/pull/6666
  2. Eric Wieber 2015-02-26

    Verified fixed using: Titanium SDK 4.0.0.v20150225153234 Studio 3.4.2.201502181619 CLI 3.4.2-alpha Xcode 6.2b5 Error is no longer encountered when packaging for adhoc or for the store.

JSON Source