Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19864] iOS: Incremental build crashes after removing strings.xml

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionCannot Reproduce
Resolution Date2019-11-14T18:11:22.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sn/a
ComponentsiOS
Labelscb-tooling
ReporterFokke Zandbergen
AssigneeChris Barber
Created2015-11-04T09:07:22.000+0000
Updated2019-11-14T18:11:22.000+0000

Description

An incremental build will crash if you remove a strings.xml file after the previous build. 1. Create a project with an i18n/en/strings.xml file 2. Build 3. Remove the file 4. Build and see it crash. The log:
[TRACE] No change, skipping /Users/fokkezb/dev/samples/appc-sample-3dtouch/build/iphone/build/Products/Debug-iphoneos/3D Touch.app/Info.plist
[TRACE] No change, skipping /Users/fokkezb/dev/samples/appc-sample-3dtouch/build/iphone/build/Products/Debug-iphoneos/3D Touch.app/de.lproj/InfoPlist.strings

/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:5230
		if (!prev || prev.hash !== curr.hash) {
                                 ^
TypeError: Cannot read property 'hash' of undefined
    at add (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:5230:34)
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:5246:7
    at Array.forEach (native)
    at walk (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:5239:23)
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:5244:7
    at Array.forEach (native)
    at walk (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:5239:23)
    at iOSBuilder.optimizeFiles (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:5253:3)
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:689:13
    at iterate (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:265:13)
---------------------------------------------
    at Object.run (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/node-appc/lib/subprocess.js:59:8)
    at iOSBuilder.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:5204:19)
    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
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:697:13
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:52:16
    at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:263:24)
    at async.forEachOfSeries.async.eachOfSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:284:9)
    at _parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:688:9)
---------------------------------------------
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:275:35
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:44:16
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:694:17
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:173:37
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/node-appc/lib/async.js:64:51
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:689:13
    at iterate (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:265:13)
    at process._tickCallback (node.js:355:11)
---------------------------------------------
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:275:35
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:44:16
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:694:17
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:173:37
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/node-appc/lib/async.js:64:51
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:689:13
    at iterate (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:265:13)
    at process._tickCallback (node.js:355:11)
---------------------------------------------
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:275:35
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:44:16
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:694:17
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:173:37
    at iOSBuilder.encryptJSFiles (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:4855:10)
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:689:13
    at iterate (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:265:13)
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:277:29
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:44:16
---------------------------------------------
    at iOSBuilder.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:4782:7)
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:187:20
    at iterate (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:265:13)
    at Object.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:277:29)
    at Object.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:44: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
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:697:13
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:52:16
---------------------------------------------
    at iOSBuilder.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:4782:7)
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:187:20
    at iterate (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:265:13)
    at Object.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:277:29)
    at Object.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:44: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
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:697:13
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:52:16
---------------------------------------------
    at iOSBuilder.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:4782:7)
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:187:20
    at iterate (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:265:13)
    at Object.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:277:29)
    at Object.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:44: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
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:697:13
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:52:16
---------------------------------------------
    at iOSBuilder.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/iphone/cli/commands/_build.js:4782:7)
    at /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:187:20
    at iterate (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:265:13)
    at Object.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:277:29)
    at Object.<anonymous> (/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.0/node_modules/async/lib/async.js:44: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
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:697:13
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:52:16

Comments

  1. Alan Hutton 2019-11-14

    Cannot reproduce. Removing the strings.xml file did not crash. Axway Appcelerator Studio, build: 5.1.4.201909061933  macOS : 10.15 Node.js Version : 8.9.1 npm Version : 5.5.1 Appcelerator CLI : 7.1.1 Titanium CLI CLI Version : 5.2.1 node-appc Version : 0.2.49 Titanium SDKs : 8.2.1.GA

JSON Source