Mixing CocoaPods with Swift package

Viewed 988

I have an iOS project, that is divided into various frameworks using Swift packages. Now I need to create another swift package, which would include:

  • Some dependencies from other swift packages
  • Other dependencies from CocoaPods (GoogleMLKit/ObjectDetectionCustom to be exact)

How can I do this? Is there some way to import cocoa pod into the swift package? For now, I implemented all this new functionality inside the main iOS app project, but I really don't like this solution. I would love to have this in a separate package.

1 Answers

You could perhaps include the GoogleMLKit/ObjectDetectionCustom package (if there is one) inside the package you are importing into your main project

For example I use Reachability package inside my own package which I then include in my main project

Related