Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Apple Mach-O Linker Error

Building on my elementary iOS knowledge from the Crystall Ball, Blog Viewer, Ribbit, and Photo Viewer apps learning, I have started a new project.

When I compile the code the build fails with the following log: https://www.dropbox.com/s/mjtlw6ha0nq6tlo/Apple_Mach-O_Linker_Error.png

I included in my Framework folder the latest Parse SDK, namely Parse 2 - see: https://www.dropbox.com/s/muwcr4dnh5n06tg/Parse_2_Framework_Included.png

App-arently it's not enough for the compiler to find it? See the detail log I get: https://www.dropbox.com/s/5q861tvx7i24g8i/Parse_2_not_found.png

Would appreciate any guidance from more experienced developers. At this stage, I am a beginner.

Thanks/Merci/Grazie/Gracias

:) Arsene

3 Answers

I found this on StackOverflow and found it to be helpful:

add the Bolts.framework

you don't need to add Facebook framework or the -ObjC linker. Hope that helps!

Do you have anything in the library search paths of the build settings? Typically I find that when I get linker errors that something is set there that shouldn't be and clearing out whats there fixes the issue. (I can never remember what the build setting is called when I get a Linker Error, and I typically end up pulling this Stack Overflow question up to remember.)

Hi Patrick: Thank you for getting back to me on this.

I tried clearing out the search paths and got an error message that something was missing there. There for I put back what was in there, that is the path to my project folder on my local computer: $(inherited) $(PROJECT_DIR)

Then, I tried to edit the "Parse 2" folder to "Parse_2" to avoid the space and renamed the folder as such in my AppDelegate importation. Still get "cannot find "Parse_2" folder.

Then, I tried to move all classes from the Parse framework in my project folder next to my app's own classes, see:https://www.dropbox.com/s/h41p38xpg2ofymc/Parse_Files.png

Same error message: "Framework not found Parse_2".

Well, I have to say that I am a bit frustrated at this point. Not so sure what to do. My beginners' skills don't allow me to have a good enough understanding of what's going on to fix it.

Any extra help from the community would be much appreciated.

Thanks!

I think that the best course of action here is to start over. Remove the Parse framework from your project don't forget to remove it from the link binary form library build phase) and then re-add the framework again. Then if you're still having issues we can step through it from a fresh start.