How to use bob? (SOLVED)

I have a very basic question. How do I use bob to build? I have downloaded bob.jar, I am using a mac. Then where should I move the file bob.jar?

I understand that this is a very noob question… my apologize! But I guess more stupid questions from me are on the way :slight_smile:

[I have read the manual here https://defold.com/manuals/bob/]

Thank!

To run bob.jar, you’ll need to install java.
We use OpenJDK 11:

Once you have that installed, open a command line prompt (e.g. Terminal on OSX), and type this to make sure it’s installed:

$ java --version

The build process has these distinct steps: resolve, clean, build, archive and signing.

Resolving needs to be done to download all the project dependencies:

$ cd myproject
$ java -jar ./bob.jar resolve --email a@b.com --auth 123456

If you are using private repos on github, you’ll need to replace the email and auth with proper info. For public repos, this command will work fine.

Here’s an example of how to build a signed .ipa for iOS, with debug symbols (without texture compression). Replace the identity and path to the provisioning profile accordingly. E.g. “iPhone Developer” is generic and works for me:

$ java -jar ./bob.jar --platform=armv7-darwin clean build --with-symbols --variant debug --archive bundle --bo bundle_ios --identity “iPhone Developer” --mp ./myproject.mobileprovision

After this, you’ll find the built .ipa(with both armv7 and arm64 support) in the ./bundle_ios folder.

There are ofc many variations you can do here, given the many options that bob have.

1 Like

Thanks @Mathias_Westerdahl!

This is quite embarrassing but I am stuck at the first step… I have downloaded openjdk-11.0.1_osx-x64_bin.tar.gz and I have extracted a jdk-11.0.1.jdk folder from it. The online instruction says to double click a pkg file but there is no such file in the folder… what should I do? I tried to copy the folder to the application and followed the instruction about PATH and JAVA_HOME but when I try

javac -version

a window pops up informing that I need the command line java tool…

I am completely lost… I am sorry!

EDIT: I have found a .dmg version of the installer and now

javac -version

does not ask of the command line tool anymore. But it is 11.0.8 and not 11.0.1 I hope this works for the rest of the process with bob…

Incredible! I have successfully create a mac bundle of the game with bob!

3 Likes