构建项目时出错:链接器命令失败,退出代码为 1
got error when building project: linker command failed with exit code 1
我从 github 下载了以下 project。当我尝试构建它时,它给了我以下错误:
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我注意到 pods 文件夹不存在于 xcode 中,但它应该存在。我试图将它复制并粘贴到项目中,它仍然给我这个错误。你能告诉我如何解决这个错误吗?
- 安装可可pods:https://cocoapods.org
- 运行 "pod install" 在项目文件夹中(Podfile 所在的位置)
- 并使用工作区文件打开项目。 (FloripaBus.xcworkspace)
这是因为.gitignore中添加了pods个文件夹,需要自行安装依赖[=11=]
我从 github 下载了以下 project。当我尝试构建它时,它给了我以下错误:
ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation)
我注意到 pods 文件夹不存在于 xcode 中,但它应该存在。我试图将它复制并粘贴到项目中,它仍然给我这个错误。你能告诉我如何解决这个错误吗?
- 安装可可pods:https://cocoapods.org
- 运行 "pod install" 在项目文件夹中(Podfile 所在的位置)
- 并使用工作区文件打开项目。 (FloripaBus.xcworkspace)
这是因为.gitignore中添加了pods个文件夹,需要自行安装依赖[=11=]