I have a simple flash cards app with possible in-app purchases. It is currently running in the apple store but I was working in some updates and now when I try to run the app by console or using installr it crash without an specific error in the console.
The crash occur when I try to get access to the In-Apps information. It's currently running rubymotion 3.11 and I tried with 3.10 and downgrading until version 3.6 and with different gems like ProMotion-iap, Helu, Vendor and always ending with the same problem.
This is the message that I get when running rake debug=1 :
thread #1: tid = 0x3d2fd4, 0x00f090b0 libobjc.A.dylib`objc_msgSend + 12, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x4)
frame #0: 0x00f090b0 libobjc.A.dylib`objc_msgSend + 12
libobjc.A.dylib`objc_msgSend + 12:
-> 0xf090b0: movl (%eax), %edx
0xf090b2: movzwl 0xc(%edx), %eax
0xf090b6: andl %ecx, %eax
0xf090b8: shll $0x3, %eax
And this is how I am making the call:
@products = Vendor::Products.new([{:name => "iap1", :id => "com.app.set1"}, {:name => "iap2", :id => "com.app.set1"}]) do |products|
products.map{ |product| NSLog "Product exists?: #{product.success}" }
products.map{ |product| NSLog "Product error: #{product.error}" }
products.map{ |product| NSLog "Product response: #{product.response}" }
end
Thank you.