errors with python 2.7 against 10.6 sdk

Issue #142 resolved
Marc Van Olmen created an issue

There are 2 errors:

a) objc_support.m

if PyObjC_BUILD_RELEASE < 1008 || !defined(LP64)

@interface Object (PyObjCSupport)

b) objc-runtime-compat.m

if PyObjC_BUILD_RELEASE < 1008

@implementation Object (NSObjectCompat) - (id)self { return self; }

In both cases the compiler is suggesting that this maybe should be NSObject instead of Object.

When I replace Object with NSObject

Other issue i see after that it is trying to compile SpriteKit but SpriteKit is not part of the 10.6SDK not sure why it tries to compile that one.

I attached terminal output.

Comments (3)

  1. Ronald Oussoren repo owner

    This should be fixed in the 3.1.1 release.

    Not that the category on class Object is intentional, the old Objective-C runtime defines such a class and PyObjC tries to avoid crashing when code somehow manages to get hold of an instance of that class.

  2. Log in to comment