I want to use cocoapods or similar functions in my own SDK. what should I do.
I tried to refer to the third-party library by direct reference, but there was a path problem when calling it. swift please.
CodePudding user response:
If you want to include third party pods in your custom SDK you can directly include them in your podfile and use them. when you will be publishing your SDK then in the podspec file you will have to mention all the pods that you are using
spec.dependency "SDWebImage", "~> 5.11.1"
spec.dependency "SwiftLint"
spec.dependency "IQKeyboardManagerSwift"
Like this in your podspec file.