gpt4 book ai didi

xcode - 无法在 Xcode : CocoaPods linking error 上存档

转载 作者:行者123 更新时间:2023-12-04 15:01:09 29 4
gpt4 key购买 nike

在 iOS 项目上,当我编译我的项目来运行它时,它工作正常。
但是如果我归档它,它会失败并出现以下错误:

ld: file not found: /Users/xxxxx/Work/xxxxx/codes/xxxxx/DerivedData/xxxxx/Build/Intermediates/ArchiveIntermediates/xxxxx/InstallationBuildProductsLocation/Applications/libPods.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我使用的是 Xcode 4.6 和 iOS 5.0。

最佳答案

我搜索了很长时间,终于得到了一些东西,并为我解决了同样的问题。对于仍然需要的人:

在build设置 > 其他链接器标志中:

Debug 和其他的标志可能不同。
尝试改变任何地方 $(TARGET_BUILD_DIR)$(BUILT_PRODUCTS_DIR) .

对我来说,我变了$(TARGET_BUILD_DIR)/libPods.a$(BUILT_PRODUCTS_DIR)/libPods.a ,问题就解决了。

关于xcode - 无法在 Xcode : CocoaPods linking error 上存档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14644122/

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