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.

+3


source to share


3 answers


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.

+4


source


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:

enter image description here

+2


source


Go to your file and paste the following

pre_install do |installer|
def installer.verify_no_static_framework_transitive_dependencies; end
end

      

This worked for me.

+1


source







All Articles