Hide source code in swift structure when distributing

I created a quick framework for distribution to private clients, and this is the first time I created an iOS framework, so I am very confused about a lot of things. Is it possible that my source codes might be hidden. I have searched everywhere but I cannot find the correct answer to this question. I'm not sure if Im explaining this completely, but for the sake of simplicity, I don't want developers to be able to modify or see the code in my structure. Can developers just go and edit my code that they have embedded in their own application. Is there any way to prevent this. Thank.

+4


source to share


3 answers


Here's a fantastic tutorial demonstrating how to hide the Swift framework implementation when propagated to Cocoapods:



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

+2


source


So, I've actually learned more about frameworks over the past few months and also ended up with my frameworks and it turns out that what I'm trying to achieve can be done by deploying just the framework product under the products file. Only your ads will be visible so your source code will not be visible unless you include these files when distributing your infrastructure.



+1


source


What was the solution for this @Emiric? Actually I am building my swift infrastructure, but I do not see the declarations you are talking about, for example for header files ... (classes and methods are public, but I do not see the declaration) How can I make them visible, could can you help please?

0


source







All Articles