• 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
Really confused now about -ObjC and -force_load flags
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Really confused now about -ObjC and -force_load flags


  • Subject: Really confused now about -ObjC and -force_load flags
  • From: David Hoerl <email@hidden>
  • Date: Thu, 28 Mar 2013 18:52:47 -0400

I had a private exchange with Jens regarding my last post on whether force_load is still needed or not.

It seems now that if you use an ObjectiveC library that has category-only files (think NSString+...), that you need one or the other of -ObjC or -force_load.

After reading http://developer.apple.com/library/mac/#qa/qa1490/_index.html, it appears that -ObjC tells the linker to immediately load every object file in every library it links against (which would also seem much like "-all_load").

"-force_load" on the other hand only does the "load all objects" on the single library specified after the flag.

Thus, it appears to me that -force_load is the preferred solution. Did I miss something? If this is so, why doesn't QA1490 say that?

David
_______________________________________________
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

  • Prev by Date: Re: Deployment Target
  • Next by Date: Re: Deployment Target
  • Previous by thread: Re: Deployment Target
  • Next by thread: Tips on migrating pre Xcode 3.1.3 projects to Xcode 4.6
  • Index(es):
    • Date
    • Thread