Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Compilation errors using Unity IAP 1.21, Unity 2018.2.0f2, IL2CPP for macOS

Discussion in 'Unity IAP' started by UsernameKZ, Aug 29, 2018.

Thread Status:
Not open for further replies.
  1. UsernameKZ

    UsernameKZ

    Joined:
    Jul 30, 2018
    Posts:
    4
    After enabling IL2CPP for our Standalone builds, our OSX builds are failling with the following linker error:



    Our other platforms are all building fine w\ IL2CPP (iOS, Android, PC)

    I've already tried re-installing the IAP plugin and checking that libraries are marked for the correct platforms in the plugin, but I'm not sure what else to try... Note - we aren't actually using the IAP service from PC/Mac, but I'm not aware of any way to disable it. Any guidance would be appreciated!
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Do you just want to remove IAP from your project? If you are not using it, you likely do not want to include it. You can disable IAP in the Unity Editor Services window (Window/General/Services). Alternatively, you can use #ifdef directives to conditionally include code. There are examples in IAPDemo.cs that is included in the plugin.
     
  3. UsernameKZ

    UsernameKZ

    Joined:
    Jul 30, 2018
    Posts:
    4
    We are using it for our mobile platforms. :D

    Our game runs on PC/Mac/Android/iOS
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Understood. Then ifdefs should work (unless there is a wider issue that we are not aware of)
     
  5. UsernameKZ

    UsernameKZ

    Joined:
    Jul 30, 2018
    Posts:
    4
    I tried ifdefing all our relevant code out for non-mobile platforms, but I'm still seeing the same linker error.

    Can you be any more specific about what ifdefs in the IAPDemo to emulate? There are a lot of them in there.
     
  6. UsernameKZ

    UsernameKZ

    Joined:
    Jul 30, 2018
    Posts:
    4
    Actually -- I just created a new empty project, enabled and imported the IAP library and tried building for Mac with IL2CPP and I get the same error. Definitely seems like a wider issue.
     
  7. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    I will test here also, thank you for checking with a new project.
     
  8. jkampitakis

    jkampitakis

    Joined:
    Dec 27, 2015
    Posts:
    56
    Do we have any news on that error? We can't build for MacOSX using the Unity IAP....
     
  9. jkampitakis

    jkampitakis

    Joined:
    Dec 27, 2015
    Posts:
    56
    Our build works when using the Mono Scripting backend.
     
  10. SuperNetMachine

    SuperNetMachine

    Joined:
    Jun 11, 2018
    Posts:
    1
    Any updates on this?
     
  11. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you try with the latest release (which is 1.20.1, which supersedes 1.21)
     
  12. seven_

    seven_

    Joined:
    Sep 30, 2014
    Posts:
    42
    Do you have any updates on IAP on MacOS???? We use 1.20.1 and now even Unity 2018.3. Build breaks when using IL2CPP in an empty project with merely UnityIAP enabled and imported (so nothing else could cause this)... Mono works, but has its own issues on MacOS...
    Are you actually still really supporting MacOS (or generally anything else than iOS/Android).
     
  13. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    As you point out, we are focusing on iOS and Android as priorities and resources allow.
     
  14. seven_

    seven_

    Joined:
    Sep 30, 2014
    Posts:
    42
    So, does this mean not even simple bugs will be fixed for non-Android/iOS targets?
    Never read a statement from Unity being this clear before. You might probably want to make this official, e.g., removing MacOS support from your IAP promotion pages?
     
  15. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    That is not what I said! "As priorities and resources allow" to be clear.
     
  16. seven_

    seven_

    Joined:
    Sep 30, 2014
    Posts:
    42
    I see... So, is there any timeline on when IL2CPP in conjunction with IAPs might work on MacOS?
     
  17. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    No timeline. It is currently in the issue backlog.
     
  18. PixelJ

    PixelJ

    Unity Technologies

    Joined:
    Nov 1, 2018
    Posts:
    216
    Is there an issue tracker link for this bug? I've just run into this.
     
  19. rysenko

    rysenko

    Joined:
    Sep 6, 2015
    Posts:
    5
    Facing same issue on Unity 2018.4.0 LTS + Unity IAP 1.22.0 + IL2CPP backend. Everything works with Mono2x, but this bug stops me from switching to IL2CPP. Can you at least point me to bugtracker issue to look after?

    Code (csharp):
    1. Undefined symbols for architecture x86_64:
    2.   "_getUnityPurchasingAppReceipt", referenced from:
    3.       _iOSStoreBindings_getUnityPurchasingAppReceipt_m6A60BAEE03E897FA0A848C6D14E86BDBEBFBCAA8 in D00652F9D1108F7E082909C0D5EADE91.o
    4.       _iOSStoreBindings_get_appReceipt_mCD0A2253F585712CF562E13585D8EC21B8EA2A5D in D00652F9D1108F7E082909C0D5EADE91.o
    5.      (maybe you meant: _OSXStoreBindings_getUnityPurchasingAppReceipt_m702EC6E592BBF681A0A84538DFEA076459A6D702, _iOSStoreBindings_getUnityPurchasingAppReceipt_m6A60BAEE03E897FA0A848C6D14E86BDBEBFBCAA8 )
    6.   "_setUnityPurchasingCallback", referenced from:
    7.       _iOSStoreBindings_setUnityPurchasingCallback_m34787735B6A22142E8DB081CA3E90EFA86BAA564 in D00652F9D1108F7E082909C0D5EADE91.o
    8.       _iOSStoreBindings_SetUnityPurchasingCallback_mDC80117EBA8286D310D1E65EF07852332928AA11 in D00652F9D1108F7E082909C0D5EADE91.o
    9.      (maybe you meant: _OSXStoreBindings_setUnityPurchasingCallback_m4C92A54F47D5AD664A4F78AFDBB43C0E6B7FFB97, _iOSStoreBindings_setUnityPurchasingCallback_m34787735B6A22142E8DB081CA3E90EFA86BAA564 )
    10.   "_unityPurchasingAddTransactionObserver", referenced from:
    11.       _iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074 in D00652F9D1108F7E082909C0D5EADE91.o
    12.       _iOSStoreBindings_AddTransactionObserver_m7D55A46F27FDCC9B54367D761B4339CE85A389B6 in D00652F9D1108F7E082909C0D5EADE91.o
    13.      (maybe you meant: _OSXStoreBindings_unityPurchasingAddTransactionObserver_mE966496A18B53467C15198051687E4075E74DD3C, _iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074 )
    14.   "_unityPurchasingRestoreTransactions", referenced from:
    15.       _iOSStoreBindings_unityPurchasingRestoreTransactions_m9225BF72B53FE29D478C2A45308D70308597C405 in D00652F9D1108F7E082909C0D5EADE91.o
    16.       _iOSStoreBindings_RestoreTransactions_m86D1878BBA41131670DCCCE4F7675BF8D59D3F10 in D00652F9D1108F7E082909C0D5EADE91.o
    17.      (maybe you meant: _iOSStoreBindings_unityPurchasingRestoreTransactions_m9225BF72B53FE29D478C2A45308D70308597C405, _OSXStoreBindings_unityPurchasingRestoreTransactions_m80BB9063E4017D66A850FC9B5DF913D0AD9241C7 )
    18.   "_unityPurchasingPurchase", referenced from:
    19.       _iOSStoreBindings_unityPurchasingPurchase_mFD22E87273DE76B0601FA15BCEF88912A16DD4B0 in D00652F9D1108F7E082909C0D5EADE91.o
    20.       _iOSStoreBindings_Purchase_m3A304C554FE3E97D24AC78102D46E205EDAD6773 in D00652F9D1108F7E082909C0D5EADE91.o
    21.      (maybe you meant: _OSXStoreBindings_unityPurchasingPurchase_m934CC8567A5B2054950D231AAC29F221E18D7DD8, _iOSStoreBindings_unityPurchasingPurchase_mFD22E87273DE76B0601FA15BCEF88912A16DD4B0 )
    22.   "_unityPurchasingFinishTransaction", referenced from:
    23.       _iOSStoreBindings_unityPurchasingFinishTransaction_mD9D2C05357EF7ADC5F5343BB87CC13CBD751653F in D00652F9D1108F7E082909C0D5EADE91.o
    24.       _iOSStoreBindings_FinishTransaction_m1C00AB672D9F07DA68EA1B292F0A9F342B104A92 in D00652F9D1108F7E082909C0D5EADE91.o
    25.      (maybe you meant: _iOSStoreBindings_unityPurchasingFinishTransaction_mD9D2C05357EF7ADC5F5343BB87CC13CBD751653F, _OSXStoreBindings_unityPurchasingFinishTransaction_m145373244A1B58D5642E452D85C0ED21F9C07946 )
    26.   "_unityPurchasingRetrieveProducts", referenced from:
    27.       _iOSStoreBindings_unityPurchasingRetrieveProducts_m2A041EE0C0BC00F62F3A3FFA9F9E8ACFEB958518 in D00652F9D1108F7E082909C0D5EADE91.o
    28.       _iOSStoreBindings_RetrieveProducts_m656192EA9DE8CB00AF315BF6E28B051B2AD1345E in D00652F9D1108F7E082909C0D5EADE91.o
    29.      (maybe you meant: _iOSStoreBindings_unityPurchasingRetrieveProducts_m2A041EE0C0BC00F62F3A3FFA9F9E8ACFEB958518, _OSXStoreBindings_unityPurchasingRetrieveProducts_m762C673967DF6672FE9D65DEE647142F0601572B )
    30.   "_unityPurchasingInterceptPromotionalPurchases", referenced from:
    31.       _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m01F28E4125E6D167E625F57561DBE34AAB53CCEF in D00652F9D1108F7E082909C0D5EADE91.o
    32.       _OSXStoreBindings_InterceptPromotionalPurchases_mFF8D85DEDEF59020697923491B985357D1EE3DFE in D00652F9D1108F7E082909C0D5EADE91.o
    33.       _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m8C670C20CE1B334EE3D60D07FF893511B3EF2D4C in D00652F9D1108F7E082909C0D5EADE91.o
    34.       _iOSStoreBindings_InterceptPromotionalPurchases_m4EA28EDA8038AC202207C4D13365A12C62F96A3C in D00652F9D1108F7E082909C0D5EADE91.o
    35.      (maybe you meant: _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m01F28E4125E6D167E625F57561DBE34AAB53CCEF, _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m8C670C20CE1B334EE3D60D07FF893511B3EF2D4C )
     
  20. greay

    greay

    Joined:
    Mar 23, 2011
    Posts:
    88
    Since we have no timeline for this being fixed, does anybody know which combination of older version of Unity and/or Unity IAP works? I know it worked in the past, but I can't remember what version that was.
     
  21. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    Please try deleting the Library folder before building the project, and then restart Unity Editor, to build the project.
     
  22. rysenko

    rysenko

    Joined:
    Sep 6, 2015
    Posts:
    5
    I've tried that. Took much time for full reimport, but result is the same, getting the error again.
     
  23. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    I'm sorry that didn't solve your issue. Can you build a minimal project to reproduce the issue. I have a video to reproduce and solve this issue,
    .
    If this does not solve your issue, can you kindly tell me your reproduce steps? Because we need to make sure that something other than IAP is causing you to still have this issue.
     
    DavidSch likes this.
  24. HiddenJason

    HiddenJason

    Joined:
    Apr 18, 2016
    Posts:
    23
    I reported this over a year ago (July 2018) with a project to reproduce it. Unity's response was:

    The ticket (1056614) is still open, and it still is a problem with the newly-released Unity IAP 1.23 and in 2019.1.14f1. Is there any plan to *ever* fix this?
     
  25. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    It should be in the next release or next after
     
    Last edited: Oct 30, 2019
    HiddenJason likes this.
  26. wagenheimer

    wagenheimer

    Joined:
    Jun 1, 2018
    Posts:
    322
    That is sad! The same bug is still on Unity 2019.3b8.

    In which release it will be fixed?
     
  27. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Not an Editor release, an IAP update. And unfortunately might not make the next release, but then would be the one after.
     
  28. wagenheimer

    wagenheimer

    Joined:
    Jun 1, 2018
    Posts:
    322
    Is there some workaround? Deleting Library Folder didn't work for me.
     
  29. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Not that I am aware of, sorry
     
  30. vincent-savysoda

    vincent-savysoda

    Joined:
    Dec 19, 2016
    Posts:
    33
    We're getting a similar problem currently with our project with MacOS IL2CPP builds(works on Mono) on Unity 2018.4.14f1:

    Code (CSharp):
    1. Undefined symbols for architecture x86_64:
    2.   "_unityPurchasingAddTransactionObserver", referenced from:
    3.       _iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074 in 5F4D7CA05BDE8743AAF052F0FFCF8073.o
    4.       _iOSStoreBindings_AddTransactionObserver_m7D55A46F27FDCC9B54367D761B4339CE85A389B6 in 5F4D7CA05BDE8743AAF052F0FFCF8073.o
    5.      (maybe you meant: _OSXStoreBindings_unityPurchasingAddTransactionObserver_mE966496A18B53467C15198051687E4075E74DD3C, _iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074 )
    6.   "__moPubGetLogLevel", referenced from:
    7.       _MoPubiOS_get_SdkLogLevel_mA36E46E9E88C565ADEF5CCA08E7101C4F33EEC82 in 21C5F7A2AAA8E07D98AA41463E3FDC17.o
    8.       _MoPubiOS__moPubGetLogLevel_m24B6938FF1C1F5F1A684DAC4B0586D6356DF50B5 in 21C5F7A2AAA8E07D98AA41463E3FDC17.o
    9.      (maybe you meant: _MoPubiOS__moPubGetLogLevel_m24B6938FF1C1F5F1A684DAC4B0586D6356DF50B5)
    10.   "__moPubShowRewardedVideo", referenced from:
    11.       _MoPubiOSAdUnit_ShowRewardedVideo_m591D2C7FC7D991134C90B5A95B671E3819BBD32B in 21C5F7A2AAA8E07D98AA41463E3FDC17.o
    12.  
    This needs to be fixed urgently because we can't update our MacOS builds currently for our game thanks to Apple's new policy on 64-bit builds. This is currently holding up our feature releases on all our platforms unless we decide to exclude MacOS users from this, which would be terrible.

    I've already tried the above suggested solutions.
     
    Last edited: Dec 16, 2019
  31. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    We are working on this for an upcoming release, likely first part of January.
     
  32. vincent-savysoda

    vincent-savysoda

    Joined:
    Dec 19, 2016
    Posts:
    33
  33. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    The current plan is not in the next release unfortunately, but hopefully the one after. So likely a few months out. It's an issue with limited resources vs priorities.
     
  34. thomas-savysoda

    thomas-savysoda

    Joined:
    Dec 20, 2016
    Posts:
    8
    @JeffDUnity3D Is there any public issue page we can track? That way we don't need to keep bugging you :) Thanks!
     
  35. vincent-savysoda

    vincent-savysoda

    Joined:
    Dec 19, 2016
    Posts:
    33
    Just wanna emphasize that this bug is causing us to lose our paying Mac users. Please try and get the Unity team to consider this a high priority issue. @JeffDUnity3D
     
    UNSH and HdG_S like this.
  36. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    It's been... 6 months for the next release of IAP?
    This is insane at this point. What's going on? Why can't this be fixed?
     
  37. Basti_TinyRoar

    Basti_TinyRoar

    Joined:
    Oct 4, 2016
    Posts:
    11
    I'm also facing this. Any workarounds found?
     
  38. andrew210

    andrew210

    Joined:
    Apr 23, 2014
    Posts:
    241
    Also looking for a fix for this issue, Macs should not be listed as a supported platform for IAP if its not supported. Wasted many hours trying to find a solution for this before finding this thread.
     
  39. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    I wish I would have said last year: You will get hit by a worldwide pandemic before Unity releases an update with a fix.
    I would have sounded crazy and yet...

    ps. I'm gonna give another try. You will get hit by a meteorite before Unity fixes this.
     
  40. wagenheimer

    wagenheimer

    Joined:
    Jun 1, 2018
    Posts:
    322
    Still waiting for a fix for more than 1 year to release an update to my game.

    Is there an Bug Report that we all can vote? Maybe with that, if we all vote, they will see the urgency and accelerate the release of a solution.
     
  41. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    This issue is already prioritized and I continue to mention it to the IAP team. We are greatly resource constrained at the moment. The issues are in our internal bug system and even then the updates are delayed, solely due to the constraints on the developer. We are working to improve this situation.
     
    andrew210 and wagenheimer like this.
  42. austin-beck

    austin-beck

    Joined:
    Oct 28, 2015
    Posts:
    19
    I have two large projects that are now being hindered by this issue. Would love to see it fixed sooner rather than later.
     
  43. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Hey this thread has been brought to my attention. While I am not in the IAP team and cannot fix the bug, I made a small workaround you can do that will unblock the build for you. Just extract the file I uploaded to your project under Assets or any of its subdirectories.

    I'm sorry this took two years. It shouldn't have.
     

    Attached Files:

  44. WildWorks

    WildWorks

    Joined:
    Nov 29, 2016
    Posts:
    1
  45. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you confirm that this work-around worked for you? Is IAP working for you on MacOS with IL2CPP?
     
  46. austin-beck

    austin-beck

    Joined:
    Oct 28, 2015
    Posts:
    19
    I work with them and just finished confirming the fix works for us. TIL that you can drop random C++ source files into the project and treat them like plugins so that's cool too.
     
  47. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
  48. wagenheimer

    wagenheimer

    Joined:
    Jun 1, 2018
    Posts:
    322
    WOW!!!! You are a Life Saver!!! Thank you a lot for this!
     
  49. GrumpyScott

    GrumpyScott

    Joined:
    Sep 29, 2019
    Posts:
    9
  50. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
Thread Status:
Not open for further replies.