SFML community forums

General => SFML wiki => Topic started by: KRMisha on August 08, 2017, 09:28:11 pm

Title: Tutorial: SFML for iOS
Post by: KRMisha on August 08, 2017, 09:28:11 pm
I've made a very lengthy and in-depth step by step tutorial on how to build SFML for iOS which should address every single one of the little issues people could have with CMake, SFML, or Xcode when trying to compile for iOS. Hopefully this should attract more people who want to use SFML for mobile development!

Link here: https://github.com/SFML/SFML/wiki/Tutorial:-SFML-for-iOS (https://github.com/SFML/SFML/wiki/Tutorial:-SFML-for-iOS)

-Misha
Title: Re: Tutorial: SFML for iOS
Post by: Hiura on August 09, 2017, 09:33:42 am
Thanks for that, looks awesome!
Title: Re: Tutorial: SFML for iOS
Post by: KRMisha on August 09, 2017, 02:27:12 pm
Thanks! One thing that needs to be improved though is figuring out how to compile the libraries for 64-bit iOS. Right now by default the cmake script makes an Xcode project which only compiles the libs for 32-bit, and that's why we need to add $(ARCHS_STANDARD_32_BIT). This works for the simulator, but unfortunately for releasing to the app store Apple requires 64-bit apps. If anyone figures this out please feel free to update the wiki :)
Title: Re: Tutorial: SFML for iOS
Post by: frommar5 on April 27, 2020, 10:18:36 am
This is probably old news, but posting for the benefit of someone who finds this thread in search later:

It seems the 64-bit problem is already solved - the tutotial now reads:

Under "Architectures", set "Architectures" to "Other..." and edit the value to
- For SFML 2.4.2 and earlier: $(ARCHS_STANDARD_32_BIT)
- For SFML 2.5.0 and later: x86_64 and arm64