I want to add third party libraries (like Swinject, or AlamoFire) to my custom framework (that created with swift) with CocoaPods.
the way I’m using is open terminal and navigate to my framework directory and run pod init
. after that adding third party libraries to Podfile and then run pod install
.
is this way correct for using my framework later in my app project? and is there a better way for doing this?
2
Answers
For installing the third-party libraries into the project:
Step 1: Open the terminal and navigate to the project directory.
Step 2: Type
pod init
in the terminal and press enter.Step 3: Add the third-party libraries into the Podfile.
Step 4: Type
pod install
in the terminal and press enter.So, you need to add dependencies in your Custom Pod Podspec –
For further reference – Cocopod Link