问题描述
你好,当我们打开xcode项目时,我已经从位存储桶中下载了代码,它显示了这样的错误...
hello I have download code from bit bucket when we open xcode project it show error like this...
diff:/../Podfile.lock:No这样的文件或目录
差异:/Manifest.lock:没有这样的文件或目录
错误:沙箱与Podfile.lock不同步。运行 pod install或更新您的CocoaPods安装。
diff: /../Podfile.lock: No such file or directorydiff: /Manifest.lock: No such file or directoryerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
但是在那之后我使用的是终端,然后使用这些链接进行更新或pod设置
but after that I am using terminal then update or pod setup using these links
http://www.raywenderlich.com/64546/introduction-to-cocoapods-2
and http://stackoverflow.com/questions/9863836/library-not-found-for-lpods
使用这些链接我们安装pod,然后在打开时在项目文件夹中生成pod和.xcworkspace文件。 xcworkspace文件并构建项目,它将成功构建,但是当我们打开.xcodproj并构建它时,它将显示错误
using these link we install pod and after that pods and .xcworkspace file generate In project folder when we open .xcworkspace file and build project then it will build successfully but when we open .xcodproj and build this it will show error
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
所以我不知道如何添加libpods.a库并运行该应用程序。
so I don't know how to add libpods.a library and run this app .
推荐答案
使用Pods时,xcodeproj文件已过时,您应该从现在开始使用xcodeworkspace。这就是为什么您在xcodeproj中收到未找到广告连播错误的原因
When using Pods, the xcodeproj file is obsolete, you should use the xcodeworkspace from now. That's why you are getting the "not found" error for pods in the xcodeproj
这篇关于ld:找不到在iOS中找不到的-lPods库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!