[TIMOB-15934] CLI: Xcode builds fail when building for iOS device
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-10T01:23:02.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2013 Sprint 25, 2013 Sprint 25 Core, Release 3.2.0, Release 3.3.0 |
Components | CLI |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2013-12-10T00:28:00.000+0000 |
Updated | 2013-12-10T10:07:50.000+0000 |
Description
When building an iOS app for device, then opening the generated Xcode project and trying to build, you get the following error:
TypeError: Cannot read property 'UIBackgroundModes' of undefined
at iOSBuilder.processTiSymbols (/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/iphone/cli/commands/_build.js:3035:34)
at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/node_modules/node-appc/node_modules/async/lib/async.js:548:21
at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/node_modules/node-appc/node_modules/async/lib/async.js:224:13
at iterate (/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/node_modules/node-appc/node_modules/async/lib/async.js:131:13)
at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/node_modules/node-appc/node_modules/async/lib/async.js:142:25
at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/node_modules/node-appc/node_modules/async/lib/async.js:226:17
at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/node_modules/node-appc/node_modules/async/lib/async.js:553:34
at /Users/chris/appc/titanium/lib/hook.js:214:18
at /Users/chris/appc/titanium/node_modules/async/lib/async.js:229:13
at async.eachSeries (/Users/chris/appc/titanium/node_modules/async/lib/async.js:127:20)
---------------------------------------------
at iOSBuilder.<anonymous> (/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/iphone/cli/commands/_build.js:2919:15)
at async.whilst (/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/node_modules/async/lib/async.js:616:13)
at iOSBuilder.<anonymous> (/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.2.0/iphone/cli/commands/_build.js:2898:13)
at /Users/chris/appc/titanium/lib/hook.js:221:13
at /Users/chris/appc/titanium/node_modules/async/lib/async.js:229:13
at async.eachSeries (/Users/chris/appc/titanium/node_modules/async/lib/async.js:127:20)
at _asyncMap (/Users/chris/appc/titanium/node_modules/async/lib/async.js:223:9)
at Object.mapSeries (/Users/chris/appc/titanium/node_modules/async/lib/async.js:213:23)
Titanium SDK master pull request: https://github.com/appcelerator/titanium_mobile/pull/5104 Titanium SDK 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5105 To test: 1) create an ios project 2) do a device build 3) open the generated xcode project in xcode 4) run the app for device
Verified the issue with tested Environment: Appcelerator Studio: 3.2.0.201312091648 SDK:3.2.0.v20131209192649 alloy: 1.3.0-cr acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr titanium-code-processor: 1.1.0-cr Xcode:5.0.2 OS: Mac OSX 10.9 Device: iPad3(v7.0), iPhone5S(v7.0.2) xcodeProject running fine on both simulators as well as devices from Xcode 5.0.2