[TIMOB-7961] iOS: Linker issue when building against an older version of iOS sdk
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-03-15T10:09:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Allen Yeung |
Assignee | Max Stepanov |
Created | 2012-03-12T15:50:09.000+0000 |
Updated | 2017-03-09T23:07:34.000+0000 |
Description
To reproduce try to run the simulator from studio with iOS sdk 4.3.
When running you get this error:
[INFO] Performing clean build
[ERROR] /Users/ayeung/Documents/Titanium Studio Workspace/tabbedapp/build/iphone/Classes/NetworkModule.m:252: error: 'UIRemoteNotificationTypeNewsstandContentAvailability' undeclared (first use in this function)
[ERROR] /Users/ayeung/Documents/Titanium Studio Workspace/tabbedapp/build/iphone/Classes/NetworkModule.m:252: error: (Each undeclared identifier is reported only once
[ERROR] /Users/ayeung/Documents/Titanium Studio Workspace/tabbedapp/build/iphone/Classes/NetworkModule.m:252: error: for each function it appears in.)
[ERROR] /Users/ayeung/Documents/Titanium Studio Workspace/tabbedapp/build/iphone/Classes/NetworkModule.m:304: error: 'UIRemoteNotificationTypeNewsstandContentAvailability' undeclared (first use in this function)
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.0/iphone/builder.py", line 1311, 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.0/iphone/builder.py", line 1217, in execute_xcode
output = run.run(args,False,False,o)
File "/Users/ayeung/titanium/titanium_mobile/dist/mobilesdk/osx/2.0.0/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
I worked with Max a little on this, and I was unable to reproduce this issue after I installed a newer version of xcode.
User had both Xcode 4.0 (/Developer) and 4.2 (/Developer-4.3) installed. And Xcode 4.0 was used by default. Titanium does not support 4.0 since 1.8.0 release. Solution: switch to Xcode 4.2 and above.
Closing ticket as invalid.