• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Linking errors after upgrading to XCode 3.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking errors after upgrading to XCode 3.2


  • Subject: Re: Linking errors after upgrading to XCode 3.2
  • From: Kin Mak <email@hidden>
  • Date: Sat, 03 Jul 2010 14:42:20 +0800

Clark,

You are partially right. I did have a 3rd party library, JSON, that is not compatible with XCode 3.2. But I had replaced it with the local source files instead.

In addition to what you have suggested, I had to manually select the gcc 4.2 compiler as well.
XCode seems to be not able to pick up the default compiler, GCC 4.2.
The linking errors seem to caused by using a wrong compiler.

This is how I solved the issue:

1) Selected "Device 3.2" as the BASE SDK
2) Selected the GCC 4.2 compiler

Thanks and regards
Kin

On Jul 3, 2010, at 12:18 PM, Clark Cox wrote:

> I'd guess that you're:
>
> 1) Using a static library that was built with an earlier version of the tools
> and
> 2) Using the Simulator.
>
> You will need a version of the library built with the current version
> of the tools.
>
> On Thu, Jul 1, 2010 at 2:17 AM, Kin Mak <email@hidden> wrote:
>>
>> I have just downloaded and upgraded/installed XCode 3.2.3. Afterwards, I
>> tried to build my project that was built successfully on XCode 3.1
>> However, XCode 3.2 produced tons of linking errors as shown below. It seems
>> that somehow the linker could not find the Foundation and UIKit frameworks.
>> I double checked that they are actually in place and were set up properly in
>> my project.
>> Undefined symbols:
>>   "_objc_exception_extract", referenced from:
>>       +[FourSquareImageManager sharedInstance] in FourSquareImageManager.o
>>       +[FourSquareLocationManager allocWithZone:] in
>> FourSquareLocationManager.o
>>   ".objc_class_name_UIImage", referenced from:
>>       literal-pointer@__OBJC@__cls_refs@UIImage in FourSquareURLImage.o
>>       literal-pointer@__OBJC@__cls_refs@UIImage in
>> FourSquareMapViewController.o
>>   ".objc_class_name_NSNotificationCenter", referenced from:
>>       literal-pointer@__OBJC@__cls_refs@NSNotificationCenter in
>> FourSquareMapViewController.o
>>       literal-pointer@__OBJC@__cls_refs@NSNotificationCenter in
>> FourSquareCoreViewController.o
>>       literal-pointer@__OBJC@__cls_refs@NSNotificationCenter in
>> FourSquareLocationManager.o
>>   ".objc_class_name_UITableViewController", referenced from:
>>       .objc_class_name_RootViewController in RootViewController.o
>>       .objc_class_name_FourSquareListViewController in
>> FourSquareListViewController.o
>>       .objc_class_name_FourSquareSettingsViewController in
>> FourSquareSettingsViewController.o
>>
>> I am wondering I need to set up some linker flags. Has anyone encountered
>> this kind of linking issues after upgrading from XCode 3.1 to 3.2.
>> Does anyone know how to fix them?
>> Any tips will be highly appreciated.
>>
>> Best Regards
>> Kin Mak
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>>
>
>
>
> --
> Clark S. Cox III
> email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Linking errors after upgrading to XCode 3.2 (From: Kin Mak <email@hidden>)
 >Re: Linking errors after upgrading to XCode 3.2 (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: Documentation - method alignment changed
  • Next by Date: Re: force-restarting iPhone apps in Simulator from Xcode 3.2.3/iOS sdk4
  • Previous by thread: Re: Linking errors after upgrading to XCode 3.2
  • Next by thread: Re: Linking errors after upgrading to XCode 3.2
  • Index(es):
    • Date
    • Thread