Apple Mach-O Linker (ld)
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)
Answer by EduardoLauer · Dec 24, 2016 at 11:39 PM
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.
Answer by rburns50 · Apr 14, 2017 at 07:46 PM
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!
Nice one thank you - I have some hair left now!
Answer by KaushalPatel · Jan 31, 2018 at 11:54 AM
Solved this problem. I think missing share file in your xcode project. Working in my Xcode project. Open below link.
https://www.dropbox.com/sh/j1mb68rk5rabirs/AABXmPmUuRDjoglNORmbEgmpa?dl=0
Download both files and add in your Xcode project at Libraries/Plugins/iOS.