1

I was figuring out how to use Cocoapods and I found this: Pod install displaying error in cocoapods version 1.0.0.beta.1

It says I have to write the following line: target "TargetName" do followed by some things. But I am confused about what is my "TargetName".

For example, what would be the target name in this project:

enter image description here

Or, where can I find my project's "target"? I am using the latest version of Xcode.

Community
  • 1
  • 1
Foobar
  • 7,458
  • 16
  • 81
  • 161

1 Answers1

1

You can find the targets like this:

Click on the SnapKit Tutorial.xcodeproj file:

enter image description here

Then click on the button in the top left:

enter image description here

After that, a tab will appear that will show the names of the targets: enter image description here

Foobar
  • 7,458
  • 16
  • 81
  • 161
  • in my case Pods behaved weirdly (in some cases even refusing to compile the project) when I had spaces in the name. Can anyone confirm? – Antek Mar 14 '18 at 11:51