I am trying to use Alamofire with the share extension of an iOS application, and I wanted to know if there is a flag that will get rid of this error.
(null): Binding to dylib is not safe for use in application extensions: Build / Products / Debug-iphoneos / Alamofire.framework / Alamofire
AFNetworking has a way to do it ( https://github.com/AFNetworking/AFNetworking/issues/2321 ). Is there something similar for Alamofire?
Decision. . If Alamofire is imported as a framework, you can simply select the Framework target, and on the General tab, select the "Allow only application extension" checkbox.
source share