I want to embed several projects and frameworks in only one workspace.
Here is the structure in Xcode:
Project1 and Project2 are application projects, and BaseFramework is a Cocoa Touch framework.
Now what I want to do is to add a pod dependency to the framework, then link this framework to one of the projects and access the dependency in this project. Here is what I tried with my Podfile:
platform :ios, '12.1' use_frameworks! inhibit_all_warnings! workspace 'BaseWorkspace' def shared_pods pod 'Toast-Swift' end project 'Project1/Project1.xcodeproj' project 'Project2/Project2.xcodeproj' project 'BaseFramework/BaseFramework.xcodeproj' target 'BaseFramework' do project 'BaseFramework/BaseFramework.xcodeproj' shared_pods end Then, I linked the framework to Project2 :
Everything compiles fine, I can import BaseFramework in Project2... but I'm unable to use methods from Toast-Swift. What am I doing wrong here?
Thanks for your help.


Toast-Swiftdirectly fromProject1/Project2instead of trying to access it throughBaseFramework => Toast-Swift. Can you please elaborate it further?