smartystreets / smartystreets-ios-sdk

The official client libraries for accessing SmartyStreets APIs from iOS
https://smartystreets.com/docs/sdk/ios
Apache License 2.0
7 stars 7 forks source link

Build error on M1 Mac #26

Closed jeffdgr8 closed 1 year ago

jeffdgr8 commented 2 years ago

Building an iOS app with the SmartyStreets SDK on an M1 Mac with Xcode 13 results in this build error:

Could not find module 'SmartyStreets' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator, at: /.../Build/Products/Debug-iphonesimulator/SmartyStreets.swiftmodule

jeffdgr8 commented 2 years ago

I was able to resolve this by removing under the Excluded Architectures project setting the Any iOS Simulator - arm64 key/values. This was required by another legacy .a library to compile, which I had to remove. The reason the SmartyStreets SDK seems to have this issue, where other libraries didn't, is because of Swift Package Manager (other dependencies are CocoaPods).

jcrob2 commented 1 year ago

Hi @jeffdgr8. We're glad you figured it out!