Build Failed (1) with 2022.3665

I have 2 games that build fine with 3664, but both error out in the same way with 3665.

Mar 02 14:28:17.153 Using openjdk version "1.8.0_242-release"
                    OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
                    OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
Mar 02 14:28:17.195 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Mar 02 14:28:17.299 Warning:
                    The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/8291970D-0879-4DC5-9395-B363ACADFC71/d/Corona Simulator.app/Contents/Resources/debug.keystore -destkeystore /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/8291970D-0879-4DC5-9395-B363ACADFC71/d/Corona Simulator.app/Contents/Resources/debug.keystore -deststoretype pkcs12".
Mar 02 14:28:19.681 Using openjdk version "1.8.0_242-release"
                    OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
                    OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
Mar 02 14:28:20.825 BUILD FAILED
                    /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/8291970D-0879-4DC5-9395-B363ACADFC71/d/Corona Simulator.app/Contents/Resources/build.xml:98: src '/private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/8291970D-0879-4DC5-9395-B363ACADFC71/d/Corona Simulator.app/Contents/Resources/${corona.native.android}/resource/android-template.zip' doesn't exist.
                    
                    Total time: 0 seconds
Mar 02 14:28:20.834 Excluding specified files from build: 
                       excluding: LaunchScreen.storyboardc
                       excluding: Icon.png
                       excluding: Icon-*dpi.png
                       excluding: Images.xcassets
                    Android build failed (1) after 0 seconds
Mar 02 14:28:21.180 ERROR: Build Failed: Error code: 1

try to update your JDK

You don’t have verbose logging on but usually that happens to me when you install a new version and delete the old version without clicking on the configure native icon. Solar2d just doesn’t have the paths to be able to build and it fails in 0 seconds. If verbose logging is turned on you will see the exact error between the “Excluding” and the “Error”.

Thanks for the suggestions and sorry about the vague post. I had to leave in a hurry. :frowning:

I’m using the JDK that ships with the package.

Hmm. I usually keep the previous ~5 releases. I’m not sure what “configure native icon”? This isn’t something I’ve ever done or used that I know of. I’ve never done anything beyond installing the new version and launching it.

Yeah, sorry. That’s just the “-debug 5” part, right? Part of the info I left out is that i’m on mac and I’ve always launched the simulator through quicksilver/Alfred like this:

so I don’t usually pass any flags to it. However launching from the command line (with or without the debug flag) it works.

This works fine:

"/Applications/Corona-3665/Corona Simulator.app/Contents/MacOS/Corona Simulator"

This opens 3665, but it fails with the same build error.

open -a "Corona Simulator"

I tried adding -debug 5 to the command line and I tried “defaults write com.coronalabs.Corona_Simulator debug 5” but neither produced any additional info.

Is there a list of all available command line flags somewhere? My searches only turned up “no-console” and “debug”

Anyway, it seems like it just doesn’t work for me anymore when I open the .app

defaults write com.coronalabs.Corona_Simulator debugBuildProcess -int 5

1 Like

Aha! Thank you. Here is the output. I’m not quite sure what to make of it.

Mar 03 19:33:34.157 Copyright (C) 2009-2022  C o r o n a   L a b s   I n c .
                    	Version: 3.0.0
                    	Build: 2022.3665
Mar 03 19:33:40.415 Copyright (C) 2009-2022  C o r o n a   L a b s   I n c .
                    	Version: 3.0.0
                    	Build: 2022.3665
Mar 03 19:33:40.425 Loading project from:   ~/devel/current/dinogame
Mar 03 19:33:40.425 Project sandbox folder: ~/Library/Application Support/Corona Simulator/dinogame-79159FB9A366DACC40C9574F87097AA4
Mar 03 19:33:40.487 Platform: iPhone / x86_64 / 12.2.1 / Intel(R) UHD Graphics 630 / 2.1 INTEL-18.4.6 / 2022.3665 / en-US | US | en_US | en
Mar 03 19:33:47.397 Using openjdk version "1.8.0_242-release"
                    OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
                    OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
