Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with app extensions as a framework #693

Closed
ghost opened this issue Jan 21, 2016 · 3 comments
Closed

Not compatible with app extensions as a framework #693

ghost opened this issue Jan 21, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 21, 2016

We are using the library from an app extension, but there's a caveat with using a framework from an app extension, as explained in this Apple link:

https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html

In the section "Using an Embedded Framework to Share Code".

To sum up, in order to compile the app extension without the warning "“linking against dylib not safe for use in application extensions”, which would make the app review fail, we need to be able to set the flag "APPLICATION_EXTENSION_API_ONLY" to YES. That is telling whoever is using the framework that the framework is using extension safe APIs.

So the change is just setting the flag to YES in the project settings, because the library is already not using any unsafe APIs. This makes the library available to use from a Today Widget for example which is quite great since it's such a simple change.

@ghost
Copy link
Author

ghost commented Jan 25, 2016

Pull request that fixes this issue here: #708

@danielgindi
Copy link
Collaborator

Merged :-)

@ghost
Copy link
Author

ghost commented Jan 25, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant