AliSoftware/Reusable

Using app extension only API

igorkulman opened this issue ยท 9 comments

Using the library not only in the "main" app but also in a Share extension, I am getting a warning

inking against a dylib which is not safe for use in application extensions: Carthage/Build/iOS/Reusable.framework/Reusable

The code probably only uses APIs that are "extension-safe", so it would be nice to check the box in the project settings to make the warning disappear.

Ah, as I don't use Carthage but Cocoapods I never thought of that; good catch!

Would you be willing to submit a PR? That way as you are one using it with Carthage and app extension I guess you'd be better suited to test it and know the proper changes to make ๐Ÿ˜‰

Thanks!

Strange, I see this warning in last version of Reusable as well ๐Ÿ˜ž

linking against a dylib which is not safe for use in application extensions:
/.../Carthage/Build/iOS/Reusable.framework/Reusable

You are right. It worked in my fork when I did the PR but still shows the warning here. I must have forgotten to commit something. Will look into it again.

@marekpridal try github "igorkulman/Reusable" "master", works fine for me in a clean project. If it also works for you, I will create a new PR.

@igorkulman I will test it during weekend, unfortunately I cannot try it sooner ๐Ÿ˜ž

Looks like OK! Thanks a lot! ๐Ÿ‘

@igorkulman Did you figure out the difference between your fork and my repo? Would love a PR fixing that ๐Ÿ˜‰

Yesterday I have changed source in my Cartfile from github "igorkulman/Reusable" "master" to github AliSoftware/Reusable and warning appears again ๐Ÿ˜ž . I have also tried to clean project and remove derivated data but it doesn't help ๐Ÿ˜ž

:-1: linking against a dylib which is not safe for use in application extensions: /.../Carthage/Build/iOS/Reusable.framework/Reusable

Super strange. Is there still a diff between the two that we might have missed?

Also, not sure how Carthage manages its cache, maybe it's using a cached version of my repo and master branch instead of cloning it from the latest master? Would be interesting to check if there's a way to clear Carthage's cache to be sure