flutter_bluetooth_basic
flutter_bluetooth_basic copied to clipboard
iOS build error - ios/libGSDK.a for architecture arm64
@andrey-ushakov, When building with 0.1.7 version, got the following error:
ld: in /Users/user1/Code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_bluetooth_basic-0.1.7/ios/libGSDK.a(Utils.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/user1/Code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_bluetooth_basic-0.1.7/ios/libGSDK.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using Mac M1 to build.
I am getting same error
for MAC M1 Chip, you add value arm64 inside Excluded Architecture. First navigate to Build Settings, section Architecture , add value like this. Hope answer your question.
ref: https://stackoverflow.com/questions/63607158/xcode-building-for-ios-simulator-but-linking-in-an-object-file-built-for-ios-f
not working here.... same error