Currently, when I download my code signed app on Sierra it crashes on load because it can’t find the XojoFramework.
Dyld Error Message:
Library not loaded: @executable_path/../Frameworks/XojoFramework.framework/Versions/A/XojoFramework
Referenced from: /Volumes/VOLUME/*/OfficeTime.app/Contents/MacOS/OfficeTime
Reason: image not found
I assume this is because downloaded zips launched from the download folder are given a random path an Xojo uses absolute paths somewhere.
[quote=285817:@Stephen Dodd]Currently, when I download my code signed app on Sierra it crashes on load because it can’t find the XojoFramework.
Dyld Error Message:
Library not loaded: @executable_path/../Frameworks/XojoFramework.framework/Versions/A/XojoFramework
Referenced from: /Volumes/VOLUME/*/OfficeTime.app/Contents/MacOS/OfficeTime
Reason: image not found
I assume this is because downloaded zips launched from the download folder are given a random path an Xojo uses absolute paths somewhere.
Must I switch to DMGs?[/quote]
Considering the “referenced from” path is not the downloads folder, I’d suggest moving your app to the desktop or Applications folder.
You may also want to consider a signed zip though. Apple’s using that with a .xip extension.
No!
macOS Sierra only extracts .xip’s which are signed by Apple.
If you’re going to sign a .xip with your Developer ID, it won’t be extracted on macOS Sierra.
Applications created by the Xojo compiler reference the Xojo framework via a relative path. App path randomization works on the scope of the entire application, which should include the framework. Could you send me one of the zip files you’re testing with?
There’s at least one undisclosed security issue with XIPs. I can’t find an archive link to this, but it was in an email from Apple employee Garth Cummings on the apple-cdsa mailing list:
Well, if I can’t use Zip because it won’t launch and I can’t use .xip, then I would assume DMGs to be the only remaining option. (Other than, ack, installers)
And if you’re moving it to the Desktop (or Applications) folder after extracting?
The “pain” Apple is creating in macOS Sierra is that an .app extracted from a downloaded .zip has to be (manually) moved (in order not to get translocated). So a .zip still works - but
If your DMG offers a hint to the user as to what they’re supposed to do (like the Xojo DMG and so many others do) I suspect you’ll have much more success.
We use DMGCanvas because they have a fairly good command-line utility with it… and they just added signing for Sierra, so it has become a no-brainer.
What is supposed not to work on Sierra with the currently available version of OfficeTime?
OMG the app wants to show me daily tips. Haven seen those on the Mac for a long long time. Other than that the app starts fine - even from the downloads folder.
So if you’re looking for a replacement of .zip (just put the .app in a .dmg, without creating fancy backgrounds, alias to /Applications and some info about copying the .app), then an internet-enabled .dmg may work well.