Hide source code in swift framework when distributing

前端 未结 2 1776
囚心锁ツ
囚心锁ツ 2021-01-04 20:40

I have created a swift framework for distribution to private customers and its the first time I have created an iOS framework so I am very clueless about a lot of things. Is

相关标签:
2条回答
  • 2021-01-04 21:22

    Here is a fantastic tutorial demonstrates how to hide implementation of Swift framework when distributing to Cocoapods:

    https://crafttang.com/2017/10/12/hide-implementation-of-swift-framework-when-distri/

    0 讨论(0)
  • 2021-01-04 21:28

    So I actually learned more about frameworks over the past few months and also completed my framework and it turns out what I was trying to achieve could be done by deploying only the framework product under the products file.Only your declarations will be visible so your source code wont be visible unless you include those files too while distributing your framework.

    0 讨论(0)
提交回复
热议问题