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

xcode compilation error: Showing Recent Errors Only Undefined symbol: Swift._ArrayBuffer._copyContents(initializing: ... #149

Open
Larens94 opened this issue Sep 2, 2021 · 6 comments

Comments

@Larens94
Copy link

Larens94 commented Sep 2, 2021

Showing Recent Errors Only Undefined symbol: Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer) -> (Swift.IndexingIterator<Swift._ArrayBuffer>, Swift.Int)
Schermata 2021-09-02 alle 14 20 50

@Jonovono
Copy link

Jonovono commented Sep 3, 2021

I am getting this too :(

@jayeshkarma100
Copy link

I also had this issue and asked about it on the Swift forums. The cause is trying to link against an older Swift runtime while targeting a newer version of the OS.
You should be able to just remove those LIBRARY_SEARCH_PATH entries entirely (or just leave $(inherited)) and that will fix the problem. This is a bug in the ReactNative template for iOS.
As mentioned in the above Swift forums thread:
You shouldn't need to add the toolchain library paths to LIBRARY_SEARCH_PATHS yourself, because Xcode will automatically include those libraries if your minimum deployment target is old enough to need them.

@jayeshkarma100
Copy link

main issue with Xcode12.5 just a simple thing download Xcode 12.0.1 and work on it

@anatooly
Copy link

anatooly commented Oct 1, 2021

@Larens94 check this #153 (comment)

@ghost
Copy link

ghost commented Oct 12, 2021

I also had this issue and asked about it on the Swift forums. The cause is trying to link against an older Swift runtime while targeting a newer version of the OS.
You should be able to just remove those LIBRARY_SEARCH_PATH entries entirely (or just leave $(inherited)) and that will fix the problem. This is a bug in the ReactNative template for iOS.
As mentioned in the above Swift forums thread:
You shouldn't need to add the toolchain library paths to LIBRARY_SEARCH_PATHS yourself, because Xcode will automatically include those libraries if your minimum deployment target is old enough to need them.

@jayeskarma100 How does one go about removing the LIBRARY_SEARCH_PATHS as you mentioned?

@viktorRot
Copy link

Here it is explained how to modify LIBRARY_SEARCH_PATHS: DataDog/dd-sdk-reactnative#41 (comment)

Worked great for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants