Hi there,
I’m able to successfully run a simple ReactNative app with Babylon on an iPhone, using the generated xcode project.
However, when I use the react native cli:
npx react-native run-ios
I get the following error:
ld: in /Users/olivier/Documents/BabylonReactNativeApp/node_modules/@babylonjs/react-native/ios/libs/libBabylonNative.a(BabylonNative.o), building for iOS Simulator, but linking in object file built for iOS, file ‘/Users/olivier/Documents/BabylonReactNativeApp/node_modules/@babylonjs/react-native/ios/libs/libBabylonNative.a’ for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
May be it’s not supported to build for the simulator?
Is this any update on this? I am facing the same problem when I trying to use an M1 for compiling.
I got:
ld: in /Users/BabylonReactNative/node_modules/@babylonjs/react-native-iosandroid-0-70/ios/libs/libBabylonNative.a(BabylonNative.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/BabylonReactNative/node_modules/@babylonjs/react-native-iosandroid-0-70/ios/libs/libBabylonNative.a' for architecture arm64