Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19274] CLI: When building for iOS device the app will always be 32-bit

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-07-30T17:02:56.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.0
ComponentsiOS
Labelsqe-5.0.0, regression
ReporterEwan Harris
AssigneeChee Kiat Ng
Created2015-07-28T23:47:16.000+0000
Updated2015-07-30T17:17:26.000+0000

Description

Description

When building to device the app appears to always be 32-bit. Using the code below and xcrun lipo -info <PathToBinary> show that there is not 64bit slice when building for device. *Note* When packaging the 64-bit slice is present, as the app passes Xcode validation and xrcun shows that there is a 64-bit slice. This is a *regression* from 4.1.0.GA
var win = Ti.UI.createWindow({
    backgroundColor: 'blue'
});
win.open();
win.addEventListener('click', function(e) {
    console.log('ostype: ' + Ti.Platform.ostype);
    console.log('architecture: ' + Ti.Platform.architecture);
});

Steps to reproduce

1. Add the above code to a project 2. Build the app to a 64-bit device 3. Tap the screen

Actual result

The below is printed out
[INFO]  ostype: 32bit
[INFO]  architecture: armv7

Expected result

The below should be printed out
[INFO]  ostype: 64bit
[INFO]  architecture: arm64

Comments

  1. Ewan Harris 2015-07-29

    Fix is the same as the attached ticket the following needs to be added to [these args](https://github.com/appcelerator/titanium_mobile/blob/master/iphone/cli/commands/_build.js#L2240) ONLY_ACTIVE_ARCH: 'NO',
  2. Chee Kiat Ng 2015-07-29

    PR here: https://github.com/appcelerator/titanium_mobile/pull/6990
  3. Ewan Harris 2015-07-29

    Verified using: Appc CLI (Core): 4.2.0-1 Ti SDK: 4.2.0.v20150729134419 iPhone 6 8.2 Using the attached code when building to a 64-bit device the logging now reports as 64-bit and when running xcrun lipo -info it now reports that there is a 64-bit slice Closing ticket
  4. Wilson Luu 2015-07-30

    Reopening issue to fix Affect Versions field.

JSON Source