pod-template icon indicating copy to clipboard operation
pod-template copied to clipboard

No `Podfile' found in the project directory on `pod install` step

Open thebluepotato opened this issue 8 years ago • 22 comments

I'm trying to create my own Pod using pod lib create Test. I've tried multiple times with various answers to each questions and every time at the Running pod install on your new library. step, Terminal outputs the following error :

[!] No `Podfile' found in the project directory.

 Ace! you're ready to go!
 We will start you off by opening your project in Xcode
  open 'TestObjC/Example/TestObjC.xcworkspace'
The file /Users/xxx/Documents/Projects/TestObjC/Example/TestObjC.xcworkspace does not exist.

I'm using macOS Sierra (10.12.1 beta 1), Xcode 8 GM, CocoaPods Stack :

cocoapods (1.1.0.rc.2)
cocoapods-clean (0.0.1)
cocoapods-core (1.1.0.rc.2)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.1)
cocoapods-open (0.0.8)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-superdeintegrate (0.0.1)
cocoapods-trunk (1.0.0)
cocoapods-try (1.1.0)

thebluepotato avatar Sep 26 '16 10:09 thebluepotato

Ye same issues here

roblav96 avatar Oct 04 '16 14:10 roblav96

Same story as this issue I'm afraid: https://github.com/CocoaPods/CocoaPods/issues/5997 - Xcode 8 broke directory changing, and until we get a stable release out for that this will be broken alas.

orta avatar Oct 04 '16 14:10 orta

In the /Example folder just run pod install and the alias will start working.

roblav96 avatar Oct 04 '16 15:10 roblav96

@orta Although I couldn't get anything to boot up on my screen. It would build success but no deploy to device or simulator.

roblav96 avatar Oct 04 '16 15:10 roblav96

It's scheme may be a framework instead of the sim?

orta avatar Oct 04 '16 16:10 orta

@orta I was trying to build the example project. idk, this is my first time trying to make a pod so I'm no expert at this. lol

roblav96 avatar Oct 04 '16 16:10 roblav96

@roblav96 Your workaround (pod install in /Example) worked around the issue for me and generated the .xcworkspace. Thanks!

eladnava avatar Oct 10 '16 09:10 eladnava

+1

omid-ghl avatar Dec 15 '19 13:12 omid-ghl

cd ios then pod install --repo-update

willardjansen avatar Apr 06 '21 18:04 willardjansen

sudo gem install cocoapods

HayfaAbusnina avatar Nov 18 '21 20:11 HayfaAbusnina

In the /Example folder just run pod install and the alias will start working.

where's the /Example?

carlaaclaramunt avatar May 02 '22 09:05 carlaaclaramunt

i have flutter project and while i run on mac i get the same error while using pod install command. can somebody help me.

Dewas-Rai avatar Oct 13 '22 09:10 Dewas-Rai

in your /ios folder, run this command: pod init pod install

muhammadmateen027 avatar Nov 08 '22 14:11 muhammadmateen027

iOS folder. which ios folder? I don't have an ios folder in my project.

LJ-Mic avatar Jan 30 '23 09:01 LJ-Mic

iOS folder. which ios folder? I don't have an ios folder in my project.

Would you mind sharing the screenshot of your project directory?

muhammadmateen027 avatar Jan 30 '23 09:01 muhammadmateen027

I have created a test project and would like to add Google AdMob, for example. So I go to my project folder.

michael@Mac-mini-von-Michael GoogleAdMob % pod init michael@Mac-mini-von-Michael GoogleAdMob % pod install [!] No "Podfile" found in the project directory.

The Podfile is there quite normally and it doesn't matter whether I insert the pod or not, the same error message always comes up.

LJ-Mic avatar Jan 30 '23 10:01 LJ-Mic

Please run these commands in your project directory: cd ios pod init pod install

muhammadmateen027 avatar Jan 30 '23 10:01 muhammadmateen027

I don't have an iOS folder in my project!

LJ-Mic avatar Jan 30 '23 11:01 LJ-Mic

Pod files can be installed on Windows ?? Please Tell me Anyone?

sadman-ichha avatar Feb 25 '23 03:02 sadman-ichha

No it cannot. Pod helps provide dependencies when xcode runs an ios application. And xcode will not work on windows.

williammongou avatar Apr 08 '23 13:04 williammongou

in your /ios folder, run this command: pod init pod install

Thank you for solving my problem!

FeilyZhang avatar Jun 05 '23 10:06 FeilyZhang

getting eror "No Xcode project found, please specify one"

and i create the package using the command provided in the flutter official docs

flutter create --template=plugin --platforms=android,ios -a java plugin_name

fullflash avatar Sep 11 '24 15:09 fullflash