Transitive dependencies error when installing cocoa pods
I want to integrate "Sign in with Google" into my application. I tried to use containers, but I get an error that looks like this:
Target 'Pods-ProjectName
'has transitive dependencies that include static binaries:ProjectPath/GoogleAppUtilities/Libraries/libOpenInChrome.a
The My Pod file code looks like this:
target 'ProjectName' do
use_frameworks!
pod "OAuthSwift", "~> 0.3.4"
pod "Haneke", "~> 1.0"
pod "Alamofire", "~> 1.2"
pod "IJReachability", :git => "https://github.com/Isuru-Nanayakkara/IJReachability.git"
pod "iCarousel"
pod 'SDWebImage', '~>3.7'
pod 'Google/SignIn'
end
I am also using Crashlytics. Without Google/signIn
I can successfully create pods workspace.
Any solution on this.
source to share
As for the cocoapods documentation for version 0.36 , you cannot add static libraries to your project. The google pod seems to have dependencies on some of the static libraries creating the crash pod install
.
If you are using ObjectiveC and you remove the part use_frameworks!
, you will have no problem.
Another option, of course, is to add the google library directly to the project, so you won't be using cocoapods.
source to share
Add the following lines of code to your pod file to ignore transitive dependencies:
pre_install do |installer|
def installer.verify_no_static_framework_transitive_dependencies
end
end
If you are using a podfile like MIHCrypto then the static libraries have added all the dependency libraries to build the project and change mach-O-type to static as shown below:
source to share