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
https://github.com/appcelerator/titanium_mobile/pull/10313