我使用依赖Alamofire的AirWatch SDK。 我还依赖alamfire,因为我在其上使用Moya。
自然地,两个alamofire被链接起来,我得到
objc [16469]:在这两种方法中都实现了_TtC9Alamofire26NetworkReachabilityManager类 /Users/agl/Library/Developer/CoreSimulator/Devices/6148E64B-4423-459B-BACF-5946C6B3495E/data/Containers/Bundle/Application/5F194136-4EB7-43E9-B03D-03D4445748BD/my.app/Frameworks/AWSDK.framework / AWSDK (0x106992930)和 /Users/agl/Library/Developer/CoreSimulator/Devices/6148E64B-4423-459B-BACF-5946C6B3495E/data/Containers/Bundle/Application/5F194136-4EB7-43E9-B03D-03D4445748BD/my.app/Frameworks/Alamofire.framework / Alamofire (0x1045622a8)。将使用两者之一。哪个是未定义的。
我有办法引入moya pod并利用AirWatch捆绑的alamofire吗?
Podfile看起来像这样:
platform :ios, '12.0'
workspace 'exec.xcworkspace'
def shared_pods
pod 'Moya', '~> 14.0'
pod 'SwiftyJSON'
use_frameworks!
end
target 'SWithExtensions' do
shared_pods
use_frameworks!
end
target 'exec' do
shared_pods
use_frameworks!
pod 'Firebase/Messaging'
end