google-maps-ios-utils: SPM is not available on Xcode 12.2 RC (Swift 5.3.1)

Environment details

  1. Specify the API at the beginning of the title (for example, “Places: …”)
  2. OS type and version: macOS 11.0.1 Beta (20B5022a)
  3. Library version and other environment information: Xcode 12.2 beta 4 (12B5044c)

Steps to reproduce

  1. Install Xcode 12.2 Release Candidate
  2. Build project with SPM-dependency on Google Maps Utils

Compile Error

Failed to build module 'GoogleMapsUtils' from its module interface; 
the compiler that produced it, 
'Apple Swift version 5.3 (swiftlang-1200.0.28.1 clang-1200.0.30.1)', 
may have used features that aren't supported by this compiler, 
'Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)'

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25 (10 by maintainers)

Most upvoted comments

@arriolac my bad, sorry, forgot to add it to a new fresh project. It works. Thanks

@arriolac sure I can. Here we go: Mac OS: 11.4 Xcode: 12.5.1 Steps to reproduce:

  1. XCode -> New -> Project -> App -> Interface: Storyboard, Life Cycle: UIKit App Delegate, Language: Swift
  2. Add new package dependency
  3. Search by google maps utils
  4. Add it to the project
  5. Open ViewController.swift class
  6. Add import GoogleMapsUtils
  7. Build

At this point, I’m able to see the compiler error Failed to build module 'GoogleMapsUtils' from its module interface; the compiler that produced it, 'Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)'

thx in advance

Interesting that 3.3.0 works. Nothing changed in how we generate the .xcframework between 3.3.0 and later versions. Will look into this again.

I tried it on another mac and couldn’t reproduce either. Must be something with my environment, sorry. And thank you. ☺️