"pod install" returns "[!] Unable to find a target"

Owen picture Owen · Nov 12, 2014 · Viewed 22.4k times · Source

I just started this tutorial on creating a weather app for ios. Everything was going fine until I typed pod install in the terminal to..well install the pods. The result was:

Analyzing dependencies
[!] Unable to find a target

My "podfile" document and "Pods" folder are in the same folder as my "RHSWeather.xcodeproj".

I'm using Xcode 6.1. My "podfile" document reads as follows:

platform :ios, '7.0'

xcodeproj 'RHSWeather'

pod 'Mantle', '~>1.3.1'
pod 'LBBlurredImage', '~>0.1.0'
pod 'TSMessages', '~>0.9.4'
pod 'ReactiveCocoa', '~>2.1.7'
pod 'HexColors', '~>2.2.1'

I've also changed the "podfile" document to:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

xcodeproj 'RHSWeather'

pod 'Mantle', '~>1.3.1'
pod 'LBBlurredImage', '~>0.1.0'
pod 'TSMessages', '~>0.9.4'
pod 'ReactiveCocoa', '~>2.1.7'
pod 'HexColors', '~>2.2.1'

no luck..yet. I'm almost sure I've done the previous steps correctly.

Answer

YannSteph picture YannSteph · Aug 19, 2015

For me, i changed the name in Project target, pay attention, let it be the same name

Target name in project same in target Name CocoaPods

Targets NameApp Pod NameApp