CocoaPods “target has transitive dependencies that include static binaries”

房东的猫 提交于 2019-12-05 02:37:43

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

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

I think i have found the solution, I tested myself through yourway and found the same error, So i gone through one by one pod installation, and its works and installed perfectly, but "pod 'Google-Maps-iOS-Utils'" is the reason for arising the error, instead putting this in your podfile, remove that and keep this three under your target.

pod 'GooglePlaces'

pod 'GoogleMaps'

pod ‘PopupDialog’

Install them, it will install perfectly.

Now, in terminal when all dependencies installed successfully, run "pod try Google-Maps-iOS-Utils", it will started installing, then you would get options for like:

1: samples/ObjCDemoApp/ObjCDemoApp.xcodeproj

2: samples/SwiftDemoApp/SwiftDemoApp.xcodeproj

3: workspace/GoogleMapsUtils.xcodeproj

Which project would you like to open ? select your number (eg 3) then press enter

Here you have selected your project and proceed accordingly. (y) and you have done.

I worked with GoogleMap and i had this same error and it is just because of pod 'Google-Maps-iOS-Utils' xcode gives this error. I removed pod 'Google-Maps-iOS-Utils' and just keep pod 'GoogleMaps'. And it works for me. Hope it would be work for you as well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!