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

Author Topic: I can't use SFML on xCode.  (Read 940 times)

0 Members and 1 Guest are viewing this topic.

chrishaku

  • Newbie
  • *
  • Posts: 3
    • View Profile
I can't use SFML on xCode.
« on: October 09, 2023, 03:54:27 pm »
Hello,

My name is Christophe.
Before I used SFML on a Windows computer with VS and it worked very well.

Now, I use a macbookPro M2, with mac os x 14.0 Sonoma and I can't use SFML with xCode even I follow the tutorial step by step.
The templates aren't present with 2.6, so I tried to use those from the previous version without success.

I get the following message :
Command PhaseExecution failes with a nonzero exit code.

I use SFML 2.6.0 for mac arm.

So can you help me get SFML to work on my mac with xCode please?

Christophe


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: I can't use SFML on xCode.
« Reply #1 on: October 10, 2023, 07:46:55 am »
Yeah, looks like I forgot to include the Xcode template when creating the macOS release package. It's still in the source though: https://github.com/SFML/SFML/tree/master/tools/xcode/templates

When I enter the error message into a web search, I get a various selection of threads, talking about different root causes.
Have you tried some of those suggestions?
https://developer.apple.com/forums/thread/123790
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

chrishaku

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: I can't use SFML on xCode.
« Reply #2 on: October 10, 2023, 02:41:55 pm »
Thank you for taking the time to respond to me.

Unfortunately, the manipulation doesn't work here. The message remains the same.

I also tried the other template, the CLT version. This time the build succeeded but another error message appeared.
Traditionnal headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO.

For both templates, I use the code code give with the template with no modification.

chrishaku

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: I can't use SFML on xCode.
« Reply #3 on: October 12, 2023, 03:18:47 pm »
Hello,

That now works for me but only the CLT version.
I link manualy the framework path on the tab "build phase" of xCode.

I couldn't get it to work the App version.

 

anything