xcode 找不到选项“-L/Users/..../TestFlightSDK1.1”的目录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13723074/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Directory not found for option '-L/Users/..../TestFlightSDK1.1'
提问by arthankamal
I am trying to archive my Xcode project, but its giving some warning like this:
我正在尝试归档我的 Xcode 项目,但它给出了一些警告,如下所示:
Directory not found for option '-L/Users/..../TestFlightSDK1.1
找不到选项“-L/Users/..../TestFlightSDK1.1”的目录
It won't be there in that path, I removed that Folder from my project. I've tried all answers in Stackoverflow, but its not working.
它不会在那个路径中,我从我的项目中删除了那个文件夹。我已经在 Stackoverflow 中尝试了所有答案,但它不起作用。
- I cleaned my project
- I deleted all values in my
Target -> Build Settings -> Library Search Paths and Header SearchPaths
- I looked onto my
project.pbxproj
- 我清理了我的项目
- 我删除了我的所有值
Target -> Build Settings -> Library Search Paths and Header SearchPaths
- 我看着我的
project.pbxproj
But I didn't found any sign TestFlightSDK1.1
但我没有发现任何迹象 TestFlightSDK1.1
How can I solve that warning?
我该如何解决该警告?
采纳答案by arthankamal
i don't know how it solved yet. I removed some of my Third Party Libraries and again i added them. I did the same in Link Binary With Libraries
in Build Phases
, removed some of the libraries
which is used by Third Party Libraries. It worked fine.
我还不知道它是如何解决的。我删除了一些第三方库,然后再次添加了它们。我在 inLink Binary With Libraries
中做了同样的事情Build Phases
,删除了libraries
第三方库使用的一些。它工作得很好。
回答by Nycen
Happened to me after upgrading to Testflight SDK2. In Build Settings, I looked into "Library Search Paths" and there was still a reference to the SDK1. I did it for each Target (main and test), and build for main target and ran tests, and the error disappeared.
升级到 Testflight SDK2 后发生在我身上。在构建设置中,我查看了“库搜索路径”,仍然有对 SDK1 的引用。我为每个目标(主要和测试)都做了,并为主要目标构建并运行测试,错误消失了。
回答by Kirit Vaghela
Remove the Dir from Library Search Pathsfrom Build Settings
从构建设置中的库搜索路径中删除目录
- Set the Project
- Click on Build Settings.
- Search for Library Search Paths.
- Remove Invalid dir path from list.
- Clean Project.
- 设置项目
- 单击构建设置。
- 搜索库搜索路径。
- 从列表中删除无效的目录路径。
- 清洁项目。