Catalina Tips

  1. ‹ Older
  2. 6 weeks ago

    Kevin G

    Aug 1 Pre-Release Testers, Xojo Pro Gatesheed, England

    @Michel B You want the app to work in the current version of Catalina, and unfortunately, 2019R1.1 don't support launching other apps.

    2019R2 is probably not that far away, which should alleviate the issue.

    Have you tried the MBS Launch Services functions?

    I've just ran quick test remote debugging the following code from my Mac running Xojo 2017r3 to an iMac running Catalina beta 5 and it successfully opened a screen shot in Safari.

    Dim applicationFolderItem As FolderItem
    Dim documentsList(-1) As FolderItem
    Dim launchServicesParamsObj As LaunchServicesLaunchParameterMBS
    Dim result As FolderItem
    
    'find the application
    applicationFolderItem = SpecialFolder.Applications.Child("Safari.app")
    
    
    'add our document to the list we want to open
    documentsList.Append(SpecialFolder.Desktop.Child("Screenshot 2019-06-05 at 10.43.31.png"))
    
    
    'define the launch parameters
    launchServicesParamsObj = New LaunchServicesLaunchParameterMBS
    launchServicesParamsObj.Defaults = True
    launchServicesParamsObj.Application = applicationFolderItem
    
    
    'launch
    result = LaunchServicesOpenXMBS(documentsList, launchServicesParamsObj)
    
    Break
  3. Michel B

    Aug 1 Pre-Release Testers, Xojo Pro RubberViews.com

    Of course, I tried MBS, as well as declares. Nothing worked.

  4. Sam R

    Aug 1 Pre-Release Testers, Xojo Pro, Third Party Store Hengchun, Pingtung, Taiwan

    @Michel B Of course, I tried MBS, as well as declares. Nothing worked.

    I believe that launching Applications has been blocked as a "Security" risk.

    In Beta 4 of Catalina; I was able to make one of my applications work. I finally had one app that didn't crash on Catalina.

    With Beta 5; I was able to get my HDR application to work, the NSInconsistencyException was no longer being raised and the warning about incorrect constant values no longer appears. SpcecialFolder.trash is still broken and that was causing a problem; I used the NSFileManager to get a path to the Trash and that resolved into a folderitem.

    However updating the HDR preview is painfully slow; it's acceptable on Mojave, but on Catalina... Ouch... Hopefully Apple will improve it. I've already identified some points that I can alter.

    But it looks like we're slowly getting there.

  5. Kevin G

    Aug 2 Pre-Release Testers, Xojo Pro Gatesheed, England

    @Michel B Of course, I tried MBS, as well as declares. Nothing worked.

    Hi Michel

    When you tested the above MBS functions was it n an app that was notarized?
    As I mentioned, this code worked for us yesterday when remote debugging so I’m trying to understand why it works for us and not you.

  6. Jeff T

    Aug 2 Pre-Release Testers Midlands of England, Europe

    as long as your certificates are valid; and they were issued prior to June 1; then you can sign with them as usual but you're not required to notarize.

    I read it as if a DMG was SIGNED before 1 June, it was OK.
    But if SIGNED afterwards, it had to be notarised. I didn't pick up anything about the expiry date of the certs.
    I'm switching to PKG

  7. Kevin G

    Aug 2 Pre-Release Testers, Xojo Pro Gatesheed, England

    @Jeff T I read it as if a DMG was SIGNED before 1 June, it was OK.
    But if SIGNED afterwards, it had to be notarised. I didn't pick up anything about the expiry date of the certs.
    I'm switching to PKG

    Hi Jeff.

    I don't think switching to PKG will allow you to avoid notarization. I'm sure I read in the Apple developer documentation that these had to be notarized as well.

  8. Jeff T

    Aug 2 Pre-Release Testers Midlands of England, Europe

    I don't think switching to PKG will allow you to avoid notarization.

    Correct, it won't .
    Basically anything shipped from now needs notarisation, or risks being smeared as malicious by Apple.
    Im switching to PKG because App Wrapper makes that easier than DMG.
    Notarisation has added anything up to 40 minutes to my build cycle.

  9. Emile S

    Aug 2 Europe (France, Strasbourg)

    notarization ?
    passport will come in the Beach Boys year (20/20) ;)
    (@ amazon The Beach Boys: 20/20

    Enjoy (after all these efforts for Catalina ß…)

  10. Sam R

    Aug 2 Pre-Release Testers, Xojo Pro, Third Party Store Hengchun, Pingtung, Taiwan
    Edited 6 weeks ago

    @Jeff T Basically anything shipped from now needs notarisation, or risks being smeared as malicious by Apple.
    Im switching to PKG because App Wrapper makes that easier than DMG.
    Notarisation has added anything up to 40 minutes to my build cycle.

    Hmmm... Personally I wouldn't recommend distribution via PKG over DMG; especially if we're talking about Catalina.

    In my testing (with Beta3) and a Pkg file;

    • Do I want to download from this website (allow/deny).
    • Do I want to open the file I just downloaded from the Website (Open/Cancel) - Of course I just downloaded it; what'd you expect me to just look at the file icon?
    • Do I want to allow Apple installer to access the Downloads folder (allow/deny) - That's where the file is, so yeah.
    • Do I want to allow Apple installer access to the list of disks connected to the computer (allow/deny) - This is %^#$^%&$ stupid.
    • Do I want .... YES; YOU PIECE OF USELESS *&^&*%*^*

    Open the application:

    • Do you allow this application to send you notifications (allow/deny) - FOR CRYING OUT LOUD!
    • Do you want to hurl computer out of the window (allow/deny).

    DMG is more slightly more 麻煩; but it's going to give your customers a less frustrating experience.

  11. Kevin G

    Aug 2 Pre-Release Testers, Xojo Pro Gatesheed, England

    @Jeff T Correct, it won't .
    Basically anything shipped from now needs notarisation, or risks being smeared as malicious by Apple.
    Im switching to PKG because App Wrapper makes that easier than DMG.
    Notarisation has added anything up to 40 minutes to my build cycle.

    ah - ok. We don't use App Wrapper as we have our own build processes that do the equivalent.
    Out of interest, are you notarizing your developer builds for QA testing or are you just notarizing your release version?

  12. Michel B

    Aug 2 Pre-Release Testers, Xojo Pro RubberViews.com

    The issue of launching executables under Catalina will certainly be addressed by 2019R2. So this discussion is partially unnecessary, until it is released.

    <hint>
    I cannot discuss beta versions, of course.
    </hint>

  13. Sam R

    Aug 2 Pre-Release Testers, Xojo Pro, Third Party Store Hengchun, Pingtung, Taiwan

    @Jeff T Notarisation has added anything up to 40 minutes to my build cycle.

    Saw this and thought of you https://twitter.com/tperfitt/status/1157015909925642241

  14. Beatrix W

    Aug 2 Pre-Release Testers, Third Party Store Europe (Germany)

    Thanks, Sam, for making my day.

  15. Jeff T

    Aug 2 Pre-Release Testers Midlands of England, Europe

    Saw this and thought of you

    This is so true. :)

    I don't swordfight , but there is a definite opportunity to go make a coffee or 4 while I'm waiting for the big Thumbs-up to happen on 4 or 5 built packages.

  16. David M

    Aug 2 Pre-Release Testers, Xojo Pro

    @Jeff T I read it as if a DMG was SIGNED before 1 June, it was OK.
    But if SIGNED afterwards, it had to be notarised. I didn't pick up anything about the expiry date of the certs.
    I'm switching to PKG

    After doing some more reading: you're right. Which means I'm going to need to notarize by then.

    (more comments and questions about this, eventually, in the threads having to do with notarization).

  17. Tim S

    Aug 2 Canterbury, UK

    @Sam R I believe that launching Applications has been blocked as a "Security" risk.

    Won't be long before that applies to all apps on the machine, even Finder. So we can sit there looking at a blank screen and marvelling at how secure the system is.

  18. Not DogAlina related, as I do this with the macOS desert version, but it happens again that DMG Canvas failed to let sign the DMG using AppWrapper 3.9.1 (DMG Canvas issue, i presume) .

    But the DMG itself will be created correctly, and signing the DMG file itself using AppWrapper works fine.

    Notarizing? Need to examine how to notarizing then.

  19. Jeff T

    Aug 2 Pre-Release Testers Midlands of England, Europe

    Out of interest, are you notarizing your developer builds for QA testing or are you just notarizing your release version?

    I was just doing it for release.
    But recently I found that debug apps were behaving differently - because they weren't hardened or notarised - so that's going to have to change too.

  20. Michael D

    Aug 3 Pre-Release Testers, Xojo Pro

    FYI, beta 5 release notes are available: https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_beta_5_release_notes

  21. Michael D

    Aug 3 Pre-Release Testers, Xojo Pro

    FYI if you're testing DMG signing and notarization in Catalina, beta 5 has apparently fixed an issue:

    Security / Resolved Issues: Opening some .dmg files signed before June 1, 2019 using a Developer ID no longer incorrectly display an error message. All .dmg files signed using a Developer ID after June 1, 2019 must be notarized. For more information about notarization, see Notarizing Your App Before Distribution. (52234399)

or Sign Up to reply!