重启 Xcode 后找不到库 [英] Library Not Found after Restarting Xcode

查看:20
本文介绍了重启 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 working Delete 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 后找不到库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