dynamic libraries in XCode

后端 未结 3 1742
孤城傲影
孤城傲影 2021-01-13 06:45

I am trying to create an mac application in XCode that has some of its implementation in a dynamic library.

I added a new target (dynamic library) to my XCode cocoa

3条回答
  •  伪装坚强ぢ
    2021-01-13 07:13

    At last. Found some official documentation. Its possible to do this entirely within XCode.

    I was halfway there modifying the Installed Directory setting of the library: It needed to be: @executable_path/../Frameworks

    Then I needed to add a "Copy Files" build step to the library to actually copy it to the Frameworks folder.

    Simple. Automatic.

提交回复
热议问题