-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of undeclared identifier 'jsi'; did you mean 'RNSkia::jsi'? #624
Comments
Accepting Xcode's auto-fix to use |
This looks really strange - these lines are working as expected in our examples without the need for updating anything. Could you provide some more information like version of React Native etc? Could you also try to create a new project without any other dependencies and see if this is an issue with some other libraries you're using? |
This also happened to me, using react-native 0.69. Blank project. |
@chrfalch I created a completely blank project for this, RN 0.69. I ran into the issue while creating the repro for #625 You can find the project at https://github.com/andreialecu/rn-perf-gradients. I was only able to run it by applying the Xcode suggested fixes. |
Thanks, @andreialecu. I tested this now, with the following commands resulting in a test using RN 0.69:
This gives me the same error as you are seeing. Doing the same with RN 0.68 works fine (changing 1) to npx react-native init Testing624_068 --version "0.68.0") works fine. Will try to find a quick fix for this! |
Possibly related to #627 |
Tried to install react-native-skia on RN 0.69 as well (yarn add @shopify/react-native-skia; cd ios && pod install), and I got this error The following build commands failed:
CompileC /Users/jon/Library/Developer/Xcode/DerivedData/ProjectName-gyiatrubjzhjbvdbweyubqraqudl/Build/Intermediates.noinde
x/Pods.build/Debug-iphonesimulator/react-native-skia.build/Objects-normal/x86_64/SkiaManager.o /Users/jon/ReactNativeProj/ProjectName/node_modules/@shopify/react-native-skia/ios/RNSkia-iOS/SkiaManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang
.1_0.compiler (in target 'react-native-skia' from project 'Pods')
(1 failure) Opening Xcode I got same error of andreialecu, "Use of undeclared identifier 'jsi'; did you mean 'RNSkia::jsi'?" Using Skia 0.1.133 NOTE: Ok, I was able to run the project and solve the issue as highlighted in "Added correct namespace", just adding Facebook namespace, like this: auto callInvoker = bridge.jsCallInvoker;
facebook::jsi::Runtime* jsRuntime = (facebook::jsi::Runtime*)cxxBridge.runtime; |
We didn't release the fix for it yet, we will do it once we fixed the build for Android as well. |
I have just created a new RN project using:
After adding
react-native-skia
and running apod install
, it seems that the iOS build fails with:I'm unsure if I'm missing something obvious - this is the first time I have tried this library -, but I wanted to report it here in case someone else runs into this.
The text was updated successfully, but these errors were encountered: