Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
313 views
in Technique[技术] by (71.8m points)

cocos2d iphone - Library Not Found after Restarting 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:

enter image description here

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: enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...