Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Problems with setup in Xcode  (Read 2624 times)

0 Members and 1 Guest are viewing this topic.

hyperkub

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Problems with setup in Xcode
« on: October 18, 2017, 06:09:58 pm »
Hello! I am new to this forum and to SFML and I have troubles setting up SFML with Xcode. I tried searching for this exact error but could not find it.

I have OS X Sierra 10.12.5 and Xcode 8.3.3. I followed a Youtube tutorial on setting up SFML with Xcode where the author first copied the frameworks to Library/Frameworks, and then made changes to the Xcode settings to include the headers and dylib's downloaded.

Problems occur when I try to complile a simple window. I get this:

dyld: Library not loaded: @rpath/libsfml-window.2.4.dylib
  Referenced from: /Users/Hyperkub/Library/Developer/Xcode/DerivedData/SFML_Test-axwgsvsxmcwojrbmunigqtxcmwid/Build/Products/Debug/SFML Test
  Reason: image not found
Program ended with exit code: 9

And then I also get a SIGABRT error (o__abort_with_payload) and (6__dyld_start).

Where did I go wrong on this? Thank you for any answers that might solve this!

/Anders

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Problems with setup in Xcode
« Reply #1 on: October 19, 2017, 03:30:22 pm »
Quote
Where did I go wrong on this?

Probably at the step "I followed a Youtube tutorial", because, sadly, all the tutorials I've seen are inaccurate at best. Try again but follow the official text tutorial available on this website. Also, lookup the error on this forum as well -- it was discussed before.

Let us know if you still face this issue after having carefully followed the steps described in our official tutorial.
SFML / OS X developer

hyperkub

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Problems with setup in Xcode
« Reply #2 on: October 19, 2017, 09:12:56 pm »
Thank you for your answear. The thing is, I read that text and could not understand it. Therefore I searched for another tutorial and came across some youtube ones.. I come from a Windows environment and has troubles locating usr/local/lib and include. I have googled for a way to find those folders but with no luck. (All I seem to find it to hit shift-cmnd-G and type it in, but it says folders does not exist).

I will google some more and hopefully get this thing to work somehow.