ShoutSocial / share_handler

A plugin to facilitate receiving and handling share intents
42 stars 39 forks source link

Xcode warning: linking against a dylib which is not safe for use in application extensions #19

Closed ironcircles closed 1 year ago

ironcircles commented 2 years ago

Great plugin!

I am getting an warning when archiving my project in Xcode when I include ShareExtension.

"linking against a dylib which is not safe for use in application extensions"

Plugin works well so far so I believe is configured correctly.

Thoughts?

JoshJuncker commented 2 years ago

@ironcircles The addition to the pod file for ShareExtension has inherit! :search_paths which I believe links it against all of the other pods/libraries that the 'Runner' app links against. So, even though they aren't used, they are technically linked and therefore show the warning. I think there is a way to not do that, but I was running into issues when trying to remove it and it hasn't seemed to cause any errors that I know of.

I am definitely open to ideas and/or contributions if you or others are more knowledgeable with Xcode and cocoapods.