Check that you can update your Xcode to version 11.5 first !
I can’t share my project without sharing all my sources. Let me make a minimal working example first (will be ready in less than a hour).
Meanwhile you can do the following:
- Get SDL2.framework from the SDL website (there should be a download specific for Xcode)
- Make sure you get a local repository of the Pokitto lib (you can also locate the one in FemtoIDE, but it’s inside the app and not very convenient)
- Make sure you’ve updated Xcode to 11.5
I’ve finished a minimal example (a simple white target with 2 lines)
PokittoApp.zip (85.3 KB)
- Install the SDL2 by using the .dmg file from here: https://libsdl.org/download-2.0.php
- Have a look inside the folder containing the Xcode project, and
ThirdParty inside it.
- (Note - Ignore the readme.txt inside - it’s wrong).
- There is a symbolic link named
- You must make it point at the
SDL2.framework which was installed by the dmg file.
Xcode project configuration
Let’s have a look at things you’ll have to change in the Xcode project:
- Click on 1
- Make sure the right side panel is open - if not, use the rightmost button at the topright (see yellow arrows pointing at what must be Blue).
- Click on 2 - and locate your Pokitto Lib folder. It MUST contains the POKITTO_CORE, POKITTO_SIM, etc folders!
Note: the structure I used is a src/bin subfolders in the main femtoide project. You can use the same trick than for adjusting the PokittoLib to point Xcode at the right src folder of your choice (Identity&Type, Location)!
At this point if I’m not mistaken, no file in the project (expect the not-yet-built product) should be missing.
- A missing file in Xcode is signaled by red text.
If you’re seeing a couple of errors in the pokitto lib AND it’s not linker ones, congratulations, it’s almost working!
- I just made a pull request to fix a last issue.
- It’s strongly advised you’re keeping the Xcode project outside of your source like I did. It tends to be quite polluting.
- Removing a file from Xcode project will ask you to Remove its Reference (only from the Xcode project) or to Move it to the Trash (Both reference & the file).
- When adding a folder/files from outside of the project, uncheck “Copy items if needed” to make sure you’re only referencing files. Do select “Create groups” or the file won’t be added properly.
- If a file isn’t compiling, make sure it’s checked in the “Target Membership” in the right panel!
- they’re usually added to the target when you add them tho.