Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26371] iOS: Build throws ENOENT when building to iOS device

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2018-09-18T13:42:06.000+0000
Affected Version/sRelease 8.0.0
Fix Version/sRelease 8.0.0
Componentsn/a
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2018-09-07T14:36:28.000+0000
Updated2018-12-03T13:45:12.000+0000

Description

Description

When building to an iOS device the build fails with the below, this looks to be because of the change to run things in parallel rather than series in https://github.com/appcelerator/titanium_mobile/pull/10236, the write app props just needs to ensure the directory exists before it tries to write to it
[INFO]  Writing app properties
Error: ENOENT: no such file or directory, open '/Users/eharris/Documents/Appcelerator_Studio_Workspace/where/build/iphone/assets/_app_props__json'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.writeFileSync (fs.js:1299:33)
    at iOSBuilder.writeAppProps (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/iphone/cli/commands/_build.js:5823:8)
    at tasks.(anonymous function) (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/node-appc/lib/async.js:37:7)
    at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:3880:24
    at eachOfArrayLike (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:1069:9)
    at eachOf (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:1117:5)
    at _parallel (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:3879:5)
    at Object.parallelLimit [as parallel] (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:3962:5)
    at parallel (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/node-appc/lib/async.js:56:8)
---------------------------------------------
    at iOSBuilder.<anonymous> (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/iphone/cli/commands/_build.js:4668:10)
    at Object.whilst (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:5227:5)
    at iOSBuilder.cleanXcodeDerivedData (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/iphone/cli/commands/_build.js:4644:8)
    at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:3880:24
    at replenish (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:1011:17)
    at iterateeCallback (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:995:17)
    at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:969:16
    at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/8.0.0.v20180821060223/node_modules/async/dist/async.js:3885:13
    at /Users/eharris/Documents/git/titanium/node_modules/async/dist/async.js:473:16

Steps to reproduce

1. Build an app using appc run -p ios -T device

Actual

Above error is thrown

Expected

Error should not be thrown

Comments

  1. Ewan Harris 2018-09-07

    https://github.com/appcelerator/titanium_mobile/pull/10313
  2. Samir Mohammed 2018-12-03

JSON Source