Mar 03 19:33:47.439 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Mar 03 19:33:47.542 Warning:
                    The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/debug.keystore -destkeystore /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/debug.keystore -deststoretype pkcs12".
Mar 03 19:33:51.254 Using openjdk version "1.8.0_242-release"
                    OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
                    OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
Mar 03 19:33:52.078 Prepackage: Compiling Lua ...
Mar 03 19:33:52.083 Excluding specified files from build: 
                       excluding: LaunchScreen.storyboardc
                       excluding: Icon.png
                       excluding: Icon-*dpi.png
                       excluding: Images.xcassets
                    Prepackage: Building server data file
Mar 03 19:33:52.083 Prepackage: running: "/usr/bin/java" -Djava.class.path='/private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/ant.jar:/private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/ant-launcher.jar:/private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/AntLiveManifest.jar' org.apache.tools.ant.launch.Launcher -d -DTEMP_DIR='/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T//CLtmpE7QFch' -DSRC_DIR='/Users/r2robot/devel/current/dinogame' -DBUNDLE_DIR='/private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources' -DLIVE_BUILD=YES -DLIVE_BUILD_MANIFEST_FILE='/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T//CLtmpE7QFch/output/assets/_corona_live_build_manifest.txt' -f '/private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources'/build.xml build-input-zip
Mar 03 19:33:52.180 Apache Ant version 1.8.1 compiled on April 30 2010
Mar 03 19:33:52.185 Buildfile: /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/build.xml
Mar 03 19:33:52.198 Adding reference: ant.PropertyHelper
Mar 03 19:33:52.198 Detected Java version: 1.6 in: /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/jre/jdk/Contents/Home/jre
Mar 03 19:33:52.198 Detected OS: Mac OS X
Mar 03 19:33:52.201 Adding reference: ant.ComponentHelper
Mar 03 19:33:52.205 Setting ro project property: LIVE_BUILD -> YES
Mar 03 19:33:52.206 Setting ro project property: BUNDLE_DIR -> /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources
                    Setting ro project property: SRC_DIR -> /Users/r2robot/devel/current/dinogame
                    Setting ro project property: TEMP_DIR -> /var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T//CLtmpE7QFch
                    Setting ro project property: LIVE_BUILD_MANIFEST_FILE -> /var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T//CLtmpE7QFch/output/assets/_corona_live_build_manifest.txt
                    Setting ro project property: ant.file -> /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/build.xml
                    Setting ro project property: ant.file.type -> file
Mar 03 19:33:52.215 Adding reference: ant.projectHelper
Mar 03 19:33:52.216 Adding reference: ant.parsing.context
                    Adding reference: ant.targets
Mar 03 19:33:52.229 parsing buildfile /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/build.xml with URI = file:/private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona%20Simulator.app/Contents/Resources/build.xml
Mar 03 19:33:52.233 Setting ro project property: ant.project.name -> Corona Client Build
                    Adding reference: Corona Client Build
Mar 03 19:33:52.233 Setting ro project property: ant.project.default-target -> none
                    Setting ro project property: ant.file.Corona Client Build -> /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/build.xml
                    Setting ro project property: ant.file.type.Corona Client Build -> file
Mar 03 19:33:52.233 Project base dir set to: /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources
                     +Target: 
Mar 03 19:33:52.236  +Target: generate-live-build-manifest
Mar 03 19:33:52.237  +Target: check-gradle-bundle
Mar 03 19:33:52.238  +Target: setup-gradle-builds
Mar 03 19:33:52.242  +Target: build-input-zip
Mar 03 19:33:52.243  +Target: unzip-apk-template
Mar 03 19:33:52.243  +Target: find-main-application-icons
                     +Target: find-main-application-banner
                     +Target: find-ouya-application-icon
                     +Target: find-ouya-xiaomi-application-icon
                     +Target: find-default-notification-icons
                     +Target: copy-file
                     +Target: can-copy-file
                     +Target: delete-file
                     +Target: can-delete-file
