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

Podspec: invalid EXCLUDE_ARCHS value

Open gavrix opened this issue 3 years ago • 3 comments

This is an issue with Podspec defined in this repository.

When the library is integrated using cocoapods, these lines make cocoapods insert in every Pods-Project.xcconfig this line:

EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64

which was used as an intermediate fix for XCode12 building for simulator but prevents building for arm-based simulator on M1 macs with XCode13.

Environment details

  1. API: Cocoapods -based integration
  2. MacOS on M1 mac
  3. 4.0.0; 3.x.x

Steps to reproduce

  1. Add to podfile
pod 'Google-Maps-iOS-Utils', '4.0.0'
  1. pod install
  2. Observe: all generated xcconfig files in Pods folder contain
EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64
  1. Expected: there are not EXCLUDED_ARCHS injected in any xcconfig file

gavrix avatar Jan 04 '22 15:01 gavrix

Thanks for reporting. Yes, the podspec should be updated and a new version should be released to remove arm64 exclusion.

arriolac avatar Jan 04 '22 17:01 arriolac

Removing the EXCLUDED_ARCHS from the .podspec is actually blocked by the GoogleMaps pod which does not yet support XCFrameworks. If you are developing on an M1 machine, I recommend using either Carthage or SPM to install this utility library followed by installing the .xcframework version of the Maps SDK.

arriolac avatar Jan 04 '22 21:01 arriolac

Thank you for looking into this! This is actually a transient dependency of the other dependency we use in RN environment. I'll patch that dependency and use a local podspec for Google-maps-ios-utils instead. It's all hacks and patches, but will work in the meantime.

gavrix avatar Jan 05 '22 13:01 gavrix

The CocoaPods version of Google Maps 7.3.0 now uses XCFrameworks, so the EXCLUDED_ARCHS could be removed.

vincentisambart avatar Jan 13 '23 05:01 vincentisambart