codeQ Blog

Chào mừng mọi người đã đến với codeQ Blog

Cách sửa lỗi ld: building for iOS Simulator,... for architecture arm64 clang: error: linker command failed with exit code 1

Đăng vào ngày No date
Cover Image for Cách sửa lỗi ld: building for iOS Simulator,... for architecture arm64 clang: error: linker command failed with exit code 1

ld: building for iOS Simulator, but linking in object file built for iOS, file '/Users/<username>/<project>/ios/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/GoogleMaps' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Nếu lỗi ở trên xuất hiện khi bạn sử dụng react-native-maps bạn vào Xcode > Build Settings > Architectures > Excluded Architectures > Add "arm64"

Đây là 1 giải pháp ngắn hạn. Bạn có thể tham khảo thêm cách khác tại đây fix architecture arm64