Search Issue Tracker

Fixed

Fixed in 2021.3.31f1, 2022.3.11f1, 2023.2.0b12, 2023.3.0a5, 7000.0.0a1

Votes

3

Found in

2021.3.25f1

2022.3.5f1

2023.2.0b3

7000.0.0a1

Issue ID

UUM-44352

Regression

No

[tvOS] Unable to build any tvOS project using Xcode 15 Beta

--

-

Steps to reproduce:
# Create new Unity project
# Switch to AppleTV
# Build the project for AppleTV
# Open generated project with Xcode 15 Beta and try to build

Expected result: Project is built without errors
Actual result: Build fails, errors below:
{code:java}
Cannot find interface declaration for 'GCEventViewController', superclass of 'UnityViewControllerBase'
'UnityViewControllerBase' cannot use 'super' because it is a root class
Property 'modalPresentationStyle' not found on object of type 'UnityViewControllerBase *'
'UnityViewControllerBase' cannot use 'super' because it is a root class
'UnityViewControllerBase' cannot use 'super' because it is a root class
'UnityViewControllerBase' cannot use 'super' because it is a root class
'UnityViewControllerBase' cannot use 'super' because it is a root class
'UnityViewControllerBase' cannot use 'super' because it is a root class
'UnityViewControllerBase' cannot use 'super' because it is a root class
Class 'UnityViewControllerBase' defined without specifying a base class
No known class method for selector 'alloc'
{code}
Reproduced with: 2021.3.25f1, 2022.3.5f1, 2023.2.0b1

Setup:
* macOS 14 Beta with Xcode 15 Beta;
* macOS 13.4.1(c) with Xcode 15 Beta

 

Comments (7)

  1. paulray_eden

    Mar 18, 2024 11:27

    I got the same issue on my side when building for TVOS. Xcode version 15.3 / Unity version 2020.3.38.

    I can manually fix it by adding :
    #import <GameController/GameController.h>
    to the UnityViewControllerBase.h

    But it's really annoying, there is no option in unity for fix it from build parameters ?

  2. Brandon-BBstudio

    Nov 05, 2023 09:03

    This issue must be fixed in Unity 2020.3 LTS.

  3. NeonPotion

    Oct 25, 2023 02:25

    This also happens for 2020.3.48f1

  4. BevvyofFun

    Oct 04, 2023 12:58

    Drunknbass Thank you for that suggestion. I found that once I built in Xcode, I need to click on each of the errors to see the Unity script with the Controller error. I added
    #import <GameController/GameController.h> to the top of each of the scripts with the controller error. This resolved the problem.

  5. BurningthumbStudios

    Sep 22, 2023 21:56

    I'm using Unity 2022.3.10f1 as an FYI so that is 5 updates, and no fix.

  6. BurningthumbStudios

    Sep 22, 2023 21:56

    Still broken on XCode 15 release. But the recommended fix works so it makes one wonder (not really) why Unity have not fixed something so easy in nearly 3 months. Sigh.

  7. drunknbass_

    Jul 29, 2023 16:52

    Add
    #import <GameController/GameController.h>
    to the top of
    UnityViewControllerBase.h

    if this is not working then also link this framework in the target's configuration

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.