Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thebluepotato opened this issue Sep 26, 2016 · 22 comments
Open

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

thebluepotato opened this issue Sep 26, 2016 · 22 comments

Comments

@thebluepotato
Copy link

thebluepotato commented Sep 26, 2016

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)
@roblav96
Copy link

roblav96 commented Oct 4, 2016

Ye same issues here

@orta
Copy link
Member

orta commented Oct 4, 2016

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

@roblav96
Copy link

roblav96 commented Oct 4, 2016

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

@roblav96
Copy link

roblav96 commented Oct 4, 2016

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

@orta
Copy link
Member

orta commented Oct 4, 2016

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

@roblav96
Copy link

roblav96 commented Oct 4, 2016

@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

@eladnava
Copy link

eladnava commented Oct 10, 2016

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

@omid-ghl
Copy link

+1

@willardjansen
Copy link

cd ios then pod install --repo-update

@HayfaAbusnina
Copy link

sudo gem install cocoapods

@carlaaclaramunt
Copy link

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

where's the /Example?

@Dewas-Rai
Copy link

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

@muhammadmateen027
Copy link

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

@LJ-Mic
Copy link

LJ-Mic commented Jan 30, 2023

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

@muhammadmateen027
Copy link

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?

@LJ-Mic
Copy link

LJ-Mic commented Jan 30, 2023

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.

@muhammadmateen027
Copy link

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

@LJ-Mic
Copy link

LJ-Mic commented Jan 30, 2023

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

@sadman-ichha
Copy link

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

@williammongou
Copy link

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

@FeilyZhang
Copy link

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

Thank you for solving my problem!

@fullflash
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests