Adding pods to nested targets in iOS Xcode

I had this confusion on how to add a dependency to a nested target via Cocoapods. This may helps someone. Here is how I did it.

# Uncomment the next line to define a global platform for your project
# platform :ios, ‘9.0’
workspace ‘MainTarget’target ‘MainTarget’ do
# Comment the next line if you don’t want to use dynamic frameworks
target 'Ucc' do
project 'TalkTab/TalkTab.xcodeproj'
target 'InnerTarget' do
inherit! :search_paths
project 'TalkTab/TalkTab.xcodeproj'

If you enjoyed reading this post, please share and give some claps so others can find it 👏👏👏👏👏 !!!!

You can follow me on Medium for fresh articles. Also, connect with me on LinkedIn.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store