OS's "First Time Use" hides my just compiled app

  1. last week

    Arthur G

    Nov 30 Pre-Release Testers

    I don't know if this happens on a PC but definitely on my Mac.
    I compile the app and run it. Mac displays the "Do you want to open this app. It's the first time".
    I click yes, and then have to go find my app.
    I thought the activate event would solve the problem, but NO. It's still last.
    What do I do?

    I have a Xojo app which has xojo apps inside which run as helper apps. I have a complicated build system which builds the helper apps, then embeds them within the parent app.

    Occasionally (perhaps one in 50 times?) I see this message for one of the helper apps.

    I think it's some sort of timing bug - it's more likely to happen if I launch the app immediately after it's built, but it seems if I wait a while it almost never happens.

    Perhaps the OS is doing some sort of background processing of the newly built app, and if that hasn't yet finished when you lauch it, boom?

    macOS 10.12.6, various Xojo versions.

  2. Dave S

    Nov 30 San Diego, California USA

    been writing Mac apps for years... never seen that happen... can you make a small test project that duplicates the issue?

  3. Beatrix W

    Nov 30 Pre-Release Testers Europe (Germany)

    Is your app signed?

  4. Dave S

    Nov 30 San Diego, California USA

    @Beatrix W Is your app signed?

    mine rarely are... and this doesn't manifest itself...

    Ive seen "you downloaded this off internet" and "not optimized for 64bit" during testing... but never had it "vanish"

  5. Arthur G

    Nov 30 Pre-Release Testers

    Sorry I can't build one so far. It doesn't vanish. It goes to the end of the line.

  6. Art G

    Nov 30 Prescott AZ

    Sounds like something related to the Security and Privacy system preferences.

  7. Tim S

    Nov 30 Canterbury, UK

    @Arthur G Sorry I can't build one so far. It doesn't vanish. It goes to the end of the line.

    Line? What line?

  8. Arthur G

    Nov 30 Pre-Release Testers

    @Tim S Line? What line?

    The line of Apps that are open in my Mac.
    Just to be clear the App opens. The line is something like "This is the first time this App is opened. Do you want to go to Finder Location?"
    It's the same almost as the "you've downloaded this app" message

  9. Tim S

    Nov 30 Canterbury, UK

    @Arthur G The line of Apps that are open in my Mac.
    Just to be clear the App opens. The line is something like "This is the first time this App is opened. Do you want to go to Finder Location?"
    It's the same almost as the "you've downloaded this app" message

    You mean in the Dock? Not sure that's relevant in any way at all, that's just where the Dock happens to put it, and you could move it if you wanted to.

    Sounds to me like Gatekeeper thinks you've downloaded the app to somewhere sensitive. Where is your project file? And I assume your copy of the Xojo IDE is in th eApplications folder, yes?

  10. Arthur G

    Nov 30 Pre-Release Testers

    Not the dock. (I wish it was that easy)
    The display of Apps one Command-Tabs through to get the next one.
    The active or App 0 is to the left. This security thing sends it to the far right or last.

    Where is your project file?

    No. Another I wish. It's in the Documents folder.

    I didn't think you could work on files in App folder. Can you?

  11. Jeff T

    Nov 30 Midlands of England, Europe

    Is this running in debug mode?
    have you got a breakpoint in Open()

  12. Tim S

    Nov 30 Canterbury, UK

    @Arthur G Not the dock. (I wish it was that easy)
    The display of Apps one Command-Tabs through to get the next one.
    The active or App 0 is to the left. This security thing sends it to the far right or last.

    Ah - I never use that facility.

    No. Another I wish. It's in the Documents folder.

    Well - so much for me being a clever-cloggs :-)

    I didn't think you could work on files in App folder. Can you?

    No, I don't think so.

    Are you running the compiled app under the debugger, or have you built an actual application? Either way, when it runs there should be an icon in the Dock for it. What happens if you do right-mouse on that icon, and then select Options -> Show in Finder? Where is the actual executable being run from?

  13. Arthur G

    Nov 30 Pre-Release Testers
    Edited last week

    This is the window-image-
    Now it doesn't move to the end. Grumble.
    When I click on show in Finder, it's exactly where it should be.
    I actually have a shortcut for it there.

    If nobody has any ideas, I'll consider this just weird.

  14. Alberto D

    Nov 30 Pre-Release Testers, Xojo Pro

    Searching the internet it looks like you may have some sort of LaunchServices database corruption.
    Some info here and here .

  15. Arthur G

    Nov 30 Pre-Release Testers

    @Alberto D;Poo Searching the internet it looks like you may have some sort of LaunchServices database corruption.
    Some info here and here .

    I think that might be the answer

  16. Michael D

    Nov 30 Pre-Release Testers, Xojo Pro Answer

    I have a Xojo app which has xojo apps inside which run as helper apps. I have a complicated build system which builds the helper apps, then embeds them within the parent app.

    Occasionally (perhaps one in 50 times?) I see this message for one of the helper apps.

    I think it's some sort of timing bug - it's more likely to happen if I launch the app immediately after it's built, but it seems if I wait a while it almost never happens.

    Perhaps the OS is doing some sort of background processing of the newly built app, and if that hasn't yet finished when you lauch it, boom?

    macOS 10.12.6, various Xojo versions.

  17. Art G

    Dec 1 Prescott AZ

    @Arthur G This is the window-image-
    Now it doesn't move to the end. Grumble.
    When I click on show in Finder, it's exactly where it should be.
    I actually have a shortcut for it there.

    When you select Show Application, it shows you where it is and does NOT launch it. You need to select Open to launch the app.

  18. Michael D

    Dec 2 Pre-Release Testers, Xojo Pro

    I'm not sure my answer is really best marked as "the solution" - I don't know why this happens, or if what I'm seeing is the same as others.

or Sign Up to reply!