[TIMOB-8769] iOS: App build fails on Snow Leopard/iOS 4.3 configured machine
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-26T09:41:13.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | Release 2.1.0, Sprint 2012-08 |
Components | iOS |
Labels | SupportTeam, core |
Reporter | Varun Joshi |
Assignee | Stephen Tramer |
Created | 2012-04-17T15:06:07.000+0000 |
Updated | 2017-03-07T18:16:56.000+0000 |
Description
For Snow Leopard and iOS 4.3 configuration, the app is not building for iOS on a 2.0.x release. I have tested this on the latest CI 2.0 (4/10/2012) available on the CI server. This can be tested with a simple 1 window application.
Here is the log shown on the console:
{noformat}
[ERROR] /Users/timothy/Documents/Titanium Studio Workspace/Scratch/build/iphone/Classes/NetworkModule.m:252:44: error: use of undeclared identifier 'UIRemoteNotificationTypeNewsstandContentAvailability' [2]
[ERROR] /Users/timothy/Documents/Titanium Studio Workspace/Scratch/build/iphone/Classes/NetworkModule.m:304:33: error: use of undeclared identifier 'UIRemoteNotificationTypeNewsstandContentAvailability' [2]
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120410131722/iphone/builder.py", line 1318, 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 "/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120410131722/iphone/builder.py", line 1224, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120410131722/iphone/run.py", line 41, in run
sys.exit(rc)
SystemExit: 65
{noformat}
The customer added the following to ASIHTTPRequest.h by looking into the error code above:
#ifndef __IPHONE_5_0
#define __IPHONE_5_0 50000
#endif
To match the other #ifdefs in that file. This does removes the above error, but then compilation fails as follows:
{noformat}
[ERROR] /Users/timothy/Documents/Titanium Studio Workspace/Scratch/build/iphone/Classes/GeolocationModule.mm:199:18:{199:24-199:59}: error: cannot initialize a variable of type 'KrollContext *' with an rvalue of type 'id' [2]
[ERROR] /Users/timothy/Documents/Titanium Studio Workspace/Scratch/build/iphone/Classes/GeolocationModule.mm:215:18:{215:24-215:59}: error: cannot initialize a variable of type 'KrollContext *' with an rvalue of type 'id' [2]
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120410131722/iphone/builder.py", line 1318, 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 "/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120410131722/iphone/builder.py", line 1224, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120410131722/iphone/run.py", line 41, in run
sys.exit(rc)
SystemExit: 65
{noformat}
It should be noted that this configuration may be outside of our [compatibility matrix](http://docs.appcelerator.com/titanium/2.0/index.html#!/guide/Titanium_Compatibility_Matrix-section-29004837_TitaniumCompatibilityMatrix-Xcode).
Closing ticket due to time passed.