flutter_bluetooth_basic icon indicating copy to clipboard operation
flutter_bluetooth_basic copied to clipboard

iOS build error - ios/libGSDK.a for architecture arm64

Open jobypthomas opened this issue 2 years ago • 3 comments

@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.

jobypthomas avatar Oct 10 '21 20:10 jobypthomas

I am getting same error

ziakhan110 avatar Jan 29 '22 08:01 ziakhan110

for MAC M1 Chip, you add value arm64 inside Excluded Architecture. First navigate to Build Settings, section Architecture , add value like this. image 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

rezins avatar May 09 '22 04:05 rezins

not working here.... same error

fabioselau077 avatar Jan 22 '23 03:01 fabioselau077