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

UnityFramework not linking InApp lib when building in Xcode

Discussion in 'iOS and tvOS' started by Davideogames, May 28, 2021.

  1. Davideogames

    Davideogames

    Joined:
    Sep 5, 2017
    Posts:
    7
    I migrated my project from Unity 2018.4.32 to 2020.3.9. The game includes "InApp Purchasing" Service, and it works fine in the Editor. I have been building and publishing the game on the AppStore for years, and the Inapps were working fine. But I can't recompile the project in Xcode version 12.5 since I migrated in 2020.3.9. I get these linker error in "UnityFramework" :
    Apple Match-O Linker errors :
    Undefined symbols for architecture arm64:
    "_iapGetTransactionResult", referenced from:
    _InAppPurchase_iapGetTransactionResult_mF5493E35E7225FCE38904A8C01D0B349A035918E in Assembly-CSharp-firstpass.o
    _InAppPurchase_GetTransactionResult_m2EF1DA7C413AD51498C85AF89157AF7A643A81D2 in Assembly-CSharp-firstpass.o
    (maybe you meant: _InAppPurchase_iapGetTransactionResult_mF5493E35E7225FCE38904A8C01D0B349A035918E)
    "_iapGetTransactionReceipt", referenced from:
    "_iapGetCurrencyCode", referenced from:
    "_iapGetProductTitle", referenced from:
    "_iapSetGameObjectName", referenced from:
    "_iapBuy", referenced from:
    "_iapGetProductPrice", referenced from:
    "_iapRestoreCompletedTransactions", referenced from:
    "_iapRequestProductInformation", referenced from:
    "_iapGetProductDescription", referenced from:
    "_iapDestroy", referenced from:
    "_iapGetProductPriceFormated", referenced from:
    "_iapInit", referenced from:
    "_iapIsAvailable", referenced from:
    _InAppPurchase_iapIsAvailable_m9C9B421E08A49DE1E6360284533D6D89135DDD04 in Assembly-CSharp-firstpass.o
    _InAppPurchase_IsAvailable_m351E568EBDBA33CF7757CD4D8D5CE1D210EF7C46 in Assembly-CSharp-firstpass.o
    (maybe you meant: _InAppPurchase_iapIsAvailable_m9C9B421E08A49DE1E6360284533D6D89135DDD04)
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)


    Any help would be very much appreciated.
     
    Last edited: May 28, 2021
  2. Davideogames

    Davideogames

    Joined:
    Sep 5, 2017
    Posts:
    7
    I found the solution : I had some remaining files related to inapps that were not deleted in Assets Directory. Once they were deleted, I could build on iOS.