• 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: Static library and Objective C categories [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static library and Objective C categories [SOLVED]


  • Subject: Re: Static library and Objective C categories [SOLVED]
  • From: Eyal Redler <email@hidden>
  • Date: Mon, 28 Jul 2008 15:22:49 +0300


On Jul 28, 2008, at 4:32 AM, Chris Suter wrote:


On 28/07/2008, at 11:28 AM, Eyal Redler wrote:

On Jul 27, 2008, at 9:55 PM, Nick Zitzmann wrote:

Try it again, but this time, link the binary using the -all_load linker flag. Normally the linker only imports the symbols in the static library it thinks it needs, but every now and then it misses a spot, and I think that's what's happening here.

Thanks but this didn't work, I've added -all_load to the "Other Linker Flags" but the code still fails. It also seems quite consistent, it fails in my main project and in a sample project I've created to verify the issue.


Maybe I need to add the -all_load flag somewhere else?

"-all_load" should work as should "-ObjC" which is probably the better one to use.


What version of Xcode are you using?

Are you able to post your sample project or a link to it?

Thanks Chris, it seems that both -all_load and -ObjC work. I'm not sure why but -all_load didn't work at the beginning but after a successful try with -ObjC, it started working too, maybe I misspelled it. Sorry about that.


Eyal
_______________________________________________
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: 
 >Static library and Objective C categories (From: Eyal Redler <email@hidden>)
 >Re: Static library and Objective C categories (From: Nick Zitzmann <email@hidden>)
 >Re: Static library and Objective C categories (From: Eyal Redler <email@hidden>)
 >Re: Static library and Objective C categories (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: Subversion, XCode, Storing Other Data
  • Next by Date: Re: Subversion, XCode, Storing Other Data
  • Previous by thread: Re: Static library and Objective C categories
  • Next by thread: Subversion, XCode, Storing Other Data
  • Index(es):
    • Date
    • Thread