Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7003] iOS: CLI in 1.8 is not able to build projects for distribution (but CI does)

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-10T12:43:59.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterMauro Parra-Miranda
AssigneeNeeraj Gupta
Created2012-01-05T11:32:21.000+0000
Updated2014-06-19T12:43:26.000+0000

Description

PROBLEM

Customer wants to use his build factory to build projects for device. He is using ANT. He tried this with CI, and it's working. With 1.8.0.1, he gets error on the architecture.

EXTRA INFO

Earlier today, I was able to get a local machine (not build server) command-line ANT build running on a device, but that was with SDK 1.8.0.r05ee9f48.d10.17. When I switched to SDK 1.8.0.1, I got a persistent build error. The build log says: ld: in /Users/csadil/dev/env/tablet/MB-Next-Gen-Client/build/iphone/lib/libtiverify.a, file is universal but does not contain a(n) armv6 slice for architecture armv6 collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 failed with exit code 1 Some searches suggest that this is related to armv architecture settings in the TI-generated files (see http://stackoverflow.com/questions/5266576/way-to-restore-xcode-to-accept-armv6-architecture ) I have Xcode 4.0.2 and iOS SDK 4.3 installed.

Comments

  1. Stephen Tramer 2012-01-05

    We require the full build log that generated this error. This is likely a problem with the external build system, since libtiverify.a contains the correct symbols for armv6:
       stiv@Macintosh-140 [11:35:47] [~/src/appcelerator/titanium_mobile] [1_8_X *]
       -> % nm iphone/lib/libtiverify.a | grep armv6
       iphone/lib/libtiverify.a(TiVerifyErrorController.o) (for architecture armv6):
       iphone/lib/libtiverify.a(TiVerify.o) (for architecture armv6):
       stiv@Macintosh-140 [11:35:49] [~/src/appcelerator/titanium_mobile] [1_8_X *]
       -> % nm iphone/lib/libtiverify.a | grep armv7
       iphone/lib/libtiverify.a(TiVerifyErrorController.o) (for architecture armv7):
       iphone/lib/libtiverify.a(TiVerify.o) (for architecture armv7):
       
  2. Mauro Parra-Miranda 2012-01-10

    Hello, the upgrade to Xcode 4.2 fixed this issue. Best, Mauro

JSON Source