Xcode error: building for iOS Simulator, but linking in object file built for iOS

Viewed 1294

Never had a lot of problems until the time to buy Macbook Air M1. Just yesterday my app was build without any error in Xcode 12.4. I did not make any special changes and today build failed:

/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please can you help me, how to solve it?

1 Answers

Looks like a missing Arm64 simulator slice in the OpenSSL-Universal CocoaPods distribution.

Make sure that you're using the latest version with pod update and contact the OpenSSL-Universal if there's still an issue.

Related