Mar 03 19:33:52.246  +Target: insert-main-application-icons
Mar 03 19:33:52.246  +Target: insert-main-application-banner
                     +Target: insert-ouya-application-icon
                     +Target: insert-ouya-xiaomi-application-icon
                     +Target: insert-default-notification-icons
                     +Target: insert-assets-multi-icon
                     +Target: copy-apk-assets
Mar 03 19:33:52.247  +Target: copy-files-to-apk
                     +Target: sign-apk
Mar 03 19:33:52.247  +Target: sign-apk-md5
Mar 03 19:33:52.249  +Target: sign-apk-sha1
Mar 03 19:33:52.249  +Target: sign-apk-auto
                     +Target: build-unsigned-apk
Mar 03 19:33:52.249  +Target: build-signed-apk
Mar 03 19:33:52.250  +Target: build-expansion-file
                     +Target: copy-apk-to
                     +Target: copy-to
Mar 03 19:33:52.250  +Target: build
                     +Target: test-sign
Mar 03 19:33:52.252 Adding reference: ant.LocalProperties
Mar 03 19:33:52.320 parsing buildfile jar:file:/private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona%20Simulator.app/Contents/Resources/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona%20Simulator.app/Contents/Resources/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
Mar 03 19:33:52.339  [property] Loading /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/build.properties
Mar 03 19:33:52.346 Setting project property: ANDROID_ROOT -> /usr/local/bin/android-sdk-mac_x86
Mar 03 19:33:52.347 Setting project property: ANDROID_API_VERSION -> android-8
                    Setting project property: USER_ACTIVITY_PATH -> com/ansca/test/analyticstest
                    Setting project property: ANDROID_VERSION -> android-8
                    Setting project property: USER_ACTIVITY_PACKAGE -> com.ansca.test.analyticstest
                    Setting project property: ANDROID_MIN_SDK_INTEGER_VERSION -> 8
                    Setting project property: CORONA_ROOT -> /Volumes/Ansca/code/main
                    Setting project property: USER_APP_DISPLAY_NAME -> analyticstest
                    Override ignored for property "SRC_DIR"
                    Setting project property: APK_APP_NAME -> MyCoronaActivity
Mar 03 19:33:52.348 Class org.apache.tools.ant.taskdefs.condition.Os loaded from parent loader (parentFirst)
Mar 03 19:33:52.349 Condition false; not setting SCRIPT_EXT
                    Setting project property: SCRIPT_EXT -> sh
                    Condition false; not setting USE_OLD_TOUCH
Mar 03 19:33:52.349 Condition false; not setting onWindows
Mar 03 19:33:52.350 Class org.apache.tools.ant.taskdefs.condition.Equals loaded from parent loader (parentFirst)
Mar 03 19:33:52.351 Condition true; setting live.build to true
                    Setting project property: live.build -> true
Mar 03 19:33:52.363 Adding reference: asset.fileset
Mar 03 19:33:52.364 [available] Unable to find /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Native/Corona/android
                    Condition false; not setting corona.native.android
Mar 03 19:33:52.364 [available] Unable to find /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Native/Corona/android
                    Condition false; not setting corona.native.android
Mar 03 19:33:52.364 [available] Unable to find /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/android
                    Condition false; not setting corona.native.android
Mar 03 19:33:52.364 [available] Unable to find /Users/r2robot/Library/Application Support/Corona/Native/Corona/android
                    Condition false; not setting corona.native.android
