I am receiving an error that says
linking against a dylib which is not safe for use in application extensions
I have looked at the other questions that address this, the only one that had answers did not solve my problem, and the rest had received no answers at all.
I tried just building a framework with nothing in it at all, and adding the framework to Linked Frameworks and Libraries in the General tab of my intents app extension, and I still get this message.
When I add code to the framework, I still get the warning message.
Here is my code:
import UIKit
class Widget: NSObject {
}
I am sure to follow instructions at Some APIs Are Unavailable to App Extensions and at Using an Embedded Framework to Share Code but I still get the same warning message. I have read that Apple App Store will not pass my app for review if I have this issue.
If you are linking against a framework you control, select the framework target in your project. In the General tab, look at Deployment Info and you will see a line:
App Extensions: [ ] Allow app extension API only
Select the checkbox, and you should be able to link against this framework.
This checkbox ensures that only calls to APIs that are valid within App Extensions are used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With