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
use_frameworks!
target 'Ucc' do
project 'TalkTab/TalkTab.xcodeproj'
target 'InnerTarget' do
inherit! :search_paths
end
end
end
project 'TalkTab/TalkTab.xcodeproj'

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