Search Unity

[Solved] iOS build crashed after purchases

Discussion in 'Unity IAP' started by MadByteLabs, Dec 29, 2016.

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

    MadByteLabs

    Joined:
    May 29, 2011
    Posts:
    18
    The application has already been published and purchase work correctly. We need to update the app Store. Android version works perfectlyю In iOs version when you buy ,the app crashed. In xCode logs after inApp initialisation I see:

    2016-12-29 12:00:52.123579 poker[1192:432413] UnityIAP:Requesting 11 products
    2016-12-29 12:00:52.126648 poker[1192:432413] UnityIAP:Requesting product data...
    2016-12-29 12:00:53.948328 poker[1192:432413] UnityIAP:Received 11 products
    2016-12-29 12:00:53.962421 poker[1192:432413] UnityIAP:No App Receipt found

    I see -No App Receipt found, but all the data on purchases can get correct -products.WithID(store.key)
    After I send m_StoreController.InitiatePurchase(product) application crashed. In xCode I see
    Unity-iPhone.xcodeproj 2016-12-29 13-05-38.png
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @Lestar,

    Can you provide some more details about this issue?

    What version of Unity Editor are you using?
    What version of Unity IAP are you using?
    Do you have any errors in the Editor or only the iOS builds?
    Would you be able to provide more details about the product you are purchasing?
    How often does this happen?
     
  3. ted-unity

    ted-unity

    Unity Technologies

    Joined:
    Dec 28, 2016
    Posts:
    3
    Also, have you tried running with Zombie Objects? In Xcode in the:

    Unity-iPhone->Edit Scheme->Run->Diagnostics->Memory Management->Zombie Objects check box

    This will print to the output console the name of the object that is causing the EXC_BAD_ACCESS if it is accessing a previously deallocated object.
     
  4. MadByteLabs

    MadByteLabs

    Joined:
    May 29, 2011
    Posts:
    18
    Thanks. I use OneSignal and see in console
    [OneSignalTrackIAP respondsToSelector:]: message sent to deallocated instance 0x17401fe40
     
  5. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
Thread Status:
Not open for further replies.