@ingemar
Now, I put my statement to cache the ad in the main.lua so it gives the ad time to be ready.
I then built for the device and it crashed 5 times before the app would run and the ad DID WORK PERFECTLY!
However, the app crashes about 5 times to get to that point which obviously isn’t good at all…
Below is my console log when the app crashes:
May 31 08:34:15 Maxs-iphone wifid[70] <Notice>: WiFi:[454768455.769765]: Client assistantd set type to normal application
May 31 08:34:15 Maxs-iphone wifid[70] <Notice>: WiFi:[454768455.774096]: __WiFiManagerSetEnableState: state TRUE, manager->enable.setting TRUE, manager->unlockedSinceBoot TRUE
May 31 08:34:15 Maxs-iphone wifid[70] <Notice>: WiFi:[454768455.776139]: BG Application: Not Present, BG Daemon: Present. Daemons: itunesstored networkd apsd
May 31 08:34:16 Maxs-iphone kernel[0] <Notice>: xpcproxy[602] Container: /private/var/mobile/Containers/Data/Application/43A2808D-1120-4518-AA5F-A435856DBF8C (sandbox)
May 31 08:34:16 Maxs-iphone locationd[64] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
May 31 08:34:16 Maxs-iphone Spin[602] <Error>: assertion failed: 12F70: libxpc.dylib + 51915 [8DB46991-F182-35E3-8E95-918A4007AA7A]: 0x7d
May 31 08:34:16 Maxs-iphone Unknown[602] <Error>:
May 31 08:34:16 Maxs-iphone Spin[602] <Warning>: Platform: iPhone / iPhone5,2 / 8.3 / PowerVR SGX 543 / OpenGL ES 2.0 IMGSGX543-115.5 / 2015.2625
May 31 08:34:16 Maxs-iphone Spin[602] <Warning>: type=rewardedVideo
May 31 08:34:16 Maxs-iphone Spin[602] <Warning>: Runtime error
attempt to concatenate a function value
stack traceback:
C: in function ‘print’
?: in function <?:20>
?: in main chunk
C: in function ‘require’
?: in function ‘require’
?: in main chunk
May 31 08:34:16 Maxs-iphone Spin[602] <Warning>: type=rewardedVideoindex a string value=nil
May 31 08:34:16 Maxs-iphone ReportCrash[603] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
May 31 08:34:16 Maxs-iphone ReportCrash[603] <Notice>: ReportCrash acting against PID 602
May 31 08:34:17 Maxs-iphone ReportCrash[603] <Notice>: Formulating crash report for process Spin[602]
May 31 08:34:17 Maxs-iphone SpringBoard[43] <Warning>: BSXPCMessage received error for message: Connection invalid
May 31 08:34:17 Maxs-iphone com.apple.xpc.launchd[1] (UIKitApplication:com.gegelgames.spin[0xa7cb][602]) <Notice>: Service exited due to signal: Segmentation fault: 11
May 31 08:34:17 Maxs-iphone wifid[70] <Notice>: WiFi:[454768457.141870]: BG Application: Not Present, BG Daemon: Present. Daemons: itunesstored networkd apsd
May 31 08:34:17 Maxs-iphone ReportCrash[603] <Notice>: Saved report to /var/mobile/Library/Logs/CrashReporter/Spin_2015-05-31-083416_Maxs-iphone.ips.beta
May 31 08:34:17 Maxs-iphone SpringBoard[43] <Warning>: Application ‘UIKitApplication:com.gegelgames.spin[0xa7cb]’ crashed.