-
Notifications
You must be signed in to change notification settings - Fork 496
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
React-Native Build error on Xcode 12.5 #408
Comments
@johnbowdenatfacet what version of Xcode are you using? |
@kenarsa Version 12.5 (12E262) |
Thanks! We will try to reproduce and will circle back |
Have removed the swift-5 reference and now builds. Though in my sample app, I'm now running into an error with PvRhino after several successfull voice commands. I can provide an invite to the repo, just need a github user. Also happening after rolling back to 12.4 xcode |
@johnbowdenatfacet I have changed the title of the issue to reflect that the initial issue reported is related to Xcode 12.5. We will only track that in this thread. If you face a different problem please open a separate GitHub issue. Please be sure to have: (1) descriptive and accurate title (2) code snippets and explanation for us to be able to help (3) if (2) doesn't work we sometimes ask for a GitHub repo share but this should be used as a last resort and we can only accommodate this from time to time as it is very time-consuming. |
@johnbowdenatfacet it seems that this is not an issue with our react native binding, but an issue with react native itself. XCode 12.5 has broken several things in react native, so for now there are several workarounds to deal with them until a new version of react native is released. Reference this thread on React Native's GitHub for the applicable workarounds. |
Expected behaviour
Build and run successfully after latest xcode version update
Actual behaviour
Build fails with error:
Undefined symbols for architecture x86_64: "Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int)", referenced from: generic specialization <serialized, Swift._ArrayBuffer<Swift.Int8>> of Swift._copyCollectionToContiguousArray<A where A: Swift.Collection>(A) -> Swift.ContiguousArray<A.Element> in libporcupine-react-native.a(Porcupine-ea8bad61783061f627b13c6a90d62901b47c3925d5e72941ede7605540e5281b.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Steps to reproduce the behaviour
react-native init testerror
yarn add @picovoice/react-native-voice-processor
yarn add @picovoice/porcupine-react-native
yarn add @picovoice/rhino-react-native
yarn add @picovoice/picovoice-react-native
can provide private repo test repo if necessary
The text was updated successfully, but these errors were encountered: