1密码 Pods iOS 找不到库
1Password Pods iOS library not found
我从我公司的其他人那里恢复了一个项目,他们使用 1password pods 制作了 iOS 应用程序。
我有一个构建错误,我在网上搜索但没有找到解决方案。
也许你能帮帮我。
此处错误:
ld: 找不到 -l1PasswordExtension 的库
clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
提前致谢
我在使用 cocoapods 时 运行 遇到过几次这个问题。这个 SO post 上的一些解决方案在 Cocoapods ld: library not found for -lPods-Projectname
之前对我有所帮助
此外,官方 cocoapods 网站在其故障排除页面上提供了一些针对此问题的帮助 https://guides.cocoapods.org/using/troubleshooting.html:
If Xcode complains when linking, e.g. Library not found for -lPods, it doesn't detect the implicit dependencies:
Go to Product > Edit Scheme
Click on Build
Add the Pods static library, and make sure it's at the top of the list
Clean and build again
If that doesn't work, verify that the source for the spec you are trying to include has been pulled from GitHub. Do this by looking in /Pods/. If it is empty (it should not be), verify that the ~/.cocoapods/master//.podspec has the correct git hub url in it.
If still doesn't work, check your Xcode build locations settings. Go to Preferences -> Locations -> Derived Data -> Advanced and set build location to "Relative to Workspace".
如果一切都失败了,你总是可以尝试删除 Xcode 工作区和 Pods 目录,然后重新 运行ning 'pod install' 看看是否清除事情了。
谢谢 Rob T,我编辑了方案,现在可以使用了。
就在 运行 之前,我安装了一个 pod。
我从我公司的其他人那里恢复了一个项目,他们使用 1password pods 制作了 iOS 应用程序。
我有一个构建错误,我在网上搜索但没有找到解决方案。
也许你能帮帮我。
此处错误:
ld: 找不到 -l1PasswordExtension 的库 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
提前致谢
我在使用 cocoapods 时 运行 遇到过几次这个问题。这个 SO post 上的一些解决方案在 Cocoapods ld: library not found for -lPods-Projectname
之前对我有所帮助此外,官方 cocoapods 网站在其故障排除页面上提供了一些针对此问题的帮助 https://guides.cocoapods.org/using/troubleshooting.html:
If Xcode complains when linking, e.g. Library not found for -lPods, it doesn't detect the implicit dependencies:
Go to Product > Edit Scheme
Click on Build Add the Pods static library, and make sure it's at the top of the list
Clean and build again
If that doesn't work, verify that the source for the spec you are trying to include has been pulled from GitHub. Do this by looking in /Pods/. If it is empty (it should not be), verify that the ~/.cocoapods/master//.podspec has the correct git hub url in it.
If still doesn't work, check your Xcode build locations settings. Go to Preferences -> Locations -> Derived Data -> Advanced and set build location to "Relative to Workspace".
如果一切都失败了,你总是可以尝试删除 Xcode 工作区和 Pods 目录,然后重新 运行ning 'pod install' 看看是否清除事情了。
谢谢 Rob T,我编辑了方案,现在可以使用了。
就在 运行 之前,我安装了一个 pod。