Skip to content

🗺 Google Maps iOS doesn't build on M1 Macs #5

Description

@phatblat

Local tracking issue for googlemaps/google-maps-ios-utils#355, which is "resolved" but the new XCFramework version is still in beta and not yet possible to install through CocoaPods. Flutter apps use CocoaPods to integrate dependencies on iOS, so this fix doesn't help until the new XCFramework is available via CocoaPods.

I've created GoogleMapsSwiftPackage which includes a podspec, but CocoaPods blows up when I try to use it.

GoogleMapsSwiftPackage on  main via 🐦 v5.6
❯ pod lib lint

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

/opt/homebrew/lib/ruby/gems/3.1.0/bin/pod lib lint


### Report

* What did you do?

* What did you expect to happen?

* What happened instead?


### Stack

CocoaPods : 1.11.3
Ruby : ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [arm64-darwin21]
RubyGems : 3.3.11
Host : macOS 12.3.1 (21E258)
Xcode : 13.3 (13E113)
Git : git version 2.35.1
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.1.1/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/


### Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.1
cocoapods-trunk : 1.6.0
cocoapods-try : 1.2.0


### Error

NoMethodError - undefined method `map' for "Base":String

    value.map do |name, requirements|
         ^^^^

Did you mean? tap
/opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/specification/consumer.rb:232:in dependencies' /opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/specification.rb:403:in block in dependencies'
/opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/specification.rb:402:in map' /opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/specification.rb:402:in dependencies'
/opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/lib/cocoapods/validator.rb:44:in block in initialize' /opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/lib/cocoapods/validator.rb:44:in all?'
/opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/lib/cocoapods/validator.rb:44:in initialize' /opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/lib/cocoapods/command/lib/lint.rb:76:in new'
/opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/lib/cocoapods/command/lib/lint.rb:76:in block in run' /opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/lib/cocoapods/command/lib/lint.rb:75:in each'
/opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/lib/cocoapods/command/lib/lint.rb:75:in run' /opt/homebrew/lib/ruby/gems/3.1.0/gems/claide-1.1.0/lib/claide/command.rb:334:in run'
/opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in run' /opt/homebrew/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/bin/pod:55:in <top (required)>'
/opt/homebrew/lib/ruby/gems/3.1.0/bin/pod:25:in load' /opt/homebrew/lib/ruby/gems/3.1.0/bin/pod:25:in

'


――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=undefined+method+%60map%27+for+%22Base%22%3AString%0A%0A++++++++value.map+do+%7Cname%2C+requirements%7C%0A+++++++++++++%5E%5E%5E%5E%0ADid+you+mean%3F++tap&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
 - Pod installation failure on some transitive dependencies
   https://github.com/CocoaPods/CocoaPods/issues/3267 [closed] [18 comments]
   14 Nov 2018

 - Is there a way/method to check if the Pods are installed using the `use_frameworks!` flag?
   https://github.com/CocoaPods/CocoaPods/issues/3265 [closed] [7 comments]
   05 Oct 2015

 - CocoaPod install stuck
   https://github.com/CocoaPods/CocoaPods/issues/3266 [closed] [1 comment]
   15 Mar 2015

and 11160 more at:
https://github.com/cocoapods/cocoapods/search?q=undefined%20method%20%60map%27%20for%20%22Base%22%3AString%0A%0A%20%20%20%20%20%20%20%20value.map%20do%20%7Cname%2C%20requirements%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%5E%5E%5E%5E%0ADid%20you%20mean%3F%20%20tap&type=Issues&utf8=✓

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions