Xcode工程使用CocoaPods管理第三方时,出现diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock:

CocoaPods报错:The sandbox is not in sync with the Podfile.lock... 当我们从github下一些demo,如果笔者添加CocoaPods管理,有时候因为依赖关系或者版本问题不能编译,很有可能下载到我们本地报错。报错提示如下:   diff: /../Podfile.lock: No such file or directory   diff: /Manifest.lock: No such file or directory   error: 阅读详情

问题:


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.


直接删除本地的workspace 启动终端:

运行pod install,

出现:

-bash: pod: command not found


寻求其他的解决方案:

1.更换淘宝的域名

gem sources --r http://ruby.taobao.org/  移除掉老的域名



2.更换新的域名

gem sources -a https://ruby.taobao.org/ 更换


gem sources -l 查看一下源



3.安装

sudo gem install cocoapods

回车输入开机密码


4.nnd 问题来了



重新移除所有资源(主要是怕自己弄混了=_=)重新安装成功



OK 回归正题,看看能不能解决之前的命令不存在的问题!


问题解决,ok



我擦,新问题来了!



唉,获取数据失败,看意思貌似是版本不对,先更新一下看看!




标示英文太多,好难看!  貌似是告诉我怎么修改那个文件!但是

这种文件没搞过啊! 



搜索了一下,跟文件里面的第三方库的后缀有关系,貌似是podfile.lock内部把版本写死了


顺带学习了一下

想起来了,直接vi Podfile进入文件进行修改就完事  囧


iOS开发:报错The sandbox is not in sync with the Podfile.lock. Run ‘pod install‘ …的解决方法 前言 在iOS原生开发的时候,凡是涉及到运行项目之后Xcode提示Build target Runner-Log,是不是每次看到这种报错提示就觉得眼前一黑,头皮发麻?其实也没我说的那么夸张,但是有时候遇到这种问题确实比较费头发。本篇文章就来分享一个常见的问题,但是该问题解决起来不复杂,分享出来,方便后期查阅使用。 重现报错提示 具体在Xcode中的报错提示如下所示: Showing Recent Messages diff: /Users/admin/Documents/WorkSpac 阅读详情

相关推荐

ubuntu安装glibc

