Building my app for final submission to the app store, and it doesn’t seem to like me using the development profile on application loader.
[text]
Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate.
[/text]
Pretty understandable, so I just build with the proper profile.
Building my app on my device, I found that it works as it is supposed to, no errors (Xcode Console) and all is well under the development profile. If I create an Ad Hoc or App Store profile and build for device, it spits an error at me.
[text]
: Lua Runtime Error: lua_pcall failed with status: 2, error message is: ?:0: attempt to index global ‘pauseBtn’ (a nil value)
[/text]
The code:<br>local function onPauseBtnRelease()<br><br> physics.pause()<br> loader:setPaused(true)<br> audio.pause()<br> pauseBtn.isVisible = false<br> resetBtn.isVisible = true<br> pauseText = display.newText("Paused", 160, 100, native.systemFont, 48)<br> pauseText:setTextColor(255, 0, 100)<br> pauseText:setReferencePoint( display.CenterReferencePoint )<br><br> <br> return true<br>end<br>local function onResetBtnRelease()<br> physics.start()<br> loader:setPaused(false)<br> audio.resume()<br> pauseBtn.isVisible = true<br> resetBtn.isVisible = false<br> if pauseText then<br> pauseText:removeSelf()<br> pauseText = nil<br> end<br>return true<br>end<br>pauseBtn = display.newImage("images_me/game/pause.png")<br> pauseBtn.x = 240<br> pauseBtn.y = 25<br> pauseBtn:addEventListener("touch", onPauseBtnRelease)<br>
I don’t understand what is wrong here, is it a bug? It really puzzles me on how it could work with the Dev profile, but under Distribution it fails. [import]uid: 28237 topic_id: 35463 reply_id: 335463[/import]
