Best way to install a custom cocoa framework

后端 未结 4 714
执笔经年
执笔经年 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:41

    Naturally, when you distribute your framework it should be installed in /Library/Frameworks; however it seems odd to me that you're doing that with the test/debug versions of your framework.

    My first instinct would be to install test versions under ~/Library, as it just makes setting up your test and debug environment that much simpler. If possible, I would expect the debug/test framework to be located in the build tree of the version I'm testing, in which case it's installed as a Private Framework for testing purposes. That would make your life much simpler when it comes time to deal with multiple versions of your framework.

    Ultimately, it doesn't matter where the framework is located as long as your application or test suite loads the correct version. Choose the location that makes testing/debugging/development easiest.

提交回复
热议问题