Best way to install a custom cocoa framework

后端 未结 4 713
执笔经年
执笔经年 2020-12-29 15:00

I have a custom framework that, following the advice in Apple\'s Framework Programming Guide >> Installing your framework I install in /Library/Frameworks. I do this by addi

4条回答
  •  抹茶落季
    2020-12-29 15:26

    There's not much reason to put a framework into Library/Frameworks, and it's a lot of work: You'd need to either do it for the user in an Installer package, which is a tremendous hassle to create and maintain, or have installation code in your app (which could only install to ~/L/F, unless you expend the time and effort necessary to make your app capable of installing to /L/F with root powers).

    Much more common is what Apple calls a “private framework”. You'll bundle this into your application bundle.

    Even frameworks intended for general use by any applications (e.g., Sparkle, Growl) are, in practice, built to be used as private frameworks, simply because the “right” way of installing a single copy of the framework to Library/Frameworks is such a hassle.

提交回复
热议问题