Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode /Podfile.lock: No such file

Tags:

xcode

ios

cordova

I am trying to run an ionic app on xcode. But xcode throws an apple match-o linker error. I get this error, when I get this after I have runned the following command:

cordova plugin add phonegap-plugin-push --variable SENDER_ID=5****** --save

I need this plugin, for push notifications. After a research on google, I founded that I need to have Cocoapods installed in the projects. But after installing Cocoapods & pod install. I get the following error, when I start the "project.xcworkspace".

diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

I tried to rebuild/clean project or install pod again. But it did not fixed for me.

Can someone help me?

EDIT -> new Error

Apple Mach-O Linker (ld) Error Group

clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am getting this error, when i have fixed the error with pods.

like image 650
TheJokerAEZ Avatar asked May 03 '17 20:05

TheJokerAEZ


People also ask

How do I create a Podfile lock?

Podfile. lock is used to make sure that every members of the team has the same versions of pods installed on the project. This file is generated after you run the command: pod install. It gets updated when you run pod install or pod update.

How do I get rid of Podfile lock?

You should never modify Podfile. lock directly. It's generated by pod install . If you want to remove a Pod, edit Podfile, delete the Pod you want, and rerun pod install .

Should I commit the Podfile lock?

As a reminder, even if your policy is not to commit the Pods folder into your shared repository, you should always commit & push your Podfile. lock file. Otherwise, it would break the whole logic explained above about pod install being able to lock the installed versions of your pods.


2 Answers

If you are setting up environment setup in your project, you have to choose corresponding pods target in configuration.

enter image description here

like image 196
anas.p Avatar answered Oct 12 '22 23:10

anas.p


Update your CocoaPods installation first ("sudo gem install cocoapods") then remove everything related to POD from project directory except .podfile. Run "pod install" on terminal and open your project using workspace file.

like image 24
Venu Gopal Tewari Avatar answered Oct 12 '22 22:10

Venu Gopal Tewari