@@ -381,7 +381,7 @@ public String preprocess(File srcFolder,
381381
382382 // grab the imports from the code just preprocessed
383383
384- importedLibraries = new ArrayList <Library >();
384+ importedLibraries = new ArrayList <>();
385385 Library core = mode .getCoreLibrary ();
386386 if (core != null ) {
387387 importedLibraries .add (core );
@@ -697,11 +697,13 @@ protected boolean exportApplication() throws IOException, SketchException {
697697 final String arch = Platform .getNativeArch ();
698698
699699 if (Library .hasMultipleArch (platform , importedLibraries )) {
700- // export the 32-bit version
701- folder = new File (sketch .getFolder (), "application." + platformName + "32" );
702-
703- if (!exportApplication (folder , platform , "32" , embedJava && (bits == 32 ) && ("x86" .equals (arch ) || "i386" .equals (arch )))) {
704- return false ;
700+ // Don't try to export 32-bit on macOS, because it doesn't exist.
701+ if (platform != PConstants .MACOSX ) {
702+ // export the 32-bit version
703+ folder = new File (sketch .getFolder (), "application." + platformName + "32" );
704+ if (!exportApplication (folder , platform , "32" , embedJava && (bits == 32 ) && ("x86" .equals (arch ) || "i386" .equals (arch )))) {
705+ return false ;
706+ }
705707 }
706708 // export the 64-bit version
707709 folder = new File (sketch .getFolder (), "application." + platformName + "64" );
0 commit comments