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

[mono] Fix iOS/tvOS build with Xcode 14 #76433

Merged
merged 1 commit into from
Sep 30, 2022

Commits on Sep 30, 2022

  1. [mono] Fix iOS/tvOS build with Xcode 14

    Before Xcode 14 the `objc_super` struct definition in the SDK headers looked like this:
    
    ```
    #if !defined(__cplusplus)  &&  !__OBJC2__
        /* For compatibility with old objc-runtime.h header */
        __unsafe_unretained _Nonnull Class class;
    #else
        __unsafe_unretained _Nonnull Class super_class;
    #endif
    ```
    
    With Xcode 14 however the iOS/tvOS SDK header was changed to only define `super_class`, but the MacOSX SDK stayed the same.
    
    Added CMake detection of this case so we can compile both on older and newer Xcode SDKs across platforms.
    akoeplinger committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    d16db03 View commit details
    Browse the repository at this point in the history