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

Can't use IAP on tvOS platform. 2.2.7 codesign error, 3.0.1 doesn't compile.

Discussion in 'Unity IAP' started by In2Play, Mar 10, 2021.

  1. In2Play

    In2Play

    Joined:
    Apr 25, 2016
    Posts:
    63
    Using Unity IAP Purchases version 2.2.7: throws codesigning error when trying to upload the tvOS app.






    Then I saw that the new IAP Update 3.0.1 came out and I guess I was lucky.. but not for long since the build doesn't even complie on tvOS.




    What should I to?
     
  2. In2Play

    In2Play

    Joined:
    Apr 25, 2016
    Posts:
    63
    Additionally if I comment out the line 311 I get following errors

     
  3. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    @In2Play What version of Unity and XCode are you using?
     
  4. In2Play

    In2Play

    Joined:
    Apr 25, 2016
    Posts:
    63
    Currently I'm using Unity 2019.4.14f1 and latest XCode 12.4 (12D4e). I apologize for not providing this information in the original post.


    Also another thing I'd like to mention regarding IAP Version as it may be important. In the package manager it says the installed version is 2.1.1 but when I run the code it says it's 2.2.7. Please see the image for the reference.

     
    Last edited: Mar 11, 2021
  5. In2Play

    In2Play

    Joined:
    Apr 25, 2016
    Posts:
    63
    After few hours here are results (using Unity 2019.4.14f1):

    - Tried with many IAP 2.X packages - with the same codesign issue
    - Tried again with the newest 3.0.1 IAP but now:

    1. I again commented the line 301 that was giving me the error while building
    - After that I've got a few errors mentioned in my second post.
    2. Then I've added Storekit framework to the Unity target
    - The result was that build successfully completed. It also went through codesigning without errors and it has been successfully uploaded to the App Store.


    Conclusion:

    1. The issue is with 2.X IAP packages on tvOS (codesigning issue). How nobody reported that issue until now?
    2. With 3.0.1 package there is an issue that it throws that "unsupported" error on tvOS. This is annoying because every time I build the project and send it to the device I must comment that particular line. Is there a way I could do this in Unity?

    Now I only need to test if IAP works as expected and then I'll need to upload the real build.

    I'll still monitor this thread for the solution on how to solve that issue with the building error.
     
    nicholasr likes this.
  6. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    We will need to check, no immediate answers yet.
     
    In2Play likes this.
  7. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    We have reproduced, and working on it. Hopefully will be included in an upcoming release.
     
  8. In2Play

    In2Play

    Joined:
    Apr 25, 2016
    Posts:
    63
    Thank you for your feedback.

    However there is another issue with the IAP , building for macOS. It crashes the application on start. The bug is briefly mentioned in this thread, and I also submitted a bug report for it. So you may want to look into it, because as far as I'm concerned there is impossible to submit a working macOS app with IAP included.