Since yesterday, I am dealing with a nasty problem under macOS Sierra Beta. It never happened to me before, so I am at a loss. In all Xojo versions pass 2014 when I click run, compile seems to go fine, then I get a MsgBox saying :
Compilation of “myapp” failed
An error occurred when attempting to launch the application
If I try to build the result is a non working app. Although I can launch the Unix executable inside the bundle.
I filed a bug report but Xojo cannot reproduce the issue.
Have you done the usual suspects? Can you compile “Hello World”? Have you reinstalled Xojo? Did you try to remove the plugins? Do you have plugins that need to be installed like Valentina?
I thought about that immediately. In the case of a run, the previous build is correctly deleted. Building works fine as well. The resulting app bundle is simply bad. Although the Unix executable is valid. Which convinces me something is wrong between Xojo and Sierra.
Anyway, in a few minutes I shall start over with El Capitan hopefully with no more issue.
FWW: I have no issues compiling all my projects running macOS 10.12 beta and Xojo 2016 1.1 - most uses declares, MBS plugins and dtPlugins.
All compiled apps work fine here.
The only problem still remains the quarantine issues - but my dirty trick code posted earlier fixes this.
The issue I encountered did not manifest right away. It started with a FileType that when empty compiled fine, but as soon as I added a type, I got the compilation failed message. When I took the type off, it compiled again. I reported right away.
Then all the sudden, Check Printer that used to work perfectly stopped compiling as soon as I added a new version of RubberViews. But removing it again did not fix the problem.
The only thing that worked was to compile with a 2014 version or less.There seems to be a definite issue between Sierra and more recent versions.
I cannot afford to live dangerously anymore. Back to EC, until I am reasonably certain Sierra does not bite.
Quick tip and solution could be, just to rename a main Xojo project file e.g. myprojectname.xojo_binary_project -> myprojectname1.xojo_binary_project
or to do SAVE AS from File menu in Xojo.
Rebooting/shutting down also sometimes will not help but above thing is working for sure if you want to move ahead with work and stop chasing for hacking solution.