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 阅读详情

相关推荐

CTFshow-CRYPTO(持续更新)

密码学签到 }wohs.ftc{galf 将字符串逆序即可 letters = '}wohs.ftc{galf' a = list(letters) a.reverse() for letters in a: print(letters,end='') crypto2 打开浏览器的控制台,复制粘贴回车即可得到flag crypto3 这一题同上 crypto4 如图填写即可,一开始e填写的是17,一直回答错误,后来经过群内大佬提醒软件的e是十六进制的,17转十六进制就是0x11 cr

i_kei的博客 1万+

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

电阻、电容、电感的实际等效模型

1、电阻的等效模型 2、电容的寄生参数 3、电容的等效参数 4、理想铝电解电容与实际铝电解电容的区别 5、电感的等效模型  

鸟宿江边树的博客 4万+

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

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

路人甲 1353

FP7195升降压恒流驱动IC:从AC/DC 12~24V输入到稳定输出的高效电源设计实战

本文详细解析FP7195升降压恒流驱动IC的工作原理与应用实战。该芯片支持4.5V-32V宽输入范围,能自动切换升降压模式并保持输出恒定,特别适用于车载LED照明、工业电源等电压波动场景。通过实际案例分享PCB布局、元件选型及调试技巧,帮助工程师实现高效稳定的电源设计。

vodka的博客 955

【UE5 C++开发指南】从零配置Visual Studio 2022开发环境

本文详细指导如何从零开始为UE5 C++开发配置Visual Studio 2022环境。文章强调了VS2022与UE5的深度兼容性,并逐步讲解了社区版下载、核心工作负载(如“使用C++的游戏开发”)与组件安装、界面优化、专属工具设置以及首个C++项目的创建与验证流程,帮助开发者高效搭建专业开发环境。

weixin_29016865的博客 393

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

【WorkBuddy专栏51】Codex与WorkBuddy的底层基因——两条完全不同的AI智能体路线(上)

【WorkBuddy专栏51】Codex与WorkBuddy的底层基因——两条完全不同的AI智能体路线(上)

AI人人懂 2168

解决 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

Aurix TC3xx系列MCU DMA模块配置方法(二)

本文主要基于英飞凌Aurix TC3xx系列MCU,通过EB tresos配置工具,介绍DMA驱动模块的配置方法。

m0_38045338的博客 2850

FOC 电流采样方案对比(单电阻/双电阻/三电阻)

电流采样的作用 在FOC算法中,电流采样在反馈环节是相当重要的一部分,通常交流三相同步电机在进行坐标变换的时候,需要实时测量相电流,最终通过SVPWM实现电机转子磁场和定子磁场的同步转动,那么这里有三种方案,单电阻采样,双电阻采样,三电阻采样。本文参考ST的单电阻和三电阻采样以及TI的双电阻采样,结合实际中可能需要注意的地方进行总结分析。 单电阻采样 双电阻采样 三电阻采样 ...

一名热爱技术的工程师的博客。分享技术干货,记录美好生活。永远相信美好的事情即将发生。 4万+

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

YOLO11 改进系列 | 引入2023年 MLCA 的 C3k2_MLCA 模块,近零参数开销的本地-全局通道注意力,适合检测与分割特征增强

本文提出将MLCA(混合局部通道注意力)模块嵌入YOLOv11的C3k2框架中,形成C3k2_MLCA改进结构。该模块通过5×5局部池化和1×1全局池化双路融合,结合ECA式Conv1d生成通道注意力,在几乎不增加参数量的前提下(仅增加66个参数),实现了局部空间信息与全局通道统计的联合建模。相比传统SE和ECA注意力,MLCA保留了空间分布信息,更适合实例分割等需要精细定位的任务。实验表明改进后模型参数量仅增加0.002%,计算量基本不变,是一种高效的注意力增强方案。

qq_44224801的博客 93

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

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

解决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

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

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、付费专栏及课程。

余额充值