ronaldoussoren / pyobjc

The Python <-> Objective-C Bridge with bindings for macOS frameworks
https://pyobjc.readthedocs.io
563 stars 47 forks source link

Building 10.2 results in failure due to BrowserEngineKit #605

Closed WardsParadox closed 6 months ago

WardsParadox commented 6 months ago

Describe the bug When installing with pip to compile, pyobjc-framework-BrowserEngineKit always fails to build it's wheel with:

      Modules/_BrowserEngineKit.m:6:9: fatal error: 'BrowserEngineKit/BrowserEngineKit.h' file not found
      #import <BrowserEngineKit/BrowserEngineKit.h>
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

Platform information

To Reproduce pip install --no-cache --no-binary :all: pyobjc

Expected behavior Wheel built as expected.

Additional context Add any other context about the problem here.

ronaldoussoren commented 6 months ago

Do you have the most recent Xcode or Compiler Tools installed? The PyObjC build process assumes that the most recent SDK for the current OS is available.

As a workaround, don't use --no-binary :all:.

WardsParadox commented 6 months ago

Dropping back to 10.1 worked. Will update Xcode to latest and try again.

WardsParadox commented 6 months ago

Yup that worked.