Hi folks,
Before I got too far on a project, I thought I should try out the LiveBuild since I’m planning on working on an app that uses the camera. Obviously this would be immensely faster using Live Build.
I threw together something really quick as a test.
Plan :
show a couple of objects.
Build it using Live Build and copy it to the device.
Change the code to move them a bit and see the change on the device.
Result:
When I run the code in the simulator, it runs fine. No errors, object moves.
When I Live Build it, I get a runtime error, but it doesn’t explain what that error is.
Running on IOS (10.2 SDK)
Using Corona Daily (Version 2017.3022 (2017.1.11))
I don’t think I’m missing the point, but any ideas?
(I could try on an older build, since it is todays )
Part of the log is shown here, more is attached if required.
---------- Device Log Starts ----------
[Device] bundleid: org.fingerscrossed.Camera-Test, enable_level: 0, persist_level: 0, propagate_with_activity: 0
[Device] [FBSScene] [org.fingerscrossed.Camera-Test] Created client agent: <UIApplicationSceneClientAgent: 0x1740112d0>
[Device] CoreUI(DEBUG): Current version = 428.6, Linked UIKit version = 3600, Compatibility mode = 9999
[Device] Platform: iPhone / iPhone8,1 / 10.2 / Apple A9 GPU / OpenGL ES 2.0 Metal - 38.3 / 2017.3022 / en-CA | CA | en_CA | en
[Device] ERROR: Runtime error
[Device] Platform: iPhone / iPhone8,1 / 10.2 / Apple A9 GPU / OpenGL ES 2.0 Metal - 38.3 / 2017.3022 / en-CA | CA | en_CA | en
[Device] HTTP load failed (error code: -999 [1:89])
Code is simple. (It uses SSK2, but that shouldn’t (ha) cause an issue.
assets can be any ping files whatsoever.
require "physics" physics.start( ) require "ssk2.loadSSK" \_G.ssk.init( { launchArgs = ..., gameFont = "Raleway-Light.ttf", measure = true, math2DPlugin = false, enableAutoListeners = true, exportColors = true, exportCore = true, exportSystem = true, debugLevel = 0 } ) print("Done") ssk.display.newImageRect( group, centerX - 100 , centerY - 50, "assets/elephant.png", { size = 40 }, { radius = 20, bounce = 1, gravityScale = 0.2 } ) ssk.display.newImageRect( group, centerX - 100, centerY + 100, "assets/giraffe.png", { size = 40 }, { bodyType = "static" } )