AVSLab / basilisk

Astrodynamics simulation framework
https://hanspeterschaub.info/basilisk
ISC License
147 stars 61 forks source link

Xcode 16 issue #840

Open schaubh opened 3 weeks ago

schaubh commented 3 weeks ago

Describe the bug After upgrading to Xcode 16 or 16.1, then running python conanfile.py, I get the error message saying:

/Users/hp/Repos/basilisk/dist3/Basilisk/architecture/moduleIdGeneratorPYTHON_wrap.cxx:198:11: fatal error: 
      'Python.h' file not found
  198 | # include <Python.h>
      |           ^~~~~~~~~~
1 error generated.

To reproduce Steps to reproduce the behavior:

  1. I'm trying both python 3.11 or 3.12 and get this build error
  2. If I open the Xcode project and build for profile I get the same error. However, here I can just build again and it gets past this error.

Expected behavior The command python conanfile.py should configure BSK and compile it without issues.

Desktop (please complete the following information):

schaubh commented 3 weeks ago

To the best of my knowledge this appears to be an issue with Xcode 16, downgrading to Xcode 15 readily resolves this problem. In the mean time, to compile from the command line on macOS, you can use the makefile approach by using:

python conanfile.py --generator "Unix Makefiles"