I bought the new MacBook Air m1 and install Xcode 12 on that and I try to run my React Native project on that but I could run normally on intel base MacBook (my old macbook).
I face with some error in my new MacBook.
I see this errors:
1- building for iOS Simulator, but linking in object file built for iOS, file '/Users/hosein/Desktop/sporty-app/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64
I fixed this with adding the arm64 on Excluded Architectures
2- module map file '/Users/hosein/Library/Developer/Xcode/DerivedData/Sporty-ficshtjjzxcsgkaohfxowaxpyivr/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found
I get number 2 when I want run app on simulator but when I run on real device I don't have any errors.
How can I fix this error (number 2)?
Note: I am running the xxxx.xcworkspace and my target iOS version in pod and general in Xcode is 10.0