Setup Katalon Studio custom workspace on Mac

!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: The platform metadata area could not be written: /Applications/Katalon Studio.app/Contents/MacOS/config/.metadata. By default the platform writes its content
under the current working directory when the platform is launched. Use the -data parameter to
specify a different content area for the platform.
at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:73)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:141)
at org.eclipse.core.internal.preferences.InstancePreferences.getBaseLocation(InstancePreferences.java:47)
at org.eclipse.core.internal.preferences.InstancePreferences.initializeChildren(InstancePreferences.java:212)
at org.eclipse.core.internal.preferences.InstancePreferences.(InstancePreferences.java:62)
at org.eclipse.core.internal.preferences.InstancePreferences.internalCreate(InstancePreferences.java:224)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:352)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:340)
at org.eclipse.core.internal.preferences.PreferencesService.createNode(PreferencesService.java:395)
at org.eclipse.core.internal.preferences.RootPreferences.getChild(RootPreferences.java:63)
at org.eclipse.core.internal.preferences.RootPreferences.getNode(RootPreferences.java:98)
at org.eclipse.core.internal.preferences.RootPreferences.node(RootPreferences.java:87)
at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:41)
at org.eclipse.core.runtime.preferences.InstanceScope.getNode(InstanceScope.java:80)
at com.kms.katalon.preferences.internal.ScopedPreferenceStore.getStorePreferences(ScopedPreferenceStore.java:216)
at com.kms.katalon.preferences.internal.ScopedPreferenceStore.(ScopedPreferenceStore.java:117)
at com.kms.katalon.preferences.internal.PreferenceStoreManager.initialPreferenceStore(PreferenceStoreManager.java:25)
at com.kms.katalon.preferences.internal.PreferenceStoreManager.getPreferenceStore(PreferenceStoreManager.java:21)
at com.kms.katalon.application.MacOSAddon.initDefaultJRE(MacOSAddon.java:59)
at com.kms.katalon.application.MacOSAddon.initMacOSConfig(MacOSAddon.java:48)
at com.kms.katalon.application.Application.preRunInit(Application.java:152)
at com.kms.katalon.application.Application.start(Application.java:65)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

Solution:
where is the config for Katalon? on Mac

Katalon workspace folder is set to default location: /Applications/Katalon Studio.app/Contents/Eclipse/…/MacOS/config

How do we set custom location for workspace?

[/Applications/Katalon Studio.app/Contents/Eclipse]$ cat katalon.ini

-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1200.v20200508-1552
-data
@noDefault
-vm
../../Contents/Eclipse/jre/Contents/Home/lib/jli/libjli.dylib
-vmargs
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Dfile.encoding=utf-8
-Xmx2048m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

Please use Code Formatting syntax in your post for better readability

I also work on Mac.

My /Applications/Katalon Studio.app/Contents/Eclipse/katalon.ini looks like this.

-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1200.v20200508-1552
-data
@noDefault
-vm
../../Contents/Eclipse/jre/Contents/Home/lib/jli/libjli.dylib
-vmargs
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Dfile.encoding=utf-8
-Xmx2048m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

There are slight differences from yours.

In your katalon.ini, you have .... I do not see what it is.

This one works!!!

-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1200.v20200508-1552
-data
/Users/syedahmed/KATALON-DATA/
-workspace_dir
/Users/syedahmed/KATALON-WORKSPACE/
-vm
../../Contents/Eclipse/jre/Contents/Home/lib/jli/libjli.dylib
-vmargs
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Dfile.encoding=utf-8
-Xmx2048m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts```

apologize for not reformatting ini text. Now it is. Now what i need to know is how do i provide the argument for “default Workspace” i could not see it in the documentation.
e.g. when i use commandline to start Katalon:

[/Applications/Katalon Studio.app/Contents/MacOS]$ ./katalon --data /Users/syedahmed/KATALON-DATA/ -projectPath=/Users/syedahmed/KATALON-PROJECTS/ -workspace=/Users/syedahmed/KATALON-WORKSPACE/
i get, on stdout:

Katalon workspace folder is set to default location: /Applications/Katalon Studio.app/Contents/Eclipse/../MacOS/config
I want to change this directory to /Users/syedahmed/KATALON-WORKSPACE/

as for katalon.ini:

../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1200.v20200508-1552
-data
@noDefault
-workspace_dir
/Users/syedahmed/KATALON-WORKSPACE/

is not working

I resolved my issue:
-workspace_dir=/Users/syedahmed/KATALON-WORKSPACE/
is the answer