Reputation: 2024
I have a project that depends on Alamofire 5.0 and another pod which depends on an older version of Alamofire 4.9. however I get the error when i compile it.
my pod dependency are as follows:
Podfile of my project
pod 'Alamofire', '5.0.4'
pod 'MyFramework', '2.0.0'
MyFramework.podspec
s.dependency 'Alamofire', '~> 4.9.0'
Is there any way to make it compilable without changing any codes ? so i want MyFramework keep using the Alamofire 4.9, and in my project it can be used 5.0.4. is that possible to keep both versions of alamofire only for now? I just want to make the compiler happy so that we can compile the code and move forwards and tackle the project and framework separately. any suggestions would be appreciated. Thanks a lot for your attention.
Upvotes: 1
Views: 681
Reputation: 534
I don't think it's possible. Cocoapods resolves all dependencies into single Pods project so it can't have multiple versions of the same library in it. You should either update the version in your framework or lower it in your app podfile.
Upvotes: 2