linking against a dylib which is not safe for use in application extensions

I am getting a build time warning which says: "linking against a dylib which is not safe for use in application extensions" in my intent app extension when I include my custom framework. I have eliminated almost all code in my custom framework.


Here is the code. Just one class:


import Foundation

public class Widget: NSObject {
    
    public var one: Int = 1
    
}


In the Build Phases section of the framework target, I set Copy Files destination as Framework like documentation instructs in App Extension Programming Guide: Handling Common Scenarios: Using an Embedded Framework to Share Code: 'When configuring your Xcode project, you must choose “Frameworks” as the destination for your embedded framework in the Copy Files build phase.'


Anyone have any experience with this problem?


linking against a dylib which is not safe for use in application extensions
 
 
Q