Mar 03 19:33:52.365 [available] Unable to find Native/Corona/android
Mar 03 19:33:52.365 Condition false; not setting corona.native.android
Mar 03 19:33:52.368  +Datatype copy-res-file org.apache.tools.ant.taskdefs.MacroInstance
Mar 03 19:33:52.368  [macrodef] creating macro  copy-res-file
Mar 03 19:33:52.369  +Datatype copy-drawable-file org.apache.tools.ant.taskdefs.MacroInstance
Mar 03 19:33:52.370  [macrodef] creating macro  copy-drawable-file
                     +Datatype copy-mipmap-file org.apache.tools.ant.taskdefs.MacroInstance
                     [macrodef] creating macro  copy-mipmap-file
Mar 03 19:33:52.370  +Datatype copy-notification-icon org.apache.tools.ant.taskdefs.MacroInstance
                     [macrodef] creating macro  copy-notification-icon
                    Setting ro project property: ant.project.invoked-targets -> build-input-zip
Mar 03 19:33:52.379 Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
Mar 03 19:33:52.379 Adding reference: ant.executor
                    Build sequence for target(s) `build-input-zip' is [generate-live-build-manifest, check-gradle-bundle, setup-gradle-builds, build-input-zip]
                    Complete build sequence is [generate-live-build-manifest, check-gradle-bundle, setup-gradle-builds, build-input-zip, can-delete-file, unzip-apk-template, build-unsigned-apk, sign-apk-md5, sign-apk-sha1, can-copy-file, build-signed-apk, copy-files-to-apk, copy-apk-assets, test-sign, find-ouya-xiaomi-application-icon, insert-ouya-xiaomi-application-icon, copy-apk-to, sign-apk-auto, sign-apk, find-main-application-banner, insert-main-application-banner, find-main-application-icons, insert-main-application-icons, find-default-notification-icons, insert-default-notification-icons, insert-assets-multi-icon, build-expansion-file, copy-to, build, find-ouya-application-icon, insert-ouya-application-icon, copy-file, , delete-file]
                    
                    generate-live-build-manifest:
                    Setting project property: ManifestDirectory -> /var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/CLtmpE7QFch/output/assets
                        [mkdir] Created dir: /var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/CLtmpE7QFch/output/assets
                    Class com.coronalabs.LiveBuildManifest loaded from parent loader (parentFirst)
                     +Datatype live-gen com.coronalabs.LiveBuildManifest
                    fileset: Setup scanner in dir /Users/r2robot/devel/current/dinogame with patternSet{ includes: [] excludes: [**/*.lua:unless->live.build, **/build.settings:unless->live.build, **/Icon
                    ] }
Mar 03 19:33:52.386      [copy] Copying 1 file to /var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/CLtmpE7QFch/output/assets
Mar 03 19:33:52.386      [copy] Copying /var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/CLtmpE7QFch/excludesfile.properties to /var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/CLtmpE7QFch/output/assets/_corona_live_build_exclude.txt
Mar 03 19:33:52.394 check-gradle-bundle:
Mar 03 19:33:52.394 Property "corona.native.android" has not been set
Mar 03 19:33:52.394 [available] Unable to find ${corona.native.android}/resource/android-template.zip to set property gradle.bundle.exists
                    
                    setup-gradle-builds:
Mar 03 19:33:52.399 Property "corona.native.android" has not been set
Mar 03 19:33:52.409 BUILD FAILED
                    /private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/build.xml:98: src '/private/var/folders/ht/_qvxy8w159zgl5sk17gk7mbc0000gn/T/AppTranslocation/A7892200-4B2D-404D-A552-30E9FEA2DBEF/d/Corona Simulator.app/Contents/Resources/${corona.native.android}/resource/android-template.zip' doesn't exist.
                    	at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:128)
                    	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
                    	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    	at java.lang.reflect.Method.invoke(Method.java:498)
                    	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
                    	at org.apache.tools.ant.Task.perform(Task.java:348)
                    	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
                    	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
                    	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    	at java.lang.reflect.Method.invoke(Method.java:498)
                    	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
                    	at org.apache.tools.ant.Task.perform(Task.java:348)
                    	at org.apache.tools.ant.Target.execute(Target.java:390)
                    	at org.apache.tools.ant.Target.performTasks(Target.java:411)
                    	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
                    	at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
                    	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
                    	at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
                    	at org.apache.tools.ant.Main.runBuild(Main.java:801)
                    	at org.apache.tools.ant.Main.startAnt(Main.java:218)
                    	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
                    	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
                    
                    Total time: 0 seconds
Mar 03 19:33:52.410 
Mar 03 19:33:52.416 Android build failed (1) after 0 seconds
Mar 03 19:33:52.747 ERROR: Build Failed: Error code: 1
Mar 03 19:33:52.747 

Yep, that is the error I get when I delete folders and don’t click on the icon. It is a recent thing and I thought it was only me. Solar2D build process can’t find the template.

Weird. I’ve never even looked into the Native folder before. What folders are you deleting? I delete the whole app folder once I have too many laying around:

Screen Shot 2022-03-04 at 01.39.53

I clicked it and this popup appeared.

Setup Corona Native

Failed to create:

 • /Users/r2robot/Library/Application Support/Corona/Native

This step must be performed manually

Error: Finder got an error: Can’t make file "A49B9DF0-4F05-416A-B8C8-779CDE91E092:d:::Corona Simulator.app:Contents:Resources:CoronaSimulator.icns" into type number or string.

Looks like it created a broken link.

Can you delete the symlink? Run the script as sudo to see if it clears it.

I deleted the symlink, but I didn’t re-run the script. I removed the quarantine attribute from the .app and it works now.

xattr -d com.apple.quarantine Corona\ Simulator.app

Success

Mar 04 09:28:23.495 Copyright (C) 2009-2022  C o r o n a   L a b s   I n c .
                    	Version: 3.0.0
                    	Build: 2022.3665
Mar 04 09:28:32.419 Copyright (C) 2009-2022  C o r o n a   L a b s   I n c .
                    	Version: 3.0.0
                    	Build: 2022.3665
Mar 04 09:28:32.428 Loading project from:   ~/devel/current/dinogame
Mar 04 09:28:32.428 Project sandbox folder: ~/Library/Application Support/Corona Simulator/dinogame-79159FB9A366DACC40C9574F87097AA4
Mar 04 09:28:32.471 Platform: iPhone / x86_64 / 12.2.1 / Intel(R) UHD Graphics 630 / 2.1 INTEL-18.4.6 / 2022.3665 / en-US | US | en_US | en
Mar 04 09:28:39.365 Using openjdk version "1.8.0_242-release"
                    OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
                    OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
Mar 04 09:28:39.403 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Mar 04 09:28:39.513 Warning:
Mar 04 09:28:39.513 The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /Applications/Corona-3665/Corona Simulator.app/Contents/Resources/debug.keystore -destkeystore /Applications/Corona-3665/Corona Simulator.app/Contents/Resources/debug.keystore -deststoretype pkcs12".
Mar 04 09:28:41.813 Using openjdk version "1.8.0_242-release"
                    OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
                    OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
Mar 04 09:28:44.324 BUILD SUCCESSFUL
                    Total time: 1 second
Mar 04 09:28:57.045 Excluding specified files from build: 
                       excluding: LaunchScreen.storyboardc
                       excluding: Icon.png
                       excluding: Icon-*dpi.png
                       excluding: Images.xcassets
                    Android build succeeded in 15 seconds

The question is, why does the way you launch the app matter now? As I mentioned in an earlier post, launching the executable directly worked.

This was working

"/Applications/Corona-3665/Corona Simulator.app/Contents/MacOS/Corona Simulator" 

But launching Corona Simulator.app by clicking it in finder, launching from alfred or the command line with “open -a” is not working.

why the different behavior between the the binary and the .app? The binary also has the quarantine attribute and it works fine.

1 Like

Good to know for the future. Thank you.