Cocoapods - Hide implementation?

I have an iOS library that I created. Most recently, I sent this library to a .framework file .framework only some .h files. Now I would like to use Cocoapods instead of a frame.

Is it possible to hide .m files and set only some header files (for example, using the framework)?

According to this question, I do not understand the relationship between the podspec source_files and public_header_files settings.

I suggested that public_header_files would be my required parameter, but I don't understand what this property does.

Edit: I think I misunderstood the design of Cocoapods. public_header_files seems to make sense when using the use_framework! parameter use_framework! . Perhaps I will try Carthage.

+6
source share
1 answer

For a static Objective-C framework, perhaps you can try cocoapods-packager . For the Swift platform, it is still not possible to use cocoapods-packager due to the lack of volunteers. You can find detailed information here :

But there is another way to Hide the implementation of the Swift structure when it is distributed.

0
source

Source: https://habr.com/ru/post/972084/


All Articles