• 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 Equivalent of a Framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static Library Equivalent of a Framework?


  • Subject: Re: Static Library Equivalent of a Framework?
  • From: Jim Ingham <email@hidden>
  • Date: Tue, 18 Nov 2003 11:08:47 -0800

On Nov 17, 2003, at 6:56 PM, Timothy J. Wood wrote:

On Monday, November 17, 2003, at 09:19  AM, Jim Ingham wrote:

Note that if you have resources in your framework, you can't access them as straightforwardly if you try to make a "static framework" as you would with a dynamic framework. The CFBundle code relies on noticing where it was loaded from to know where all it's associated structure is. All this information is lost when you link statically.

Right -- but presumably a 'static framework' would have support in Xcode for merging resources from the framework into the app (care would need to be taken to avoid duplicates).



Another option would be to cons up a dummy dylib for the framework that does get loaded, but doesn't expose any of the API's in the framework. This would suffice to locate the bundle and its associated resources. I think this would be a better option than trying to handle merging resources since avoiding duplicates could get tricky...



Jim

One of the most interesting part of a 'static framework' is that it would work around the limitation of -mdynamic-no-pic not being supported for frameworks and bundles. I'm really not clear on why we can't have MH_FVMLIB frameworks with -mdynamic-no-pic -- I assume Apple doesn't want to guarantee a range of memory for ISV frameworks.

-tim
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Jim Ingham email@hidden
Developer Tools - gdb
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Static Library Equivalent of a Framework?
      • From: "Timothy J. Wood" <email@hidden>
References: 
 >Re: Static Library Equivalent of a Framework? (From: "Timothy J. Wood" <email@hidden>)

  • Prev by Date: Re: Build Styles
  • Next by Date: Xcode 1.01 crashes in debugger
  • Previous by thread: Re: Static Library Equivalent of a Framework?
  • Next by thread: Re: Static Library Equivalent of a Framework?
  • Index(es):
    • Date
    • Thread