I have Main Project A and multiple customFramework B,C etc. In that Main Project AI have All Pod and I need to share the same pod to customFramework B,C etc. how should I implement the same pod to multiple customFramework? I don't want to implement a pod for a particular customFramework, I want to use the same pod of the Main Project.
how to implement this? Can anyone help me out? and is it possible?
You can put common pods in outside specific targets in your Podfile:
use_frameworks!
inhibit_all_warnings!
pod 'Firebase' # will be included in all targets
target 'MainProject' do
pod 'Alamofire' # included only in MainProject
end
target 'FrameworkB' do
pod 'PhoneNumberKit' # included only in FrameworkB
end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.