-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Warning that may cause rejection on Apple's app review appears when using lib on an app extension #119
Comments
Reading your code a bit more, I believe you use |
@adrianodiasx93: Thanks for letting me know this. I didn't know that using |
This's fixed in |
@ninjaprox Some way I can achieve the same behavior of the subpod NVActivityIndicatorView/AppExtension using Carthage instead? I don't use Cocoa Pods in my project. |
Also, is there some drawback in using NVActivityIndicatorView/AppExtension? Will I be able to use NVActivityIndicatorViewable? |
@adrianodiasx93: I think it's possible by creating a branch with an appropriate target for Carthage, then point to that branch in Sent with GitHawk |
I am using
NVActivityIndicatorView
on a Today Extension, and I get the following warning:ld: warning: linking against a dylib which is not safe for use in application extensions: /{path}/NVActivityIndicatorView
It seems such warning may cause rejection on Apple's app review. In Apple Documentation https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html:
In this lib's case, I believe this happens because of the use of
UIApplication
, which is not available for app extensions.I did some research and according to some github/stackoverflow users, it can be fixed by changing the "Require Only App-Extension-Safe API" build setting to Yes on the framework target.
However, if this doesn't work, it may be necessary to remove the use of APIs unavailable to App Extensions.
Could you please look into it? Soon I will be submitting the app to App Store, and I would like to continue using your lib.
The text was updated successfully, but these errors were encountered: