Compilation of "XXX" failed

Hi, haven’t touched my main project for a few weeks and in the meantime MacOS Sequoia updated itself to 15.0.1.

So today I open the project do an update for a customer. When I try to build and run, the IDE reports an error “A file system error (#1) occurred for “”<MyApp.debug.app>”" yada yada yada…"

Sure enough, the folder containing the source project has the previous build of “MyApp.debug.app” which the IDE has failed to delete. After manually deleting the file, the IDE will builds and rus, until the next time - ie I have to manually delete the .debug.app file EVERY TIME.

Looks like the IDE doesn’t clean up (ie delete the file) after the app quits normally.

It’s 100% reproducible (ie occurs every time).
It also occurs with the simple example projects from Xojo, no need for a demo.

Doesn’t happen for me. For some years I had a script to nuke the old debug app away.

Thanks…

OK discovered something. If the build file is created in a folder which is being mirrored to iCloud, the issue arises. NB my internet connection is fairly slow at 10MB/s.

Turn off the internet connection, the IDE works normally.

Change the IDE settings to save the temporary file somewhere which is not mirrored by iCloud drive, works normally.

Mac Studio M3 Max running Sonoma 15.0.1, Xojo 2024R3. (I always stay one rev behind).

Ah. Yes, that’s the problem right there. As far as I know, you’ve discovered the only solution: don’t build your app there. :grin:

iCloud should be burned at the stake.

3 Likes

Make sure you have Sequoia 15.1 and not 15.0.1, 15.0.1 was still buggy.

For 15.2 beta they are patching the system to sprinkle more unsolicited AI spice here and there and probably it will get worse again. :rofl:

1 Like

iCloud took over my Documents folder about a week ago after I stupidly/accidentally clicked the ‘Sync Desktop & Documents folders’ checkbox in Finder Settings. It did what you said and refused to delete the old built app, but also made hundreds of my files invisible while it synced them.

Never turn on this option as a developer!

And if you have turned it on, be prepared for a nightmare if you turn it off.
All your documents disappear - heart attack time.
You would then have to copy them from the iCloud area, and paste them back where you need them.

3 Likes