• 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: Release build problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Release build problem


  • Subject: Re: Release build problem
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sun, 21 Sep 2008 01:05:38 +0200


Le 21 sept. 08 à 00:58, D.K. Johnston a écrit :

I found that if I checked "Build Active Architecture Only" in the Release configuration, the error disappeared; which I guess explains why there was no problem in the Debug configuration. But with this setting unchecked, the link fails, with this same error:

	".objc_class_name_MyClass", referenced from:
	literal-pointer@__OBJC@__cls_refs@MyClass in MyApp.o
	ld: symbol(s) not found
	collect2: ld returned 1 exit status

I've searched the archives for "collect2: ld returned" and got many many hits; but so far nothing that seems to fit my problem.

Any help would be greatly appreciated.


You static library is not an universal binary and contains only code (and symbols) for one architecture.
When you compile using Release configuration (and uncheck Build Active Arch only), Xcode build for Intel and PPC, but it fails at the link step of one of your target architecture.



_______________________________________________ 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: 
 >Release build problem (From: "D.K. Johnston" <email@hidden>)
 >Re: Release build problem (From: "D.K. Johnston" <email@hidden>)

  • Prev by Date: Re: Release build problem
  • Next by Date: Re: Release build problem
  • Previous by thread: Re: Release build problem
  • Next by thread: Re: Release build problem
  • Index(es):
    • Date
    • Thread