Issue description
Customer is trying to build an Titanium Android module. The default manifest file contains "architectures: armeabi armeabi-v7a x86". When customer removes the x86 from this list he get the following error:
check.build.arch:
[echo] Architectures in manifest: armeabi armeabi-v7a
[echo] Compiled binary architectures: armeabi;armeabi-v7a;x86
BUILD FAILED
/Users/collinprice/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/module/android/build.xml:376: The following error occurred while executing this line:
/Users/collinprice/Library/Application
Support/Titanium/mobilesdk/osx/5.3.0.GA/module/android/build.xml:378: There is discrepancy between the architectures specified in manifest and compiled binary.
Android module contains a shared object (.so) file that does not support the ABI x86 (why?).
Steps to reproduce
Create appc module running appc new command
Change the architecture list in the manifest file:
Default:
architectures: armeabi armeabi-v7a x86
What customer want:
architectures: armeabi armeabi-v7a
Looks like the issue is with the compilation of the module. When you run "ant" to compile the module I am getting the BUILD FAILED error.
TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8501 To test, create a Titanium module, edit the
manifest
and change the "architectures" line toarchitectures: armeabi-v7a
, thencd android && ti build -p android --build-only
. Verify thelibs
anddist/<whatever>.zip
file only contains the desired architectures.We need a backport for this on 6.0.0 :) [~cbarber] To test using appc, you can follow the above instructions but instead, 1. appc new (choose timodule) 2. edit the manifest 3. cd android && appc run -p android --build-only
6_0_X backport: https://github.com/appcelerator/titanium_mobile/pull/8502
CR AND FT PASSED. APPROVED.
is it possible to build the module with ANT anyway or only using appc cli?
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.