简体   繁体   English

Xcode产品存档错误

[英]Xcode product archive error

When I try to archive my project with Xcode I've got an error: 当我尝试使用Xcode归档项目时,出现错误:

ld: library not found for -lReachability
clang: error: linker command failed with exit code  1

Can you help me how to fix that? 你能帮我解决这个问题吗?

You need to set the path that Xcode use to find your Reachability framework. 您需要设置Xcode用于找到您的Reachability框架的路径。

Create your search path like this 像这样创建您的搜索路径

$(PROJECT_DIR)/../yourFramework/lib $(PROJECT_DIR)/../ yourFramework / lib目录

and add it in Build Settings-> Framework Search Paths for both debug and release builds. 并将其添加到调试和发行版本的“ 构建设置”->“框架搜索路径”中。

You can get the exact path from Finder get info. 您可以从Finder获取信息中获取确切路径。

Check the reference links 检查参考链接

  1. Link 链接
  2. Link 链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM