AgoraIO / AgoraRTM_iOS

Agora's Real-time Messaging SDK Swift Package for iOS 📦
MIT License
4 stars 4 forks source link

Can't build for iOS Simulator on M1 #6

Closed margad closed 1 year ago

margad commented 1 year ago

Hello, I still can't build for iOS Simulator on M1 with the latest 1.4.10 version. Tried adding arm64 to excluded architectures on xcode project and podfile. Getting the error all the same. Works fine on physical devices.

iOS 15.5, XCode 13.4.1

ld: building for iOS Simulator, but linking in dylib built for iOS, file '/Users/user/app/ios/Pods/AgoraRtm_iOS/AgoraRtmKit.framework/AgoraRtmKit' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

maxxfrazer commented 1 year ago

@margad Use the Swift package instead, it contains the right architectures for M1 Mac.

This repository is just for the Swift Package; if you need support for the CocoaPods install you'll need to open a support ticket on the Agora console so it gets to the right team.

maxxfrazer commented 1 year ago

CocoaPods had a release last month to 1.5.0 which fixes this - it uses an XCFramework with the correct architectures. I just updated this repo to also have that 1.5.0 version, but if you want to keep using CocoaPods please update to 1.5.0 and the M1 Mac will work as normal.