Cannot create OCUnit in GNUstep / Win32 - objc / runtime.h not found

I am trying to use the unit test objective-c classes created in the MinGW shell. Since OCUnit was covered by Apple for Xcode, it looks like the developer, Sen: te, has now focused on this. So, the last distribution source that claims to support GNUstep is v27.

Anyway, I downloaded tarball v27 and tried to build MinGW. First you need to create senator classes: using the SenFoundation \ GSmakefile file.

It goes well until I get:

 Compiling file SenInvocationEnumerator.m ...
 In file included from SenInvocationEnumerator.m:10:
 SenInvocationEnumerator.h:13:25: warning: objc/runtime.h: No such file or directory

As far as I can tell, there is no such file in my GNUstep tree or anywhere else on my disk.

Has anyone been successful in this, or at least knows where objc / runtime.h comes from?

+3
1

, SenFoundation GNUstep, #import:

:

  • SenClassEnumerator.h
  • SenInvocationEnumerator.h

    :

        #import <objc/runtime.h>
    

    To:

        #import <GNUstepBase/GSObjCRuntime.h>
    

:

  • NSInvocation_SenTesting.m
  • NSObject_SenRuntimeUtilities.m

    :

        #import <objc/objc-class.h>
    

    To:

        #import <GNUstepBase/../objc/Object.h>
    

:

  • SenClassEnumerator.m

    :

        #import <objc/objc-runtime.h>
    

    To:

        #import <GNUstepBase/../Foundation/NSObjCRuntime.h>
    
+4

Source: https://habr.com/ru/post/1709715/


All Articles