With xcode9 i am trying the install some libraries with cocoapods, but after running pod install .xcworkspace file is not generating, I have also tried to update cocoapods, but after updating the pods also .xcworkspace file is not generating.
Works fine for me using Xcode 9 if I follow these steps with Cocoapods version 1.1+
Create new Xcode project (let's say with the name of Cocoapods).
Follow the Xcode project location and pod init it will create Podfile
Open the Podfile using open -e Podfile add Libraries names and pod install
But in your case Podfile.lock is missing. I guess you should run pod deintegrate and pod install once again if still, you face the issue then you need to change the Cocoapods version.
Related
I have an iOS application which in which I have installed cocoapods. It has all been working fine for years. However after a couple of recent branches and merges, I ended up with lots of errors relating to the files in Pods. I tried to fix everything but had an error that I was unable to fix, so I decided that the best solution would be to reinstall cocoapods.
I did this with
pod deintegrate
pod install.
However, I now have a problem where, when I open the .xcworkspace from my project folder, the Pods folder is in red and empty, and the podfile is not shown in the directory at all. However, when I look at the folder on my computer, the podfile is there and the Pods folder is populated.
So my project folder on my computer contains the .xcworkspace, the podfile and the Pods folder but when I open the .xcworkspace in Xcode, it appears that the podfile and Pods folder are not linked to it.
The error in Xcode currently is "Module 'Firebase' not found"
I have tried all of the following again and again to the point where it is driving me crazy, but the problem still persists.
reinstalling again and again with pod deintegrate followed by pod install
deleted the derived data
rebuilding in Xcode between pod deintegrate and pod install
restarting Xcode
pod clean
pod install --repo-update
rm -rf ~/.cocoapods
deleting the podfile then running pod setup and/or pod init
again before pod install.
I am making sure each time that my podfile includes the pods that I
want to be installed (editing in Xcode).
I am opening the .xcworkspace file NOT the .xcodeproj file.
I am able to successfully rebuild the pod file and reinstall pods on all occasions, but whatever I have tried, when I open the .xcworkspace in Xcode I can't see the podfile and the Pods folder is empty even though these items are in the project folder.
I've searched for solutions and tried everything I can find to no avail. Please can someone point me in the right direction!
Does the project work if you go back to an older commit/branch?
I have been looking up on every website that had a similar/identical to this specific issue for Xcode of earlier version errors and I have tried everything and nothing has worked. I have cleaned and then tried to build the project but that hasn't worked.
The terminal shows that the firebase pod has been successfully installed but when try to import firebase the xcode says there is no such module Firebase
Then I tried to use adding the framework manually but when I try to build then Xcode says framework not found firebasecore .
I am stuck there ..what can I do next?
Comment all pods in pod file, then install only
pod 'Firebase/Analytics'
pod 'Firebase/Messaging'
For firebase notifications, because some time xcode do not install frameworks of pod files.
Open your pod file from project directory and add this
pod 'Firebase/Core'
then go to terminal and install pod again
pod install
after that make sure you build your project (⌘+B) before use.
Make sure you are opening .xcworkspace file from project directory.
hi Iam new to iOS and i am trying to use CVCalender for custom calendar https://github.com/CVCalendar/CVCalendar#-cocoapods-
and i am try to install the cocoa pods but its getting error,
But i have muly cocopods in my file is these are use full or i need to delete these things as shown in image
can any one help me to how to install coacoa pods sucessfully and install cvcalender
after adding delegates also showing same error
1.Open terminal
sudo gem install cocoapods
2.Setup the cocoapods master repo
pod setup
download the master repo. The size is big approx 370.0MB
3.Create xcode project and select root directory in terminal.
cd "your XCode project root directory"
4.Then type
pod init
5.Then open your project's podfile by typing in terminal
open -a Xcode Podfile
6.Add your project's dependencies in open text podfile.
**for ex.** pod 'CVCalendar', '~> 1.5.2'
7.Then install pods into your project by typing in terminal
pod install
Now close your xcode project and open .xcworkspace xcode project file.
Happy Coding.
Also refer cocoapods link. https://cocoapods.org/
I have installed cocoa pods and added many libraries like the AFNetworking but nothing is getting invoked. I have set the Linked Frameworks and Libraries 'Status' as optional but getting nil reference for all the libraries. What am I doing wrong?
Steps to install Pods on your Xcode project
Open Terminal add this command or write cd and drag and drop folder direct to terminal
cd ~/Path/To/Folder/Containing/ShowTracker
pod init
Open PodFile from your Xcode project and add your framework
or you can direct open Xcode pod file using this command: open -a Xcode Podfile
Add frameworks
pod 'AFNetworking', '2.2.1'
pod 'IQKeyboardManager'
pod 'Facebook-iOS-SDK'
At last close window of Xcode Podfile and got o terminal and write this command
pod install
Hope this helps you..
I downloaded a sample project to learn how to make a UIPageViewController, and I am trying to essentially fork that project and need to add a third-party library. Right now, it does not look like I have a .xcworkspace file in my project. When I try and install the cocoapods, I first run
sudo gem install cocoapods - in the specific project directory in my terminal
pod install - in that same directory
I am receiving an error in the terminal "No podfile found in the project directory."
Is this happening because I don't have a .xcworkspace file? Am I installing the podfile correctly?
Steps to add CocoaPods to manage dependencies in your project:
sudo gem install cocoapods -> This installs CocoaPods as a piece
of software on your machine.
Go to the root of your project directory and execute pod init ->
This will add a base Podfile to your project.
Add the external dependencies that you have to this Podfile by editing it.
Run pod install which will fetch all the external dependencies
mentioned by you, and associate it with a .xcworkspace file of
your project. This .xcworkspace file will be generated for you if
you already do not have one.
From here on, you should use .xcworkspace file instead of .xcproject / .xcodeproj.
Example Podfile Syntax:
target 'MyApp' do
pod 'AFNetworking', '~> 3.0'
end
Where AFNetworking is the pod and 3.0 is the specific version that I want to install.
Documentation: Using CocoaPods
Just posting for anyone that encountered this issue while working on a react native project.
sudo gem install cocoapods
this installs cocoa pods to your machine
cd projectDirectory cd into your project directory
cd ios cd into the ios directory of your project, is you list items that are in this folder, you would most likely see a podfile there.
pod install
If you want to add a library from GitHub to your own project, after installing gems, do firstly pod init look at from GitHub cocoapod description and then add it after target line in podfile.
Save and run "pod install".
It would be successfully added on your project.
Don't forget to call pod install in the Project folder of your project (not in the root).
Open a terminal, if you use VSCode, you can just run the following from the terminal
Do a cd <project_name> to your flutter project directory
Run cd iOS
Then run pod install