分发时在swift框架中隐藏源代码 [英] Hide source code in swift framework when distributing

查看:185
本文介绍了分发时在swift框架中隐藏源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个快速框架,以便分发给私人客户,这是我第一次创建iOS框架,所以我对很多事情都很无能为力。是否有可能隐藏我的源代码。我已经到处搜索但我找不到合适的答案。我不确定我是否要彻底解释它,但为了简化我不希望开发人员能够修改或查看我的框架中的代码。开发人员不能去编辑我们在自己的应用程序中嵌入的代码。有没有办法禁止这个。谢谢。

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 it possible that my source codes can be hidden.I have searched everywhere but I can't find a proper answer to this. I'm not sure if Im explaining it thoroughly but to simplify I don't want developers to be able to modify or see the code in my framework. Can't developers just go and edit my code that they embedded in their own app.Is there a way to prohibit this. Thank you.

推荐答案

这是一个很棒的教程,演示了如何在分发给Cocoapods时隐藏Swift框架的实现:

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/

这篇关于分发时在swift框架中隐藏源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