Feedback Case Number: 66769.
I’ve just open sourced a complicated app (Better Code Editor) and it was during testing this that I stumbled upon a nasty bug that I think relates to copying files into an app’s resources folder during a build step when cross-compiling. This is on Xojo 2021 Release 3.
I develop on a Mac (macOS Monterey).
In the demo app, I have several theme files which are text files containing JSON. When the app is built (both debug and production), these files are copied into the app’s
Resources Folder under a
Themes subdirectory. The app then loads these files and parses them using the built-in
When debugging the apps from macOS to Windows or Linux they work fine. When debugging on macOS it’s fine. When running the built app within macOS it’s fine. The issue occurs if I build for Windows or Linux (64-bit) from macOS. If I run one of the built apps on either Windows or Linux, the app crashes with an
UnhandledException. I caught the exception and it seems to be an
InvalidJSONException - something about an “invalid char”. I dumped the contents of the theme file to disk upon the exception to see what was happening.
Instead of seeing JSON, I see this:
aMac OS X 2∞‚ATTR‚††com.apple.lastuseddate#PSw`ùaπˆ6This resource fork intentionally left blank ˇˇ
I think the IDE is messing something when copying the files into the built app.
If I build the project on a Windows PC it works fine.