Swift: using private framework

后端 未结 2 1581
天涯浪人
天涯浪人 2021-02-07 23:56

I have built an iOS Swift framework with Xcode.

After writing the code I have build the project and took the .framework file inside the Products folder to test it.

2条回答
  •  温柔的废话
    2021-02-08 00:19

    When you're referencing a framework in the products directory from your workspace, ensure that the location is "Built Products" and the filename is just the framework name, without any additional path components.

    If you're referencing a framework that isn't in your workspace, I would recommend using Carthage instead of copying it directly into your repository. This will make versioning much easier, and will ensure that it is built correctly for both simulator and device.

提交回复
热议问题