EddyVerbruggen / SocialSharing-PhoneGap-Plugin

👨‍❤️‍💋‍👨 Cordova plugin to share text, a file (image/PDF/..), or a URL (or all three) via the native sharing widget
MIT License
1.78k stars 906 forks source link

[iOS] compilation fails when using with share ext #1131

Closed HarelM closed 3 years ago

HarelM commented 3 years ago

When adding this plugin compilation on iOS stops working with the following expections:

SocialSharing.m:688:40: 'openURL:' is unavailable: not available on iOS (App Extension)

I'm using latest cordova (10.0) and cordova-ios 6.0.2-dev. Might be a collision with other plugin, not sure. Code before adding this plugin can be found here: https://github.com/IsraelHikingMap/Site/tree/master/IsraelHiking.Web

HarelM commented 3 years ago

I'm guessing that this is related to the fact that I have open-with plugin in my project which creates a share extension which causes this compilation error I think. I have no clue how to fix that though. What do I need to configure in order to make the shareExt ignore the code this plugin brings?

HarelM commented 3 years ago

Nope, sorry, probably bad environment state... This works as expected.