pod-template
pod-template copied to clipboard
No `Podfile' found in the project directory on `pod install` step
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)
Ye same issues here
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.
In the /Example
folder just run pod install
and the alias will start working.
@orta Although I couldn't get anything to boot up on my screen. It would build success
but no deploy to device or simulator.
It's scheme may be a framework instead of the sim?
@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 Your workaround (pod install
in /Example
) worked around the issue for me and generated the .xcworkspace
. Thanks!
+1
cd ios then pod install --repo-update
sudo gem install cocoapods
In the
/Example
folder just runpod install
and the alias will start working.
where's the /Example?
i have flutter project and while i run on mac i get the same error while using pod install command. can somebody help me.
in your /ios
folder, run this command:
pod init
pod install
iOS folder. which ios folder? I don't have an ios folder in my project.
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?
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.
Please run these commands in your project directory:
cd ios
pod init
pod install
I don't have an iOS folder in my project!
Pod files can be installed on Windows ?? Please Tell me Anyone?
No it cannot. Pod helps provide dependencies when xcode runs an ios application. And xcode will not work on windows.
in your
/ios
folder, run this command:pod init
pod install
Thank you for solving my problem!
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