java.lang.NullPointerException: Unknown error produced when bundling for iOS
Opened this issue · 3 comments
Expected behaviour
Bundle Defold project as iOS application
Actual behaviour
reported error canceling build stating:
java.lang.NullPointerException: Unknown
Steps to reproduce
Tried to bundle multiple times.
Observed error.
Build time | 2020-03-30T15:27:54.357768 |
Defold channel | editor-alpha |
Defold editor sha | b673cc217e4b968a58c922f4b724657b4f7255c0 |
Defold engine sha | 96f7a5e4f617d5f6f4645f30a3e6ff656689435d |
Defold version | 1.2.167 |
Error | 57c09dd981384b59a30c75a1afba7970 |
GPU | NVIDIA GeForce 9400M OpenGL Engine |
GPU Driver | 2.1 NVIDIA-10.4.14 310.90.30.05b27 |
Java version | 11.0.1+13 |
OS arch | x86_64 |
OS name | Mac OS X |
OS version | 10.13.6 |
And this only happens when you bundle to iOS? The same project can be bundled to macOS for instance? Can you bundle an empty project to iOS?
No, I was not able to bundle to any other platform. An empty project bundled fine.
The issue turned out to be that I called a lua script as ".onscreen" when I should have had it as "blank.onscreen." By putting onscreen.lua into a folder and calling it from there it removed the issue.
Forum Post
It should also work to remove the initial dot and keep the file in the root of the project. It is cleaner though to have the files in folders.