Python-Apple-support
Python-Apple-support copied to clipboard
Linker fails when building Xcode project on x86_64
Describe the bug
When using an x86_64 Mac with Python 3.12 (or 3.9), it is not possible to build the stub app in the Mac OS app template.
Steps to reproduce
- Download the briefcase macOS Xcode template
- Run
briefcase create macOS Xcode
in thestub
directory - Run
briefcase build macOS Xcode
in thestub
directory - See the following error
Undefined symbols for architecture x86_64:
"_mkfifoat", referenced from:
_os_mkfifo in libPython3.12.a(posixmodule.o)
"_mknodat", referenced from:
_os_mknod in libPython3.12.a(posixmodule.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
** BUILD FAILED **
Expected behavior
The build should complete without issue.
Screenshots
No response
Environment
- Operating System: macOS Big Sur 11.7.8 (x86_64)
- Python version: 3.12
- Xcode version: 13.0
- Software versions:
- Briefcase: 0.3.18
- Toga: 0.4.4
Logs
briefcase.2024_05_22-13_48_08.build.log
Additional context
No response