Search Unity

Unity IAP 3.0.2 not compiling for tvOS

Discussion in 'Unity IAP' started by paulcodemonkey, Apr 16, 2021.

  1. paulcodemonkey

    paulcodemonkey

    Joined:
    Oct 11, 2016
    Posts:
    15
    This is with Unity 2020.3.3f1 and Xcode 12.4

    com.unity.purchasing/Plugins/UnityPurchasing/iOS/UnityPurchasing.m:311:40: error: 'presentCodeRedemptionSheet' is unavailable: not available on tvOS


    I believe presentCodeRedemptionSheet was recently added for iOS.
    https://developer.apple.com/documen...6726-presentcoderedemptionsheet?language=objc

    And if you were also interested in some warnings...

    com.unity.purchasing/Plugins/UnityPurchasing/iOS/UnityPurchasing.m:124:62: warning: 'transactionReceipt' is deprecated: first deprecated in tvOS 7.0
    com.unity.purchasing/Plugins/UnityPurchasing/iOS/UnityPurchasing.m:405:50: warning: 'transactionReceipt' is deprecated: first deprecated in tvOS 7.0
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    We will take a look
     
  3. John_Corbett

    John_Corbett

    Joined:
    May 17, 2019
    Posts:
    151
    Hi @paulcodemonkey ,

    We have a fix implemented for this tvOS issue. It should be available shortly in an upcoming version (3.1.0, hopefully).

    Sorry for the inconvenience.