[2020.1.1] GameAssembly

When compiling Xcode with IL2CPP backend we get this error.

Thanks, Marek.

rm: /Users/XXXXX/Library/Developer/Xcode/DerivedData/TF-giqezkslbyiyyqbgqjwjjgvjtjmm/Build/Products/Debug//GameAssembly.map: No such file or directory

Does that cause a build failure? Mind pasting entire build log?

Yes. Sent you log via email.

Here’s the error:

  "_getUnityPurchasingAppReceipt", referenced from:
      _iOSStoreBindings_getUnityPurchasingAppReceipt_m2BD2B3284EF83DE60BC376F5020528825F30A186 in 966A3E6E3561AE421D0AF4C020EF78CD.o
     (maybe you meant: _OSXStoreBindings_getUnityPurchasingAppReceipt_m3AA785D0D2B12B9BC9FCD08CBD3CC92FBEFD2804, _iOSStoreBindings_getUnityPurchasingAppReceipt_m2BD2B3284EF83DE60BC376F5020528825F30A186 )
  "_setUnityPurchasingCallback", referenced from:
      _iOSStoreBindings_setUnityPurchasingCallback_m2364937DF78F4FF671D99B9CF982510CD7C9A75D in 966A3E6E3561AE421D0AF4C020EF78CD.o
     (maybe you meant: _iOSStoreBindings_setUnityPurchasingCallback_m2364937DF78F4FF671D99B9CF982510CD7C9A75D, _OSXStoreBindings_setUnityPurchasingCallback_m4F9D2FB381886D9D131079C445A4EB7CF96A1A6F )
  "_unityPurchasingAddTransactionObserver", referenced from:
      _iOSStoreBindings_unityPurchasingAddTransactionObserver_mAA99CA31D4F516050D607872ACD8FCF15FE1CB69 in 966A3E6E3561AE421D0AF4C020EF78CD.o
     (maybe you meant: _iOSStoreBindings_unityPurchasingAddTransactionObserver_mAA99CA31D4F516050D607872ACD8FCF15FE1CB69, _OSXStoreBindings_unityPurchasingAddTransactionObserver_m2F6005CE1ABF9069D32BA4A8635B373B56A5C1B5 )
  "_unityPurchasingFinishTransaction", referenced from:
      _iOSStoreBindings_unityPurchasingFinishTransaction_m6D0E5D4DFD0C0FD0822BBFE1AF3711C89B08E3EA in 966A3E6E3561AE421D0AF4C020EF78CD.o
     (maybe you meant: _iOSStoreBindings_unityPurchasingFinishTransaction_m6D0E5D4DFD0C0FD0822BBFE1AF3711C89B08E3EA, _OSXStoreBindings_unityPurchasingFinishTransaction_mFBF266FD8B8DAAC3758AC32A65FB919D5A20E611 )
  "_unityPurchasingInterceptPromotionalPurchases", referenced from:
      _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m2C15460795334A62B99A4EB854B428C98136B25E in 966A3E6E3561AE421D0AF4C020EF78CD.o
     (maybe you meant: _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m9E32BEFD1AF983DFCEC5696760B5F6DB023096B8, _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m2C15460795334A62B99A4EB854B428C98136B25E )
  "_unityPurchasingPurchase", referenced from:
      _iOSStoreBindings_unityPurchasingPurchase_m3BAD5CD75936E68A074C80C07A896EB3811C4525 in 966A3E6E3561AE421D0AF4C020EF78CD.o
     (maybe you meant: _iOSStoreBindings_unityPurchasingPurchase_m3BAD5CD75936E68A074C80C07A896EB3811C4525, _OSXStoreBindings_unityPurchasingPurchase_mF69FCEF458047C49F2DC7E20D3A57D1780ECBA70 )
  "_unityPurchasingRestoreTransactions", referenced from:
      _iOSStoreBindings_unityPurchasingRestoreTransactions_mE3B35DBE61FBB3AF62610463C5C110725F449883 in 966A3E6E3561AE421D0AF4C020EF78CD.o
     (maybe you meant: _OSXStoreBindings_unityPurchasingRestoreTransactions_m911F4AFE04F3EFEE15F9D9A731FF1335DC35F899, _iOSStoreBindings_unityPurchasingRestoreTransactions_mE3B35DBE61FBB3AF62610463C5C110725F449883 )
  "_unityPurchasingRetrieveProducts", referenced from:
      _iOSStoreBindings_unityPurchasingRetrieveProducts_m3EE341829665572BD1C88555A40823A52CBAE9DE in 966A3E6E3561AE421D0AF4C020EF78CD.o
     (maybe you meant: _OSXStoreBindings_unityPurchasingRetrieveProducts_m1FD0797EA2813172026165F1D60D3732CC5F69AC, _iOSStoreBindings_unityPurchasingRetrieveProducts_m3EE341829665572BD1C88555A40823A52CBAE9DE )
ld: symbol(s) not found for architecture x86_64

You’re running into this: Compilation errors using Unity IAP 1.21, Unity 2018.2.0f2, IL2CPP for macOS

Thank you, BUT we do use INAPP purchases and I have not found any reasonable answer in the post you sent. Is INAPP team working on it?

I posted a workaround in that thread. Does it not work for you?

Ahh sorry I missed that zip. Yes it works for IL2CPP. Mono still has an issue after splash screen. Can we please have official fix from INAPP team! Thank you again, Marek.

As mentioned in the thread I linked, they plan to work on it.

As I sent in my email. The workaround works only for development build. When we try to make ARCHIVE for upload to stores there are other issues with GameAssembly.

Same here, I have compilation errors with GameAssembly.map on macOS since 2020.1.8, if I compile with 2020.1.7 it works perfectly without changing anything. I don’t use InApp

Please report a bug. You must be facing a different issue.

It seems to be this bug so the only solution its updating: https://issuetracker.unity3d.com/issues/il2cpp-macos-mono-variable-path-has-no-quotes-in-generated-sh-script-when-exporting-the-xcode-project

We just hit this issue in a test project in Unity 2020.1.16f1 exporting to an Xcode project and building for IL2CPP.

As a workaround, we edited the GameAssembly build phase bash script to use the ‘rm -f’ option and the build is happy. (Using the -f option the rm is treated as successful even if the file doesn’t exist.)

...
rm -f "$CONFIGURATION_BUILD_DIR/${FRAMEWORKS_FOLDER_PATH}GameAssembly.map"

@preg-harding Can you please explain step by step how I can do the same

The script to edit is in the Xcode project. Change the target to ‘GameAssembly’ and in the Build Phases tab there’s a ‘Run Script’ which contains the ‘rm’ command to edit on line 4. Add the -f option in that line.

2 Likes

Sorry to necro the thread but this worked for me with Unity 2019.4 THANK YOU!