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!
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.
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.
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).
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?
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?
Undefined symbols for architecture x86_64:
"_getUnityPurchasingAppReceipt", referenced from:
_iOSStoreBindings_getUnityPurchasingAppReceipt_m6A60BAEE03E897FA0A848C6D14E86BDBEBFBCAA8 in D00652F9D1108F7E082909C0D5EADE91.o
_iOSStoreBindings_get_appReceipt_mCD0A2253F585712CF562E13585D8EC21B8EA2A5D in D00652F9D1108F7E082909C0D5EADE91.o
(maybe you meant: _OSXStoreBindings_getUnityPurchasingAppReceipt_m702EC6E592BBF681A0A84538DFEA076459A6D702, _iOSStoreBindings_getUnityPurchasingAppReceipt_m6A60BAEE03E897FA0A848C6D14E86BDBEBFBCAA8 )
"_setUnityPurchasingCallback", referenced from:
_iOSStoreBindings_setUnityPurchasingCallback_m34787735B6A22142E8DB081CA3E90EFA86BAA564 in D00652F9D1108F7E082909C0D5EADE91.o
_iOSStoreBindings_SetUnityPurchasingCallback_mDC80117EBA8286D310D1E65EF07852332928AA11 in D00652F9D1108F7E082909C0D5EADE91.o
(maybe you meant: _OSXStoreBindings_setUnityPurchasingCallback_m4C92A54F47D5AD664A4F78AFDBB43C0E6B7FFB97, _iOSStoreBindings_setUnityPurchasingCallback_m34787735B6A22142E8DB081CA3E90EFA86BAA564 )
"_unityPurchasingAddTransactionObserver", referenced from:
_iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074 in D00652F9D1108F7E082909C0D5EADE91.o
_iOSStoreBindings_AddTransactionObserver_m7D55A46F27FDCC9B54367D761B4339CE85A389B6 in D00652F9D1108F7E082909C0D5EADE91.o
(maybe you meant: _OSXStoreBindings_unityPurchasingAddTransactionObserver_mE966496A18B53467C15198051687E4075E74DD3C, _iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074 )
"_unityPurchasingRestoreTransactions", referenced from:
_iOSStoreBindings_unityPurchasingRestoreTransactions_m9225BF72B53FE29D478C2A45308D70308597C405 in D00652F9D1108F7E082909C0D5EADE91.o
_iOSStoreBindings_RestoreTransactions_m86D1878BBA41131670DCCCE4F7675BF8D59D3F10 in D00652F9D1108F7E082909C0D5EADE91.o
(maybe you meant: _iOSStoreBindings_unityPurchasingRestoreTransactions_m9225BF72B53FE29D478C2A45308D70308597C405, _OSXStoreBindings_unityPurchasingRestoreTransactions_m80BB9063E4017D66A850FC9B5DF913D0AD9241C7 )
"_unityPurchasingPurchase", referenced from:
_iOSStoreBindings_unityPurchasingPurchase_mFD22E87273DE76B0601FA15BCEF88912A16DD4B0 in D00652F9D1108F7E082909C0D5EADE91.o
_iOSStoreBindings_Purchase_m3A304C554FE3E97D24AC78102D46E205EDAD6773 in D00652F9D1108F7E082909C0D5EADE91.o
(maybe you meant: _OSXStoreBindings_unityPurchasingPurchase_m934CC8567A5B2054950D231AAC29F221E18D7DD8, _iOSStoreBindings_unityPurchasingPurchase_mFD22E87273DE76B0601FA15BCEF88912A16DD4B0 )
"_unityPurchasingFinishTransaction", referenced from:
_iOSStoreBindings_unityPurchasingFinishTransaction_mD9D2C05357EF7ADC5F5343BB87CC13CBD751653F in D00652F9D1108F7E082909C0D5EADE91.o
_iOSStoreBindings_FinishTransaction_m1C00AB672D9F07DA68EA1B292F0A9F342B104A92 in D00652F9D1108F7E082909C0D5EADE91.o
(maybe you meant: _iOSStoreBindings_unityPurchasingFinishTransaction_mD9D2C05357EF7ADC5F5343BB87CC13CBD751653F, _OSXStoreBindings_unityPurchasingFinishTransaction_m145373244A1B58D5642E452D85C0ED21F9C07946 )
"_unityPurchasingRetrieveProducts", referenced from:
_iOSStoreBindings_unityPurchasingRetrieveProducts_m2A041EE0C0BC00F62F3A3FFA9F9E8ACFEB958518 in D00652F9D1108F7E082909C0D5EADE91.o
_iOSStoreBindings_RetrieveProducts_m656192EA9DE8CB00AF315BF6E28B051B2AD1345E in D00652F9D1108F7E082909C0D5EADE91.o
(maybe you meant: _iOSStoreBindings_unityPurchasingRetrieveProducts_m2A041EE0C0BC00F62F3A3FFA9F9E8ACFEB958518, _OSXStoreBindings_unityPurchasingRetrieveProducts_m762C673967DF6672FE9D65DEE647142F0601572B )
"_unityPurchasingInterceptPromotionalPurchases", referenced from:
_OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m01F28E4125E6D167E625F57561DBE34AAB53CCEF in D00652F9D1108F7E082909C0D5EADE91.o
_OSXStoreBindings_InterceptPromotionalPurchases_mFF8D85DEDEF59020697923491B985357D1EE3DFE in D00652F9D1108F7E082909C0D5EADE91.o
_iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m8C670C20CE1B334EE3D60D07FF893511B3EF2D4C in D00652F9D1108F7E082909C0D5EADE91.o
_iOSStoreBindings_InterceptPromotionalPurchases_m4EA28EDA8038AC202207C4D13365A12C62F96A3C in D00652F9D1108F7E082909C0D5EADE91.o
(maybe you meant: _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m01F28E4125E6D167E625F57561DBE34AAB53CCEF, _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m8C670C20CE1B334EE3D60D07FF893511B3EF2D4C )
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.