Xcode /Podfile.lock:没有这样的文件 [英] Xcode /Podfile.lock: No such file

查看:1144
本文介绍了Xcode /Podfile.lock:没有这样的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在xcode上运行离子应用程序。但是xcode抛出了一个apple match-o链接器错误。我得到这个错误,当我运行以下命令后得到这个:

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

我需要这个插件,用于推送通知。在对谷歌进行研究后,我发现我需要在项目中安装Cocoapods。但安装Cocoapods& pod安装。当我启动project.xcworkspace时,我收到以下错误。

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.

我试图重建/清理项目或再次安装pod。但它并没有为我确定。

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

有人可以帮助我吗?


编辑 - >新错误

EDIT -> new Error

Apple Mach-O链接器(ld)错误组

Apple Mach-O Linker (ld) Error Group

clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

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

我收到此错误,当我修复了错误时pods。

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

推荐答案

首先更新你的CocoaPods安装(sudo gem install cocoapods)
然后删除与POD相关的所有内容从项目目录除.podfile。
在终端上运行pod install并使用工作区文件打开项目。

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.

这篇关于Xcode /Podfile.lock:没有这样的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