google-maps-ios-utils icon indicating copy to clipboard operation
google-maps-ios-utils copied to clipboard

GoogleMapsUtils module build incompatible with latest swift version

Open VincentDurandChewbi opened this issue 4 years ago • 5 comments

Environment details

  1. Mac os Big Sur Version 11.4
  2. XCode version Version 13.0 (13A233)
  3. GoogleMapsUtils version 4.1.0

Steps to reproduce

  1. Add GoogleMapsUtils in my SPM Project (next major version)
  2. Build app
  3. Error hapend (cf screenCap below)

MicrosoftTeams-image (43)

VincentDurandChewbi avatar Jan 06 '22 15:01 VincentDurandChewbi

The library is built with library evolution support (BUILD_LIBRARY_FOR_DISTRIBUTION is set to YES) so it should work on the latest version of Xcode/Swift. I did test this on Xcode 13 and was able to get it to work. Perhaps a clean build might do the trick?

arriolac avatar Jan 06 '22 17:01 arriolac

Same problem with Version 13.2.1 (13C100)

It might work for the who updated Xcode from App Store for some time (I assume some old compilers might exist on local machine). But if you download latest Xcode build from App Store or Apple Developer website, the only option you have is latest compiler. GoogleMapsUtils version 4.1.0 is not compiled on Xcode 13.2.1 (13C100)

dmi3j avatar Jan 30 '22 11:01 dmi3j

Having the same issue with Xcode 13.2.1

edgarclerigo avatar Feb 02 '22 13:02 edgarclerigo

Will take a look

arriolac avatar Feb 02 '22 15:02 arriolac

I'm having the same issue using SPM on:

  • Xcode Version 15.0.1 (15A507)
  • macOS Sonoma 14.0 (23A344)
  • GoogleMapUtils 4.2.2
Failed to build module 'GoogleMapsUtils'; this SDK is not supported by the compiler 
(the SDK is built with 'Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)', 
while this compiler is 'Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)'). 
Please select a toolchain which matches the SDK.

I cleaned the project and packages, deleted deriveddata, started again... I think this should work, right? I see that BUILD_LIBRARY_FOR_DISTRIBUTION is true in the project. What am I missing?

lluisgerard avatar Dec 06 '23 14:12 lluisgerard