ajith-ab / react-native-receive-sharing-intent

A React Native plugin that enables React Native apps to receive sharing photos, videos, text, urls or any other file types from another app
MIT License
297 stars 108 forks source link

Undefined symbol: Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int) #68

Closed azesmway closed 3 years ago

azesmway commented 3 years ago

Xcode Version 12.5 (12E262)

the error happens at this point: let selectorOpenURL = sel_registerName("openURL:")

can anyone know the solution?

angeria commented 3 years ago

How did you solve this?

azesmway commented 3 years ago

I tried to build the release and it was assembled, there was a problem in the debug mode, I set all the settings for the sharing as in the release and in the debug it also worked

teneeto commented 3 years ago

@azesmway I'm also having this issue. Please can you be a bit more explicit on how you got this resolved?

kaiherrman commented 3 years ago

Also having this problem with Xcode version 12.5

azesmway commented 3 years ago

@azesmway I'm also having this issue. Please can you be a bit more explicit on how you got this resolved?

Hi When I created a new share extension, the build settings for it had different debug and release settings. I have set all the settings as for the release. The error is gone and is going to be fine and working

image
matamicen commented 3 years ago

I have the same error with another SHARE library, it works on RELEASE but don't compile in debug ... I tried @azesmway approach to keep the debug parameters the same as release but without success. Any help will be appreciated.

Thanks.

iamitkhatkar commented 3 years ago

if someone still facing the issue then you can remove the $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) from the share target -> build settings -> library search path.

referenced from https://stackoverflow.com/a/67405812/6815914

prasanthvenkatachalam commented 3 years ago

Saved my day, Thanks

Jonovono commented 3 years ago

@iamitkhatkar a god