Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5.1 XCode Compile Error

Discussion in '5.1 Beta' started by jasonmcguirk, Apr 22, 2015.

  1. jasonmcguirk

    jasonmcguirk

    Joined:
    Apr 20, 2013
    Posts:
    10
    Hey Folks,

    Just updated to Unity 5.1 to try all the new awesome IL2CPP enhancements. The build completes and gets passed off to xcode, but seems like there's a new compilation error for iOS:

    [exec] /Users/Shared/Jenkins/Home/jobs/honorbound-dev-ios-player/workspace/Client/Build/iPhone/Classes/Unity/UnityInterface.h:69:28: error: must use 'struct' tag to refer to type 'RenderSurfaceBase'
    [exec] void UnityBlitToBackbuffer(RenderSurfaceBase* srcColor, RenderSurfaceBase* dstColor, RenderSurfaceBase* dstDepth);
    [exec] ^
    [exec] struct
    [exec] /Users/Shared/Jenkins/Home/jobs/honorbound-dev-ios-player/workspace/Client/Build/iPhone/Classes/Unity/UnityInterface.h:69:57: error: must use 'struct' tag to refer to type 'RenderSurfaceBase'
    [exec] void UnityBlitToBackbuffer(RenderSurfaceBase* srcColor, RenderSurfaceBase* dstColor, RenderSurfaceBase* dstDepth);
    [exec] ^
    [exec] struct
    [exec] /Users/Shared/Jenkins/Home/jobs/honorbound-dev-ios-player/workspace/Client/Build/iPhone/Classes/Unity/UnityInterface.h:69:86: error: must use 'struct' tag to refer to type 'RenderSurfaceBase'
    [exec] void UnityBlitToBackbuffer(RenderSurfaceBase* srcColor, RenderSurfaceBase* dstColor, RenderSurfaceBase* dstDepth);
    [exec] ^
    [exec] struct
    [exec] /Users/Shared/Jenkins/Home/jobs/honorbound-dev-ios-player/workspace/Client/Build/iPhone/Classes/Unity/UnityInterface.h:83:27: error: must use 'enum' tag to refer to type 'UnityFramebufferTarget'
    [exec] void UnityBindFramebuffer(UnityFramebufferTarget target, int fbo);
    [exec] ^
    [exec] enum
    [exec] 4 errors generated.
    [exec]
    [exec] ** BUILD FAILED **


    Couldn't find anything specific to these headers in GOOG - wondering if my build has an unsupported player option checked

    Cheers!

    Jason McGuirk
     
  2. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
  3. jasonmcguirk

    jasonmcguirk

    Joined:
    Apr 20, 2013
    Posts:
    10
    Rad - thanks, I'll give that a shot today

    Cheers!