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. Dismiss Notice

[AppleTV]Unity 5.3.2p2 & Xcode 7.3 Beta 3 : Multiple Keyboard relatives errors

Discussion in 'iOS and tvOS' started by Kiupe, Feb 11, 2016.

  1. Kiupe

    Kiupe

    Joined:
    Feb 1, 2013
    Posts:
    528
    Hi guys,

    With the latest patched Unity version and the latest Xcode beta version my project that used to compile now throws errors like those ones :

    - UIKeyboardFrameEndrUserInfoKey : not available on tvOS
    - UIKeyboardDidShowNotification : not available on tvOS
    - UIKeyboardWillHideNotification : not available on tvOS

    Any idea how to fix that ?

    Thanks
     
  2. greggtwep16

    greggtwep16

    Joined:
    Aug 17, 2012
    Posts:
    1,546
    This is most likely because you updated to the latest xcode beta (Apple still seems to be removing classes all the time from TVOS). To help Unity out and make sure this doesn't get lost I would be sure to submit a bugreport to Unity.
     
  3. Kiupe

    Kiupe

    Joined:
    Feb 1, 2013
    Posts:
    528
    I did report a bug but nothing since then.

    Just to let Unity knows, the bug still exists with Xcode 7.3 beta 4.
     
  4. greggtwep16

    greggtwep16

    Joined:
    Aug 17, 2012
    Posts:
    1,546
    @Kiupe what is the bug report case # and make sure to tag @Mantas Puida to confirm they are aware of the issue.
     
  5. Kiupe

    Kiupe

    Joined:
    Feb 1, 2013
    Posts:
    528
  6. Kiupe

    Kiupe

    Joined:
    Feb 1, 2013
    Posts:
    528
    So, is it possible to know if Unity is aware of that bug ? So far I'm unable to compile my tvOS application !

    Thanks.
     
  7. greggtwep16

    greggtwep16

    Joined:
    Aug 17, 2012
    Posts:
    1,546
    If your looking to compile currently, I would definitely downgrade to the normal version of xcode (not beta). As far as getting confirmation, I rarely get a confirmation on bugreports, but Mantas and the others are usually good at talking to directly. Perhaps give him a PM?
     
  8. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    The bug has been fixed. The fixes will land in one of the next Unity releases.
     
  9. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,445
    Any way we can fix it manually?
    I have the latest beta 5.4 b10 and its not yet fixed there, is there a release planned for this week that has the fix?

    Thanks
     
  10. danydavidpr

    danydavidpr

    Joined:
    Apr 2, 2015
    Posts:
    17
    also there is an error with the app icons
     
  11. danydavidpr

    danydavidpr

    Joined:
    Apr 2, 2015
    Posts:
    17
    /var/folders/ny/41rqj7hd4jzg4tt7_zl56nyh0000gn/T/Large-AppIcon-Scratch-A9EF5FE5-CBAC-4228-ABF5-35215E1C5CAF.xcassets: The last image stack layer with content, "Layer-1", must be a fully opaque bitmap. The pixel at position (0, 0) has an alpha value of 0.
     
  12. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    You can simply remove the offending code. Just delete the lines Xcode throws errors in.

    At least one of the images you are providing must be fully opaque.
     
  13. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Where is this fix, which version of Unity as I tried 5.3.4 and 5.4beta 11
     
  14. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    70
    not in any beta or patch version, the fix is to build in xcode and let it fail - then // out the errors about 6 I think then build again.

    would expect the next beta or patch release to include said fix
     
    MrEsquire likes this.
  15. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Commenting out the lines, did this work for yourself? I tried and it was not that simple as removing or commenting some lines has effect on code below it. Thanks for the information was thinking this was already released in a patch
     
  16. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    70
    yes this worked for me, but I am building for TVos
     
  17. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Ok 5.3.4p1 was released and fixed the issue.
    Im sure the next 5.4beta12 will also include the fix.
    Good work, thank you
     
  18. Xander-Davis

    Xander-Davis

    Joined:
    Apr 23, 2011
    Posts:
    441
    Yeah hoping to see a fix in the next 5.4 beta patch, because commenting out the offending lines breaks Rewired gamepad support for tvOS apparently. Can't use the Nimbus anymore and am stuck with the Siri remote for the time being. :(
     
  19. greggtwep16

    greggtwep16

    Joined:
    Aug 17, 2012
    Posts:
    1,546
    While it will likely be in the next beta patch, if it's holding you up you can probably just take the keyboard.mm from the one that is already patched and manually copy it into whatever Unity version you are using.

    Not 100% guaranteed to work, but if it's stopping your workflow better than waiting for a few days/weeks and doesn't hurt to try.
     
  20. Xander-Davis

    Xander-Davis

    Joined:
    Apr 23, 2011
    Posts:
    441
    Nice! I'll give that a try and report back if it works. Thanks!

    EDIT: I guess Beta 12 should be coming out Monday, which is only a few more days. I guess I'll wait to see if that fixes it first since it's so soon.
     
    Last edited: Mar 25, 2016