Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

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?

like image 691
Frederic Avatar asked Sep 27 '22 06:09

Frederic


2 Answers

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.

like image 110
Lukesivi Avatar answered Sep 30 '22 08:09

Lukesivi


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.

like image 42
carlson Avatar answered Sep 30 '22 07:09

carlson