google-maps-ios-utils
google-maps-ios-utils copied to clipboard
Podspec: invalid EXCLUDE_ARCHS value
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
- API: Cocoapods -based integration
- MacOS on M1 mac
- 4.0.0; 3.x.x
Steps to reproduce
- Add to podfile
pod 'Google-Maps-iOS-Utils', '4.0.0'
-
pod install
- Observe: all generated xcconfig files in Pods folder contain
EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64
- Expected: there are not
EXCLUDED_ARCHS
injected in any xcconfig file
Thanks for reporting. Yes, the podspec should be updated and a new version should be released to remove arm64 exclusion.
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.
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.
The CocoaPods version of Google Maps 7.3.0 now uses XCFrameworks, so the EXCLUDED_ARCHS
could be removed.