ld: framework not found Parse Xcode 7 beta

回眸只為那壹抹淺笑 提交于 2019-11-26 18:13:26

问题


I succeed to install and use Parse framework with my new project, but I can't with a "template project".

The template is just a Slide Menu from Appcoda

You can download the project here. I have this error :

ld: framework not found Parse
clang: error: linker command failed with exit code 1 (use -v to see invocation)

And the same for Bolts.

I don't understand what the problem is, the initial project is just some View Controllers...

When I write the code "import Parse", the error message is :

No such module 'Parse'

I tried to drag and drop the frameworks, and also to add the frameworks in "Link Binary With Libraries".

PS : I am using Xcode 7 beta, and I tried on beta 1 and 2, same issue.


回答1:


Here is the solution:

There seems to be an issue with Xcode 7 beta where the search path for manually added frameworks is missing.

To fix the issue add the search path by doing the following:

  1. Select Project
  2. Click on Targets
  3. Click Build Settings
  4. Search for: Framework Search Path
  5. Add $(PROJECT_DIR) and choose Recursive option.

The project should build now.

Thanks to this post : Link to stack




回答2:


None of the proposed solutions worked for me. Eventually I found that the solution was to drag the frameworks from a source folder that did not have spaces in it's name.

E.g.

  • Dragging the frameworks from 'iOS SDKS' > did not work
  • Dragging the frameworks from 'Downloads' > worked

It's not the first time that XCode has been shown to be problematic when working with paths that contain spaces.




回答3:


Ensure that Parse is included in the "Link Binary With Libraries" section under "Build Phases".




回答4:


Go to your Build Phases -> Linked Binary With Libraries remove your pod framework & add it back again. That does the trick.



来源:https://stackoverflow.com/questions/31295369/ld-framework-not-found-parse-xcode-7-beta

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