Directory not found for option '-L/Users/…/TestFlightSDK1.1'

只谈情不闲聊 提交于 2020-01-11 09:36:43

问题


I am trying to archive my Xcode project, but its giving some warning like this:

Directory not found for option '-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.

  • 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

But I didn't found any sign TestFlightSDK1.1

How can I solve that warning?


回答1:


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.




回答2:


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.




回答3:


Remove the Dir from Library Search Paths from Build Settings

  1. Set the Project
  2. Click on Build Settings.
  3. Search for Library Search Paths.
  4. Remove Invalid dir path from list.
  5. Clean Project.


来源:https://stackoverflow.com/questions/13723074/directory-not-found-for-option-l-users-testflightsdk1-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!