CocoaPods "has transitive dependencies that include static binaries"

I am trying to install the quick framework that I found on GitHub, along with GoogleMaps, GooglePlaces in my Xcode project, but for some reason, when I try to install the pod file, it gives the following error

[!] The target of "Pods-project1" has transitive dependencies that include static binaries: (/Users/user1/Desktop/project1/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework,/Users/user1/Desktop/project1/ Pods / GoogleMaps / Maps / Frameworks / GoogleMaps.framework and /Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMapsCore.framework)

Here is my swap file that I am trying to install:

#Uncomment the next line to define a global platform for your project #platform :ios, '9.0' source 'https://github.com/CocoaPods/Specs.git' use_frameworks! target 'project1' do pod 'GooglePlaces' pod 'GoogleMaps' pod 'Google-Maps-iOS-Utils' pod 'PopupDialog' end 

There is also a link to the high-speed structure I'm trying to install: https://github.com/Orderella/PopupDialog

I do not, I tried several things, but they do not seem to work. Any help would be greatly appreciated.

+6
source share
4 answers

I think I found a solution, I tested myself through yourway and found the same error. So I went through one installation of pod, and it worked fine, but the " pod" Google-Maps-iOS-Utils " " causes an error, instead putting it in your click, deleting it and keeping it three under your purpose.

pod 'GooglePlaces'

pod 'googlemaps'

pod 'PopupDialog

Install them, it will be perfectly installed.

Now, in the terminal, when all the dependencies are installed successfully, run "pod try Google-Maps-iOS-Utils", it will start the installation, then you will get options for:

1: samples /ObjCDemoApp/ObjCDemoApp.xcodeproj

2: samples /SwiftDemoApp/SwiftDemoApp.xcodeproj

3: workspace /GoogleMapsUtils.xcodeproj

Which project do you want to open? select your number (e.g. 3), then press enter

Here you have chosen your project and act accordingly. (U) and you did it.

+5
source

This is because "Google-Maps-iOS-Utils" is not a dynamic library when you used "use_frameworks!". in your subfile. Unfortunately, for this library we need to install it manually for the Swift project. You can check the detailed explanation here:

https://github.com/googlemaps/google-maps-ios-utils/blob/master/Swift.md

+4
source

You need to add platform information for each goal. Here's how to do it in CocoaPods 1.6.0.b.2:

 target 'project1' do platform :ios, '9.0' # Pods for project1 end 
0
source

I worked with GoogleMap and I had the same error, and this is due to the fact that xcode Google-Maps-iOS-Utils gives this error. I uninstalled Google-Maps-iOS-Utils and just saved the swap of GoogleMaps . And it works for me. Hope this works for you too.

0
source

Source: https://habr.com/ru/post/1265062/


All Articles