VSCode 在ubuntu下调试无法打开libc-start.c raise.c等1. 安装glibc2. launch.json中添加路径映射3. 调试 1. 安装glibc apt install glibc-source cd /usr/src/glibc/ sudo tar -xvf glibc-[VERSION].tar.xz 2. launch.json中添加路径映射 "sourceFileMap": { "/build/glibc-S7xCS9": "/usr/src/glib

wq_0708的博客 3万+

The sandbox is not in sync with the Podfile.lock. Run ‘pod install‘ or update your CocoaPods install

当你执行pod install时候非常顺利但是会报一堆黄色警告,此时如果你不注意那么接下来编译运行项目的时候就开始报错了:The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods install紧跟着报错library not found for -XXX。

tiancaikuanglong的博客 8071

分支界定法(branch and bound)与背包问题的代码实现

分支界定法(branch and bound)与背包问题的代码实现 LastEditTime: - 2021.2.3 不卖茶的吴龙茗茶 分支界定法是一种在整数规划中常用的算法,其主要思想为将大问题分割成小问题进行求解。分支界定法是围绕着一个二叉树进行的,以背包问题为例: 假设小明有一个背包,其总的容积为30,小明有三件东西可以带,三件东西的体积分别为:10,15,20。求问小明如何能够在背包中装下更大体积的物品? .

小吴同学的小屋 1885

IOS项目报错:The sandbox is not in sync with the Podfile.lock. Run ‘pod install‘ or update your CocoaPods

如果已经安装,cd到项目目录下执行:pod install 如下图。如果没有安装CocoaPods, 请百度搜索安装。

路人甲 1353

【墨者学院 】uWSGI 漏洞复现(CVE-2018-7490)

0x01 漏洞详情 uWSGI是一款Web应用程序服务器,它实现了WSGI、uwsgi和http等协议。 uWSGI 2.0.17之前版本中存在路径遍历漏洞,该漏洞源于程序没有正确的处理DOCUMENT_ROOT检测。攻击者可通过发送带有‘…’序列的特制URL请求利用该漏洞查看系统上的任意文件。 uWSGI 2.0.17之前版本中存在路径遍历漏洞,该漏洞源于程序没有正确的处理DOCUMENT_RO...

Summer's blog 1万+

3步搞定.NET Core在UOS上的部署?手把手教你从零到上线!

本文详细介绍了如何在统信UOS系统上部署.NET Core应用程序的完整流程。首先,通过安装.NET Core SDK,确保UOS系统能够编译和运行C#代码。接着,创建一个简单的控制台应用,并验证其本地运行情况。最后,通过发布应用、传输文件到UOS服务器,并解决权限问题,确保应用能够在UOS上顺利运行。文章还提供了常见问题的解决方案,如依赖缺失、权限不足和服务启动失败等,帮助开发者避免常见陷阱。通过本文的指导,开发者可以轻松将.NET Core应用部署到UOS系统,并实现24/7的稳定运行。

java专栏 587

diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory er...

在执行第三方demo的时候出现以下提示错误: 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 insta...

abc48765的博客 734

关务管理项目专题:SAP 与关衡关务系统的进出口报关业务集成(1)需求和方案整理

一个拥有进出口业务的企业就需要报关,而关务系统就是用来辅助企业日常进出口报关,同时数字化、合规化报关业务的有效工具。本章属于关务管理项目专题系列,以 SAP 与关衡关务系统的进出口报关业务集成为实例,详细讲解报关业务的需求和方案整理。

SAP李斌,本人承诺所有原创文章均不使用任何AI生成技术,请大家放心阅读。 2076

解决 The sandbox is not sync with the Podfile.lock问题

问题描述: github / sourcetree下载的Demo,很多时候使用到CocoaPods,有的时候因为依赖关系或者版本问题不能编译运行。出现例如The sandbox is not sync with the Podfile.lock问题时候,如下所示 diff: /../Podfile.lock: No such file or directory diff: Manifest.l...

疯流人物 7355

【推荐100个unity插件】动画重定向,快速在不同角色间共享动画,共用非人形Humanoid(泛型generic)动画——Retarget Pro

Retarget Pro是一款高效的Unity动画重定向工具,可快速在不同角色间共享动画。主要特点包括:1分钟快速设置,支持编辑器和运行时重定向;适用于人形、动物、武器等各类角色;提供基础重定向、IK重定向和FPS专用重定向三种功能模块;通过Rig组件和骨架资产实现骨骼链匹配,支持批量处理。插件包含示例项目和预设资源,操作简便且效果优于Unity原生Humanoid系统,特别适合处理手指等精细动画。

向宇的博客,专注php/web全栈 unity游戏开发,欢迎大家评论纠错 546

OmniBox2.0.X版本 一站式影视订阅与多端播放平台文档

OmniBox 是一站式影视订阅与多端播放平台:你可以用 JS 或 Python 按 OmniBox 规范自建爬虫源,在后台把多个爬虫源自由组合成订阅,然后在网页、手机、电视等全平台的客户端里使用。只要客户端支持 TVBox、猫源、UZ、Emby 等协议,即可无缝对接。同时支持电视直播源、六大平台直播间和网盘源视频在线观看,通过 Docker 一键部署。

欢迎来到鸾姝淡月博客,专为程序员和编程爱好者打造的技术博客。我们分享编程语言趋势、开发工具、编程哲学、职业发展等,助你掌握新技术,优化技能,激发编程热情。 1915

iOS Bug---Github上下载项目cocoapods报错 diff: /../Podfile.lock No such file or directory

错误描述:Github上下载的项目cocoapods出现错误,左边目录Pods.xcodeproj文件变红,运行后显示以下错误:diff: /../Podfile.lock: No such file or directorydiff: /Manifest.lock: No such file or directoryerror: The sandbox is not in sync with t...

iOS技术分享与学习博客 1404

手把手教你学Simulink实例--基于Simulink的电动汽车无线充电效率优化仿真

​市场规模:2025年全球无线充电市场规模将达$27亿(MarketsandMarkets数据)​技术标准Qi v1.3(最高150W)WiTricity(200W动态功率)ISO 17163(道路车辆无线充电)​节能效果:每kWh充电减少120W损耗(按每天8小时)​成本分析线圈成本:35vs58(传统方案)效率提升带来的续航增加:15km/100km。

xiaoheshang_123的博客 345

diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory

diff: /../Podfile.lock: No such file or directory

wengyupeng 蜗牛一步一步向前。。。 3501

SIMATIC S7-1200, S7-1500 PID 控制[手册]

SIMATIC S7-1200, S7-1500 PID 控制[手册]

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

解决cocoapods diff: /../Podfile.lock: No such file or directory

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 Co

dabin12345的专栏 1959

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

The sandbox is not in sync with the Podfile.lock. Run ‘pod install‘ or update

目录背景解决方案安装CocoaPods 背景 xcode编译运行时报错The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update,这是依赖的问题。 解决方案 安装CocoaPods OS X 10.11以前,在终端输入以下命令: sudo gem install cocoapods OS X 10.11以后,在终端输入以下命令: sudo gem install -n /usr/local/bin c

愤怒的苹果ext的博客 3322

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

The sandbox is not in sync with the Podfile.lock

从SVN上update代码之后,报错如下: error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. 解决办法如下: 1、先关闭你的工程,然后进入你工程根目录下 2、rm -rf Pods 3、(Optional)

MinggeQingchun的博客 1198

iOS-报错The sandbox is not in sync with the Podfile.lock. Run ‘pod install‘ …的解决方法

Xcode编译报错The sandbox is not in sync with the Podfile.lock. Run ‘pod install’

c1o2c3o4的博客 1306

IOS 从网上下载的项目,运行时出现“The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update y”

我们常从网上下载项目,有时候运行时会报如下错误: 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’

夏天的风轻轻吹过~~ 3170

The sandbox is not in sync with the Podfile.lock. Run ‘pod install‘ or update cocoapods

更新系统以后,swift项目编译报错。 在工程目录下运行pod install 报错: -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Version 直接运行sudo gem install -n /usr/local/bin cocoapods安装还是会报错,网址被屏蔽了。需要更换源 需要下面这样做: 1、gem sources --add https://gems.ruby-china.com/ --remov

Sophisticate11的博客 396

使用CocoaPods遇到一个问题:The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update ....

使用CocoaPods遇到一个问题:The sandbox is not in sync with the Podfile.lock. Run ‘pod install’ or update your CocoaPods installation.如下所示: 解决办法: 1.进入工程所在的根目录 2.执行下面的命令,删除xcworkspace 3.然后重新 pod install

知了JZ 1083

The sandbox is not sync with the Podfile

问题描述: github下载的Demo,很多时候使用到CocoaPods,有的时候因为依赖关系或者版本问题不能编译运行。出现例如The sandbox is not sync with the Podfile.lock问题时候,如下所示 diff: /../Podfile.lock: No such file or directory diff: Manifest.lock: No

一起坚持 696

Flutter 开发错误集合一

最后我想说:对于程序员来说,要学习的知识内容、技术有太多太多,要想不被环境淘汰就只有不断提升自己,

2401_84009054的博客 1117

ios之error: The sandbox is not in sync with the Podfile.lock.

当我们编译ios工程时,有时会遇到这个报错。此时,关闭当前的工作空间,删除以前的.xcworkspace文件,然后运行pod install命令,install之后,重新打开项目,clean并build项目,问题解决。 如果遇到pod install命令执行失败,可以参考连接https://blog.csdn.net/liuzehn/article/details/81941305...

liuzhen007的专栏 1406
上一篇: iOS 中常用的几种函数 (向上,向下,四舍五入)取整, 总算是理解了
下一篇: swift 构建桥接文件
「已注销」
博客等级 码龄11年 10粉丝 12原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值