ld: framework not found Parse Xcode 7 beta
Asked Answered
F

6

21

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.

Frolic answered 8/7, 2015 at 14:15 Comment(0)
F
66

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

Frolic answered 8/7, 2015 at 16:17 Comment(3)
I am using my own framework and simply added it to the Project, but the search path was missing. This seems only to happen in the Beta right now. Hopefully this will be fixed again. I also have to add the framework under General>Embedded Binaries by my self!Femi
lol, this helped me. I actually don't know how it worked magically, but, anyway, it works.Bustos
it's 'Framework Search Path' not 'Frameworks Search Path'Grandmotherly
S
7

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.

Symer answered 22/12, 2015 at 23:9 Comment(4)
This worked for me as well!! Was desperately banging my head against solutions marked as accepted for long!Indiscrimination
My framework name doesn't have space. Still it shows ' framework not found RWUIControls 'Cerated
Thanks Keeth. your answer helped me .Gaillardia
Same problem exists in the release version of Xcode 8 - doesn't add the search path automatically, so you have to do it manually.Finback
V
4

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

Vidda answered 8/7, 2015 at 14:51 Comment(2)
Parse is included in the "Link Binary With Libraries" section. The same with Bolts.Frolic
included in the Link Binary library section.Cerated
W
0

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

Whitesell answered 19/9, 2019 at 1:37 Comment(0)
J
0

Even I got the same issue. In my case, somehow there were multiple frameworks added to the project, and one of the framework is empty. After removing the empty framwork it started compiling.

Jaye answered 6/10, 2020 at 11:13 Comment(1)
Hi, This cannot be considered as a complete answer. You can add it as a comment instead when you have enough reputation to :)Flatting
H
0

This can also happen if you accidentally break your framework, e.g. if the framework contained an Alias, which is no longer there.

This can happen if you zip the file, as the Alias contains a direct link to the orignal file, and isnt updated when you move the zip. E.g. in my case I recieved a zip of the opencv framework, and inside it had just the 'Versions' folder and no aliases to Headers, Resources or the binary. You can just recreate the aliases, or compile the framework from source again.

This took a while to figure out!

Heatherheatherly answered 16/11, 2021 at 9:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.