重新启动Xcode后找不到库

重新启动Xcode后找不到库

本文介绍了重新启动Xcode后找不到库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用最新的Xcode 5.1.1。



当我创建一个新项目并导入chartboost例如或revmob一切正常。但是当我关闭Xcode并重新打开它,这是我得到:





据我所知,库搜索路径有问题。



我已尝试从库搜索路径中删除所有内容 - >不工作
从管理器删除派生数据 - >不工作



当我删除库并重新导入它工作伟大,直到我再次重新启动Xcode。



感谢您的帮助。



更好的屏幕截图:

解决方案

对于那些感兴趣的人,原来是当拖放项目中的文件夹其中包含名称中包含空格的子文件夹。然后XCode库搜索路径不正确,因为框架的路径分为两行。例如,如果您有一个文件夹ParentFolder / Child Folder / Framework1,则库搜索路径将如下所示:




  • $(SRCROOT )/ ParentFolder / Child

  • 文件夹/ Framework1






  • $(SRCROOT)/ ParentFolder / Child \ Folder / Framework1


$ b b

这是一个非常烦人的错误在XCode,我们花了几个小时来解决它。我们希望此解决方案能够帮助那些对导入框架感到失望的人。


I am using latest Xcode 5.1.1.

When I make a new project and import chartboost for example or revmob everything works fine. But when I close Xcode and re-open it this is what I get:

As far as I understand there is an issue with the library search paths.

I have tried to delete everything from library search paths -> Not workingDelete the derived data from Organizer -> Not Working

When I delete the libraries and re-import it works great until I restart again Xcode.

I appreciate your help.

Better screenshot:

解决方案

For those who are interested, it turned out that the error comes when you drag and drop a folder in the project that contains a subfolder with a space in its name. Then XCode Library Search Paths are not correct, because the path to a framework is separated in 2 lines. For example if you have a folder "ParentFolder/Child Folder/Framework1" then the library search path will look like this:

  • $(SRCROOT)/ParentFolder/Child
  • Folder/Framework1

instead of this:

  • $(SRCROOT)/ParentFolder/Child\ Folder/Framework1

It is a very annoying bug in XCode, which cost us several hours to fix it. We hope this solution helps someone who is frustrated with importing a framework.

这篇关于重新启动Xcode后找不到库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 18:50