saoudrizwan / Disk

Delightful framework for iOS to easily persist structs, images, and data
MIT License
3.08k stars 170 forks source link

Not safe for use in application extensions #46

Closed adrianod1as closed 5 years ago

adrianod1as commented 5 years ago

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

Would it be possible to make it safe?

saoudrizwan commented 5 years ago

It looks like if a module uses certain APIs that an extension doesn't allow, Xcode 10 spits out this warning. There doesn't seem to be any problems with this, but try turning on "Require Only App-Extension-Safe API" in the build settings in Xcode - that should silence the warning.

I will look into a fix for this.

saoudrizwan commented 5 years ago

Thank you for the PR, it was merged Disk works without warning in Extensions starting from version 0.4.0