GaloyMoney / react-native-geetest-module

A React Native GeeTest module for gt3 that can protect server endpoints.
MIT License
5 stars 4 forks source link

failed build on IOS Simulator #7

Open sergeymild opened 12 months ago

sergeymild commented 12 months ago

Hello, nice library but i have a problem i cant run it on IOS Simulator on Macbook pro M1 pro processor here is an error:

❌  Undefined symbols for architecture x86_64
> Symbol: _OBJC_CLASS_$_RCTAppDelegate
> Referenced from: _OBJC_CLASS_$_AppDelegate in AppDelegate.o

❌  ld: symbol(s) not found for architecture x86_64

❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor 

node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Error: Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening tt.xcworkspace.".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v18.16.0
nicolasburtey commented 12 months ago

this library would need to be updated to work with a M1. PR is welcome.