Search Unity

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

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

  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

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    4,894
    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

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    4,894
    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

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    4,894
    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

    Unity Technologies

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

    seven_

    Joined:
    Sep 30, 2014
    Posts:
    34
    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

    Unity Technologies

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

    seven_

    Joined:
    Sep 30, 2014
    Posts:
    34
    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

    Unity Technologies

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

    seven_

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

    JeffDUnity3D

    Unity Technologies

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

    PixelJ

    Unity Technologies

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

    rysenko

    Joined:
    Sep 6, 2015
    Posts:
    2
    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:
    65
    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:
    10
    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:
    2
    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:
    10
    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.