Search Unity

[Solved] Unity IAP - XCode Error - unityPurchasingAddTransactionObserver

Discussion in 'Unity IAP' started by Getfreeze, Jan 8, 2016.

Thread Status:
Not open for further replies.
  1. Getfreeze

    Getfreeze

    Joined:
    Jul 28, 2014
    Posts:
    4
    Hello,

    I have trying to use the new unity IAP, but has encounter problem while trying to run in xcode for pass 3 days but no luck solving it... Have any of you guys encounter this problem before?

    1. I have change the product ID in the IAP Demo.unity
    2. Compile in unity, then compile and run in xcode.
    3. App succesfully installed in my iphone/ipad devices.
    4. When Initilizing IAP I have this error :

    void unityPurchasingAddTransactionObserver() {
    Log(@"addTransactionObserver"); <-------- ERROR here, EXC_BAD_ACCESS(Code = 1, )
    [_getInstance() addTransactionObserver];
    }

    5. However I was able to load my App Device Product Info from App store from the Debug.log from OnInitialized() for each loop product.
    6. There is no error message from OnInitializeFailed();
    7. and the app crash when xcode encounter the problem in #4

    I have tried to search for solution for this problem for 3 days but no luck solving it. Thanks in advance for your advice.

    Stev
     
  2. Banderous

    Banderous

    Joined:
    Dec 25, 2011
    Posts:
    669
    I'm not sure why you'd get a BAC_ACCESS there. Please reimport Unity IAP and rebuild a new XCode project and retest. If the error occurs again please attach a screenshot of the stack trace from XCode.
     
  3. t_kaniatobe

    t_kaniatobe

    Joined:
    Nov 19, 2014
    Posts:
    6
    I'm having a similar issue. Just upgraded to Unity 5.3 to test the new IAP out. I'm running XCode 7.2. Attached is the screenshot from xcode. Hope that helps.

    Thanks,
    -Tali
     

    Attached Files:

  4. Banderous

    Banderous

    Joined:
    Dec 25, 2011
    Posts:
    669
    It looks like the crash is in Ads and that the message from IAP is coincidental. The stack trace shows that it is running MTUnityAdsCampaignsAvaila... Please raise a bug from the Editor on Unity Ads.
     
  5. t_kaniatobe

    t_kaniatobe

    Joined:
    Nov 19, 2014
    Posts:
    6
    Thanks for the reply! I'll look further into this.

    -Tali
     
Thread Status:
Not open for further replies.