Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS version error: "macOS 11 (1107) or later required, have instead 11 (1106)" #535

Open
knutnergaard opened this issue Oct 16, 2024 · 0 comments

Comments

@knutnergaard
Copy link

knutnergaard commented Oct 16, 2024

I'm encountering an issue when trying to build my app using py2app. The error message I receive is:

macOS 11 (1107) or later required, have instead 11 (1106)

I have updated my macOS to version 11.7.10, but the error persists, and it seems that the build process is not recognizing the updated version. I have attempted setting MACOSX_DEPLOYMENT_TARGET manually, but it didn't resolve the issue.

Steps to Reproduce:

  1. Update to macOS 11.7.10.
  2. Use py2app to bundle a Python app.
  3. Run the following command: python3 setup.py py2app
  4. Encounter the error: macOS 11 (1107) or later required, have instead 11 (1106).

Environment Details:

  • macOS Version: 11.7.10
  • Python Version: 3.10 (via pyenv)
  • py2app Version: 0.28.8
  • Other Dependencies: None

Relevant Files:

  • Example setup.py:
    from setuptools import setup
    
    APP = ['myApp.py']  # Replace with the name of your main Python file
    OPTIONS = {
      'argv_emulation': True,
      'plist': {
          'CFBundleName': 'SMuFLview',
          'CFBundleDisplayName': 'SMuFLview',
          'CFBundleIdentifier': 'com.yourdomain.smuFLview',
          'CFBundleVersion': '0.1',
          'CFBundleShortVersionString': '0.1',
        },
    }
    
    setup(
        app=APP,
        options={'py2app': OPTIONS},
        setup_requires=['py2app'],
    )

What I’ve Tried:

  • Manually setting MACOSX_DEPLOYMENT_TARGET=11.7 before running setup.py.
  • Upgrading to the latest version of py2app via pip.
  • Verifying my macOS version using python3 -c 'import platform; print(platform.mac_ver())', which returns '11.7.10'.

Is this a known issue with py2app or could it be related to my specific setup? Any guidance would be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant