Creating a structure that requires (depends on) another structure

I would like to create a structure using the Cocoa Touch Framework Project in Swift. However, I am creating this structure on top of another structure called RNCryptor, which is based on Objective-C. I saw various tutorials on how to create a framework in Xcode, but none of them covered a structure with its own dependency.

I tried to create a framework project and then use CocoaPods to manage its dependencies. However, errors appeared: "Check Dependencies" Could not start command ... '

So the question is: is it possible to create a framework on top of another structure in Xcode. And if so, how?

+4
source share
1 answer

Frames should never insert other structures directly. This leads to conflicts if the import project or any other structure also includes this structure. Instead, you need to tell your consumer that they should also include your addiction. CocoaPods will do this automatically, so you must enable it. (If you are having problems with CocoaPods dependencies, you should ask a question about it and clear it. The whole point of CocoaPods is to manage these things.)

Please note that today I will release Swift version of RNCryptor in beta (or tomorrow, but I really hope today). This version connects to ObjC and will be the preferred version in the future. (The ObjC version will continue to be available for projects that cannot or do not want to include Swift.)

+11

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


All Articles