my event is the follow:
start of frame > request information from "com.name.iap1"
it works fine if the device have a internet connection. without the connection the app crashes.
my event is the follow:
start of frame > request information from "com.name.iap1"
it works fine if the device have a internet connection. without the connection the app crashes.
I believe that you should only attempt to request product information if the condition "Payments can be made" of the iOS Store object is TRUE. We had a thread mentioning this, but I can't find it anymore. So you'd have to use either of the events below:Code:• Start of Frame + iOS Store: Can payments be made --> iOS Store request product info • iOS Store: Can payments be made + Only one action when the event loops --> iOS Store request product info
With "payments can be made" the app is still crashing.
here the Xcode output:
CRASH: *** -[NSPlaceholderString initWithString:]: nil argument
2013-05-29 10:09:09.853 Break_a_Doodle_iPhone.[4292:907] Stack Trace: (
0 CoreFoundation 0x32b162bb <redacted> + 186
1 libobjc.A.dylib 0x3a83e97f objc_exception_throw + 30
2 CoreFoundation 0x32b161c5 <redacted> + 0
3 Foundation 0x333c4619 <redacted> + 92
4 Break_a_Doodle_iPhone. 0x000c7f7f -[CRuniOSStore request:didFailWithError:] + 110
5 StoreKit 0x348d0163 <redacted> + 174
6 libdispatch.dylib 0x3ac5611f <redacted> + 10
7 libdispatch.dylib 0x3ac554b7 <redacted> + 22
8 libdispatch.dylib 0x3ac5a1bd <redacted> + 224
9 CoreFoundation 0x32ae9f3b <redacted> + 1290
10 CoreFoundation 0x32a5cebd CFRunLoopRunSpecific + 356
11 CoreFoundation 0x32a5cd49 CFRunLoopRunInMode + 104
12 GraphicsServices 0x366352eb GSEventRunModal + 74
13 UIKit 0x34972301 UIApplicationMain + 1120
14 Break_a_Doodle_iPhone. 0x0006a443 main + 74
15 Break_a_Doodle_iPhone. 0x0005c8c0 start + 40
)
2013-05-29 10:09:09.861 Break_a_Doodle_iPhone.[4292:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithString:]: nil argument'
*** First throw call stack:
(0x32b162a3 0x3a83e97f 0x32b161c5 0x333c4619 0xc7f7f 0x348d0163 0x3ac5611f 0x3ac554b7 0x3ac5a1bd 0x32ae9f3b 0x32a5cebd 0x32a5cd49 0x366352eb 0x34972301 0x6a443 0x5c8c0)
libc++abi.dylib: terminate called throwing an exception
(lldb)
Here my complete code:
-start of Frame
+can Payment be made ?
->request information for "com.company.app.item1"
request information for "com.company.app.item2"
-on request response for "com.company.app.item1"
-> set string to "ProductFormattedPrice$( "iOS Store" )"
-on request response for "com.company.app.item2"
-> set string to "ProductFormattedPrice$( "iOS Store" )"
-user klicks on button "Buy 1"
->request payment for "com.company.app.item1"
-user klicks on button "Buy 2"
->request payment for "com.company.app.item2"
-on payment processed for "com.company.app.item1"
->set value item 1 to 1
-on payment processed for "com.company.app.item2"
->set value item 2 to 2
No ideas ?
Not sure, but perhaps you don't want to request both IAP in one action:
->request information for "com.company.app.item1"
request information for "com.company.app.item2"
I can request several product IDs simultaneously without problems. I'm using the iOS exporter b257 beta 9 and I don't experience any crash with the iOS Store object. Which version are you using Captain_Harris?
Maybe try with a blank app and with minimal objects to make sure that the problem does come from the iOS Store object.
I have tried with anders example file from the IAP Guide Thread. the same problem.

I posted a fix for it here:
http://community.clickteam.com/threads/81028-BUG-IOS-Store-Object-IAP-request-crash