在共享扩展中使用 Pods 失败

Using Pods in Share Extension fails

在我的项目中,我有一个 shareExtension,我需要为它安装一个 pod

我这样试过:

target 'Wishlists' do

pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Database'
pod 'Hero'
pod 'RevealingSplashView'
pod 'LBTAComponents'
pod 'lottie-ios'
pod 'SwiftEntryKit', '1.2.3'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'GoogleSignIn'
pod 'SkeletonView'
pod 'SwiftSoup'

end


target 'ShareExtension' do 

    pod 'SwiftSoup'

end

我只是尝试添加我需要的 targetpod (SwiftSoup),但我的应用程序现在崩溃了,因为我的主要项目 (Wishlists) 的 pods 没有工作了。有谁知道这个文件有什么问题吗?想不通.. 我已经 运行 pod install 了。

我发现了错误。我不小心从主项目中的 podfile 中删除了 use frameworks!。我再次添加了它,还必须将它添加到 ShareExtension 中,现在它可以正常工作了。