Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7961] iOS: Linker issue when building against an older version of iOS sdk

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2012-03-15T10:09:51.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterAllen Yeung
AssigneeMax Stepanov
Created2012-03-12T15:50:09.000+0000
Updated2017-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

Comments

  1. Allen Yeung 2012-03-14

    I worked with Max a little on this, and I was unable to reproduce this issue after I installed a newer version of xcode.
  2. Max Stepanov 2012-03-15

    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.
       sudo xcode-select /Developer-4.2
       
  3. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source