Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18196] iOS: add architecture to module not found message

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-12-12T21:13:48.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sRelease 3.5.0, Release 4.0.0
ComponentsiOS
Labelsn/a
ReporterJon Alter
AssigneeJon Alter
Created2014-12-12T21:08:28.000+0000
Updated2015-11-05T15:14:03.000+0000

Description

When an app is built using 3.5.0 or greater it will include a 64 bit slice. If that app is run on an arm64 device (5s, 6, etc), when it requires a module that does not have the arm64 slice, it fails with an exception with message:
Couldn't find module: ti.paint
We need to add a better message to make it clear what architecture the module is not found for.
Couldn't find module: ti.paint for architecture: arm64

Comments

  1. Jon Alter 2014-12-12

    PRs

    master: https://github.com/appcelerator/titanium_mobile/pull/6475 3_5_X: https://github.com/appcelerator/titanium_mobile/pull/6476

    Test case:

    Add the ios ti.map module v2.0.6 (Does not have 64bit slice) to the tiapp.xml

    Run the code below

    Tap on the window and the error message displayed should include the architecture that is missing from the module (x86_64 or arm64)

       var win = Ti.UI.createWindow({
           backgroundColor: 'blue'
       });
       win.open();
       win.addEventListener('click', function(e) {
           var Map = require('ti.map');
       });
       
  2. Eric Wieber 2015-01-07

    Verified fixed, using: Titanium SDK 3.5.0.v20150106224118 Studio 3.4.1.201410281743 Xcode 6.1.1 On: iPad mini, iOS 8.1 iPhone 6, iOS 8.2b3 iPhone 4S Sim, iOS 8.1 iPhone 6 Sim, iOS 8.1
  3. Tim Poulsen 2015-02-19

    This appears to be causing ALOY-1249

JSON Source