Skip to content
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

Closed
johnbowdenatfacet opened this issue Apr 29, 2021 · 6 comments
Closed

React-Native Build error on Xcode 12.5 #408

johnbowdenatfacet opened this issue Apr 29, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@johnbowdenatfacet
Copy link

johnbowdenatfacet commented Apr 29, 2021

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

@johnbowdenatfacet johnbowdenatfacet added the bug Something isn't working label Apr 29, 2021
@kenarsa
Copy link
Member

kenarsa commented Apr 29, 2021

@johnbowdenatfacet what version of Xcode are you using?

@johnbowdenatfacet
Copy link
Author

@kenarsa Version 12.5 (12E262)

@kenarsa
Copy link
Member

kenarsa commented Apr 29, 2021

Thanks! We will try to reproduce and will circle back

@johnbowdenatfacet
Copy link
Author

johnbowdenatfacet commented Apr 30, 2021

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

@kenarsa kenarsa changed the title Porcupine Issue: React native error React-Native Build error on Xcode 12.5 Apr 30, 2021
@kenarsa
Copy link
Member

kenarsa commented Apr 30, 2021

@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.

@laves
Copy link
Member

laves commented May 3, 2021

@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.

@laves laves closed this as completed May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants