I´m having a linking error when I try to build on ios, I understand that there is a missing framework, but I don´t know which, this is the error
Undefined symbols for architecture arm64:
"_showSocialSharing", referenced from:
_ShareImage_showSocialSharing_m3876365518 in Bulk_Assembly-CSharp_1.o
(maybe you meant: _ShareImage_showSocialSharing_m3876365518)
"_showAlertMessage", referenced from:
_ShareImage_showAlertMessage_m2070801137 in Bulk_Assembly-CSharp_1.o
(maybe you meant: _ShareImage_showAlertMessage_m2070801137)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I was having the exact same errors, while searching for a solution I found this post. I have now managed to fix this issue. My situation was the following:
I was having several errors with some Google’s plugins, so I removed them from my project, downloaded and imported them again, that was when I run into the same error as you. What happened was that I deleted the Plugins folder, and in there was also files for the Unity Native Sharing Plugin. The solution was just to import it again and that was it, build successful.
I don’t know if you are using this plugin, but as the error log is the same I thought I’d share my solution.
Awesome thank you - this caused me 2 days worth of lost time having tried almost everything! First time I have had this error so assumed at first it was Unity 5.6 so tried 5.5, 5.4 exports into Xcode but still getting same errors.
Downloaded the native plugin from github and copied the relevant files into the Plugins folder - hey presto, done!