Frederic
Frederic

Reputation: 497

where is the root of the Xcode app project directory located?

I'm following a app tutorial and it says:

"Next, create an empty file in the root of the Xcode app project directory and call the file Podfile. Open it with your favorite text editor and paste the following line in it:"

I'm confused exactly where this is? is it inside my Xcode program? or is it some folder inside my Xcode folder in finder?

Upvotes: 6

Views: 18865

Answers (2)

carlson
carlson

Reputation: 148

You should do it in Terminal. Once in Terminal:

  1. type cd (there is a space after cd)

  2. drag your project to the Terminal window and press return. It points Terminal to your project.

  3. type touch .Podfile, which will create an empty file in your project

  4. type open -a TextEdit .Podfile, which will open the .Podfile file in TextEdit

  5. paste your code in it and then save.

  6. you can check that your Podfile has been created by typing ls -a in Terminal, which will show you all files and folders in your project

This should work.

Upvotes: 2

Lukesivi
Lukesivi

Reputation: 2226

Got it.

Open Terminal, navigate to the directory that has your project. Type it like this:

cd ~/Path/To/Folder/Containing/yourProject

I saved mine on my desktop so it was simple.

Then type: pod init

This creates the pod file.

Then type:

open -a Xcode Podfile

This will open the file so that you can edit it.

Upvotes: 2

Related Questions