gpt4 book ai didi

ios - 1Password Pods iOS 库未找到

转载 作者:行者123 更新时间:2023-11-29 01:28:34 25 4
gpt4 key购买 nike

我从我公司的其他人那里恢复了一个使用 1password pod 制作 iOS 应用程序的项目。

我有一个构建错误,我在网上搜索但没有找到解决方案。

也许你能帮帮我。

这里是错误:

ld: 找不到 -l1PasswordExtension 的库clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

提前致谢

enter image description here

最佳答案

我在使用 cocoapods 时遇到过几次这个问题。这篇 SO 帖子上的一些解决方案在 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 目录,然后重新运行“pod install”以查看是否可以解决问题。

关于ios - 1Password Pods iOS 库未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33740002/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com