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

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

azesmway opened this issue ยท 9 comments

Xcode Version 12.5 (12E262)

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

can anyone know the solution?

How did you solve this?

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

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

Also having this problem with Xcode version 12.5

@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

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.

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

Saved my day, Thanks