**** FIXED ****
I discovered while reviewing the actual distributed build process in the console that 2 png files were throwing a “pngcrush caught libpng error: Not a PNG file…”
So I opened the up image with Preview -> File > Export > Format change to PNG (thanks to Dorald : http://stackoverflow.com/questions/5387671/ipad-png-crush-error ), and the build is working just fine.
*******************
I’m attempting to utilize Test Flight to have a few friends beta test my code. I haven’t had any crashes or freezing with my current developer build loaded onto my phone/ipad via Xcode.
The exact same code that runs fine with a developer build on my device throws the below error and freezes the game with a distributor ad hoc and regular distributor build. Where usually errors will let you know what file is throwing the error the below code is a bit more cryptic.
Runtime error
?:0: attempt to index a nil value
stack traceback:
[C]: ?
?: in function ‘?’
?: in function <?:1208>
?: in function ‘dispatchEvent’
?: in function <?:1185>
?: in function ‘hideOverlay’
?: in function <?:57>
(tail call): ?
?: in function <?:466>
?: in function <?:218>
Feb 18 15:03:26 Tyson PRacing[23059] <Warning>: Runtime error
stack traceback:
[C]: ?
?: in function ‘?’
?: in function <?:1208>
?: in function ‘dispatchEvent’
?: in function <?:1185>
?: in function ‘hideOverlay’
?: in function <?:57>
(tail call): ?
?: in function <?:466>
?: in function <?:218>
I’ve guessed the <?:1208> must be from my main.lua file, as it is the only file with that many lines of code, is the scene:overlayEnded(event) call after my menuOverlay.lua calls hideOverlay().
[lua]
–menuOverlay.lua
local function getOutOfHere()
print(“leave menu”)
storyboard.hideOverlay()
end
[/lua]
[lua]
– main.lua
– line 1208
function scene:overlayEnded( event )
print(“overlay ended”)
[/lua]
The “overlay ended” doesn’t print.
I guess my ultimate question is there anything different that would throw an error in the distribution build vs the developer build?