Skip to content

SDL 2.30.11 fails to build with OS X 10.9 SDK #11905

Closed
@mrpapersonic

Description

@mrpapersonic

Our CI builds fail with an error in SDL_cocoawindow.m:

/Users/runner/work/schismtracker/schismtracker/SDL2-2.30.11/src/video/cocoa/SDL_cocoawindow.m:750:32: error: no known class method for selector 'scheduledTimerWithTimeInterval:repeats:block:'
    liveResizeTimer = [NSTimer scheduledTimerWithTimeInterval:interval
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

That API was added in 10.12 Sierra.

There is an older and very similar API that uses object member functions instead of lambdas: https://developer.apple.com/documentation/foundation/nstimer/1412416-scheduledtimerwithtimeinterval so fixing this may be trivial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions