相关疑难解决方法(0)

删除或卸载以前添加的库:cocoapods

我通过cocoapods将一个外部框架添加到我的iOS应用程序中.如何从项目中删除该库?

iphone ipad ios cocoapods

310
推荐指数
4
解决办法
15万
查看次数

项目构建中的CocoaPods错误

我无法构建使用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)

cocoa-touch objective-c build-error cocoapods

178
推荐指数
11
解决办法
13万
查看次数

cocoapods中"〜>"的用法是什么?

我想知道"〜>"用于什么,因为我发现它们在下面是相同的:

pod 'AFNetworking','~> 2.0.3'

pod 'AFNetworking','2.0.3'
Run Code Online (Sandbox Code Playgroud)

ios cocoapods podfile podfile-lock

51
推荐指数
4
解决办法
8430
查看次数

沙箱与Podfile.lock-ios不同步

从谷歌尝试多个答案后,我有以下错误.

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)

我已多次更新和安装,但它们没用.

xcode ios cocoapods

23
推荐指数
5
解决办法
5万
查看次数

Ionic 3 - 与cocoapods的xcode错误

我尝试使用推送通知构建离子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)

xcode push-notification ios cocoapods ionic3

23
推荐指数
1
解决办法
2104
查看次数

找不到pod的兼容版本

我是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的新手.我真的不明白这里到底发生了什么.

git ios cocoapods

22
推荐指数
7
解决办法
2万
查看次数

IOS 上的颤动:致命错误:未找到模块“cloud_firestore”

在 github 和 stack 上搜索了很长时间以查找类似错误后,没有一个建议的解决方案帮助我解决此错误。

我尝试了很多东西(有点乱):

  • 删除IOS派生数据
  • 更改 Firestore 软件包版本
  • 扑干净
  • rm -Rf ios/Pods
  • rm -Rf ios/.symlinks
  • rm -Rf ios/Flutter/Flutter.framework
  • rm -Rf ios/Flutter/Flutter.podspec
  • rm -rf ios/Podfile ios/Podfile.lock ios/Pods ios/Runner.xcworkspace
  • pod init、安装和更新
  • 取消注释平台:ios,来自 podfile 的“9.0”(可能与此问题无关)

这是错误:

    ** 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)

需要一些帮助的家伙

ios firebase flutter google-cloud-firestore

5
推荐指数
4
解决办法
9992
查看次数

沙箱与 Jenkins 服务器上的 Podfile.lock 不同步

我的可可豆有问题。

沙箱与 Podfile.lock 不同步运行“pod install”或更新您的 CocoaPods 安装。

虽然,我尝试删除文件夹Pods,文件Podfile.lock并删除工作区项目然后打开终端并输入pod install但仍然错误。

ios jenkins cocoapods

3
推荐指数
1
解决办法
8864
查看次数