我通过cocoapods将一个外部框架添加到我的iOS应用程序中.如何从项目中删除该库?
我无法构建使用CocoaPods的项目.我收到以下错误:
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.`
Run Code Online (Sandbox Code Playgroud)
$ pod install似乎工作正常,并将一个Pods项目添加到我的工作区.我试过$ pod update但这没有用.
似乎PODS_ROOT没有设定.
Podfile:
platform :ios, '6.0'
workspace 'Example.xcworkspace'
xcodeproj 'example/Example.xcodeproj'
pod 'TestFlightSDK', '~> 1.3.0-beta.5'
pod 'TestFlightLogger', '~> 0.0.2'
pod 'CocoaLumberjack', '~> 1.6.2'
pod 'Reachability', '~> 3.1.0'
pod 'SBJson', '~> 3.2'
pod 'MKMapViewZoom', '~> 1.0.0'
Run Code Online (Sandbox Code Playgroud) 我想知道"〜>"用于什么,因为我发现它们在下面是相同的:
pod 'AFNetworking','~> 2.0.3'
pod 'AFNetworking','2.0.3'
Run Code Online (Sandbox Code Playgroud) 从谷歌尝试多个答案后,我有以下错误.
PhaseScriptExecution Check\ Pods\ Manifest.lock /Users/apple/Library/Developer/Xcode/DerivedData/Build/Intermediates/FoodSpot.build/Debug-
iphonesimulator/FoodSpotTests.build/Script-36819C3C1B6A30F50091382D.sh
cd "/Users/apple/Downloads/FoodSpot 2"
/bin/sh -c /Users/apple/Library/Developer/Xcode/DerivedData/Build/Intermediates/FoodSpot.build/Debug-iphonesimulator/FoodSpotTests.build/Script-36819C3C1B6A30F50091382D.sh
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.
Run Code Online (Sandbox Code Playgroud)
我已多次更新和安装,但它们没用.
我尝试使用推送通知构建离子3应用程序,我在iOS部署时遇到了一些问题.
我在xcode中有这3个错误:
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.
Run Code Online (Sandbox Code Playgroud)
我尝试了很多在互联网上找到的解决方案:
使用命令"pod install","pod update"
删除并安装CocoaPods
更新CocoaPods
删除"Pods"文件夹,"Podfile.lock"和"Podfile"并运行"pod install"命令.
从Link Binary From Librairies中删除libPods-myApp.a.
但没有什么是有效的......
我真的不知道自己要做什么.
我的Podfile:
# DO NOT MODIFY -- auto-generated by Apache Cordova
platform :ios, '8.0'
target 'MyProject' do
project 'MyProject.xcodeproj'
pod 'GoogleCloudMessaging', '~> 1.2.0'
pod 'GGLInstanceID', '~> 1.2.1'
end
Run Code Online (Sandbox Code Playgroud)
我的Podfile.lock:
PODS:
- GGLInstanceID (1.2.1) …Run Code Online (Sandbox Code Playgroud) 我是IOS开发和git的新手.将我的本地仓库合并到dev repo之后我遇到了问题.合并后,当我构建项目时,我在Xcode中收到一条错误,指出"沙箱与Podfile.lock不同步.运行'pod install'或更新你的CocoaPods安装."
我搜索了这个,并尝试通常的解决方案重新安装pods.但执行
pod install
Run Code Online (Sandbox Code Playgroud)
我在终端中得到另一个错误
此时,我尝试删除与"FTPopOverMenu"pod关联的文件,并使用pod install重新安装.错误不会消失.此外,我尝试用这种方式解决它 - 错误:"沙盒与Podfile.lock ...不同步"安装Restco与cocoapods后
但是终端中的Xcode和错误仍然存在.我是IOS和Git的新手.我真的不明白这里到底发生了什么.
在 github 和 stack 上搜索了很长时间以查找类似错误后,没有一个建议的解决方案帮助我解决此错误。
我尝试了很多东西(有点乱):
这是错误:
** BUILD FAILED **
Xcode's output:
?
/Users/flo/Mobile/we_ll_see/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module
'cloud_firestore' not found
@import cloud_firestore;
~~~~~~~^~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Run Code Online (Sandbox Code Playgroud)
需要一些帮助的家伙
我的可可豆有问题。
沙箱与 Podfile.lock 不同步运行“pod install”或更新您的 CocoaPods 安装。
虽然,我尝试删除文件夹Pods,文件Podfile.lock并删除工作区项目然后打开终端并输入pod install但仍然错误。
cocoapods ×7
ios ×7
xcode ×2
build-error ×1
cocoa-touch ×1
firebase ×1
flutter ×1
git ×1
ionic3 ×1
ipad ×1
iphone ×1
jenkins ×1
objective-c ×1
podfile ×1
podfile-lock ×1