Search Unity

How to get rid of the Warnings in Xcode (Semantic Issue)?

Discussion in 'iOS and tvOS' started by JohannChristoph, Dec 5, 2011.

  1. JohannChristoph

    JohannChristoph

    Joined:
    Jun 21, 2009
    Posts:
    141
    Is there a way to get rid of the following Warnings in Xcode?
    I expected these issues to be fixed in the Unity-Version 3.4.2f3.

    In the AppConntroller.mm:
    Semantic Issue
    Enumeration values 'kScreenOrientationUnknown','autorotation', and 'kScreenOrientationCount' not handled in switch
    Semantic Issue
    Incompatible pointer types passing 'UIView *' to parameter of type 'EAGLView *'
     
  2. JohannChristoph

    JohannChristoph

    Joined:
    Jun 21, 2009
    Posts:
    141
    I'd already be glad about a simple 'No'.
    Or if 'Yes', plus a little tiny hint.

    Thanks in advance!
     
  3. ptdnet

    ptdnet

    Joined:
    Apr 20, 2011
    Posts:
    100
    you can always add some "default: break;" statements to the switch blocks if it really bothers you.
     
  4. goat

    goat

    Joined:
    Aug 24, 2009
    Posts:
    5,182
    Those are defined left out on purpose because of a bug. You can edit the code, adding those enums to the switch and break without doing anything...but I wouldn't. It will be fixed soon enough I reckon.
     
  5. jcarpay

    jcarpay

    Joined:
    Aug 15, 2008
    Posts:
    561
    I like to know this as well. Are apps rejected for these warnings?
     
  6. tonyd

    tonyd

    Joined:
    Jun 2, 2009
    Posts:
    1,224
    No, my latest App was just approved, warnings and all.

    But hopefully a new bugfix is on it's way to fix this and the many other things iOS 5 and the new version of Xcode seemed to break...
     
  7. JohannChristoph

    JohannChristoph

    Joined:
    Jun 21, 2009
    Posts:
    141
    Thanks for the information! Yeah, I think I wait a little bit. But I feel also better now, knowing that apps will get accepted with this warnings.
     
  8. pepefirst

    pepefirst

    Joined:
    Feb 24, 2011
    Posts:
    70
    Last edited: Dec 7, 2011
  9. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,734
    Yeah same warning here and app passed the validation process....
    But hummm waiting for a fix as well...