Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2239] Cannot build app using Xcode 4.5 Titanium Mobile 2.1.3 and ios SDK 5.1

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-09-26T06:11:00.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsbuilder.py, ios6, xcode4.5
ReporterDerrick Huth
AssigneeDaniel Sefton
Created2012-09-23T19:29:40.000+0000
Updated2016-03-08T07:41:14.000+0000

Description

I have been trying to publish an update to an old app. I initially built the update with Titanium 2.1.2, Xcode 4.3 and ios SDK 5.1. When I submitted the app I received feedback from Apple that the app crashed on IOS6. To rectify that problem I installed Xcode 4.5 and the current build of Titanium 2.1.3. When I compiled and submitted the app it failed the automatic validation check giving the following message: "iPhone/iPod Touch: application executable is missing a required architechture. At least one of the following architechture(s) must be present:armv6" I looked at the Q&A and found a suggested modification to the info.plist file to sort that out. When I next submitted the app I then got another error from the automatic validation process: "This bundle is invalid. The key UIRequiredDeviceCapabilities in the Info.plist may not contain values that would prevent this application from running on devices that were supported by previous versions." I then realised that ios 6 only supports armv7 so is no use for updating an existing app that has been published to armv6 devices. I have downloaded Xcode 4.3 and copied the ios 5.1 SDK to the my Xcode 4.5 installation and installed the iPhone 5.1 simulator. I then tried to build my app with Titanium 2.1.3 and ios SDK 5.1. The packaging failed with the following error in builder.py: ~~~ [ERROR] /Users/des/Apps/iLoyalty/build/iphone/Classes/TiApp.mm:627:12: error: cannot initialize return object of type 'NSUInteger' (aka 'unsigned int') with an rvalue of type 'id' [ERROR] [ERROR] Error: Traceback (most recent call last): File "/Users/des/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120921190208/iphone/builder.py", line 1315, in main execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s %s" % (log_id,sdk_version,debugstr,kroll_coverage)],False) File "/Users/des/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120921190208/iphone/builder.py", line 1221, in execute_xcode output = run.run(args,False,False,o) File "/Users/des/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120921190208/iphone/run.py", line 41, in run sys.exit(rc) SystemExit: 65 ~~~ I appreciated that 2.1.3 is a work in progress at the moment, but supporting SDK 5.1 in order to maintain existing app will be necessary.

Comments

  1. Derrick Huth 2012-09-24

    I apologise, this can be closed as an erroroneously reported bug. I have resubmitted the app building with ios sdk6 and the min-ios-version 4.3 info.plist fix and the app has been accepted without problem. Many thanks Des

JSON Source