defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Error when bundling iOS #2593

Closed Jerakin closed 5 years ago

Jerakin commented 5 years ago

Expected behaviour

Throw build error

Actual behaviour

Throws Exception with a "Report Error Screen"

Steps to reproduce

  1. Add paths to iOS icons within the game.project that doesn't exists
  2. Bundle for iOS

Build time2019-04-30T13:23:48.989857
Defold channeleditor-alpha
Defold editor shab8b891be5ba3e650202848d8b84ddc2ca2ed513a
Defold engine sha11b1e7662dd68172fca551c52cba248eea16a364
Defold version1.2.152
Error6e6c0e323e654936a451e550cefb4e8d
GPUAMD Radeon Pro 560 OpenGL Engine
GPU Driver2.1 ATI-1.60.26
Java version11.0.1+13
OS archx86_64
OS nameMac OS X
OS version10.13.3
Jerakin commented 5 years ago

Bob doesn't work either


Exception in thread "main" com.dynamo.bob.CompileExceptionError
    at com.dynamo.bob.Project.build(Project.java:352)
    at com.dynamo.bob.Bob.main(Bob.java:511)
Caused by: java.lang.NullPointerException
    at java.io.FileOutputStream.write(FileOutputStream.java:313)
    at org.apache.commons.io.FileUtils.writeByteArrayToFile(FileUtils.java:2095)
    at org.apache.commons.io.FileUtils.writeByteArrayToFile(FileUtils.java:2078)
    at com.dynamo.bob.bundle.BundleHelper.getFallbackIconImage(BundleHelper.java:223)
    at com.dynamo.bob.bundle.BundleHelper.copyIosIcons(BundleHelper.java:236)
    at com.dynamo.bob.bundle.IOSBundler.bundleApplication(IOSBundler.java:297)
    at com.dynamo.bob.Project.bundle(Project.java:492)
    at com.dynamo.bob.Project.doBuild(Project.java:853)
    at com.dynamo.bob.Project.build(Project.java:344)
    ... 1 more
Jerakin commented 5 years ago

Tried all different combinations within the bundle screen, tried bob with 152 and 151

Jerakin commented 5 years ago

I could build the work project with its profile and identity. So it is definetly something with my setup, just need to figure out what 😛

matgis-king commented 5 years ago

The error suggests something is going wrong when copying an icon image to the bundle. Perhaps the work project specifies all the icon sizes manually or something?

Jerakin commented 5 years ago

Yay! The iOS section had paths to icons that didn't exists (Should definitely be a build error and not throw an exception)

matgis-king commented 5 years ago

Great! Thanks for helping us figure this out!