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.

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
# 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 👏👏👏👏👏 !!!!

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