Search Unity

IAP failing in Unity 2020.1.0a3 Mac standalone

Discussion in 'Unity IAP' started by richardzzzarnold, Oct 2, 2019.

  1. richardzzzarnold

    richardzzzarnold

    Joined:
    Aug 2, 2012
    Posts:
    140
    I am building a Mac standalone build using Unity 2020.1.0a3, creating an xcode project, using the codeless IAP.
    Everything works correctly in the editor, but when I make a build, or submit to the Mac App Store, I am getting this error

    Fallback handler could not load library /Users/**************/Library/Developer/Xcode/DerivedData/*************-*************/Build/Products/Debug/
    ***********/Contents/Frameworks/MonoEmbedRuntime/osx/libunitypurchasing

    ----

    DllNotFoundException: unitypurchasing

    at (wrapper managed-to-native)

    also, it does not seem to be intializing properly:
    Purchase failed because Purchasing was not initialized correctly

    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    it seems from this article dllnotfoundexception-in-standalone that the dll file? needs to relocated somehow. Not sure how to do this.
    I would sure appreciate any suggestion on how to fix this. It seems to me that IAP cannot and has never been able to function on Mac Standalone builds ( it never has for me, anyway ), but would love to hear from anyone who has successfully implemented it.
     
    Last edited: Oct 3, 2019