I am trying to recreate the bindings for the cocoapod FBSDKShareKit.
I executed:
sharpie pod init ios FBSDKShareKit
sharpie pod bind
The error i am getting:
While building module 'FBSDKShareKit' imported from /private/var/folders/something.h:1:
In file included from <module-includes>:1:
In file included from /Users/something/ShareKit/build/Release-maccatalyst/FBSDKShareKit/FBSDKShareKit.framework/Headers/FBSDKShareKit-umbrella.h:13:
In file included from /Users/something/ShareKit/build/Release-maccatalyst/FBSDKShareKit/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h:30:
/Users/something/ShareKit/build/Release-maccatalyst/FBSDKShareKit/FBSDKShareKit.framework/Headers/FBSDKCoreKitImport.h:29:10: fatal error:
'FBSDKCoreKit/FBSDKCoreKit.h' file not found
#import <FBSDKCoreKit/FBSDKCoreKit.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/something.h:1:9: fatal error: could not build module 'FBSDKShareKit'
@import FBSDKShareKit;
~~~~~~~^~~~~~~~~~~~~
Binding...
2 errors generated.
Error while processing /private/var/folders/something.h.
Done. Exiting with error code 1.
error: Clang failed to parse input and exited with code 1
Seems like some reference is not resolved/copied properly. Google told me nothing about this issue (or i asked the wrong questions).
Have someone seen this error in the past, or even know a solution?
Found a workaround with inspiration by dalexsoto (Discord DotNetEvolution):
sudo gem uninstall cocoapods && sudo gem install cocoapods -v 1.5.0
sharpie pod init ios FBSDKShareKit
sharpie pod bind
(fails)
cp -r ./build/Release-maccatalyst/FBSDKCoreKit/* ./build/Release-maccatalyst/FBSDKShareKit/
sharpie pod bind