One thing I would for sure do is get your application signed so you do not get into instance where OS won’t lety it run. Here are notes from
My assumption is that the application is falling victim to Gatekeeper and being translocated to a read-only location. Apple documents how to get around this; they suggest signing the app and placing it on a dmg and then signing the dmg. Quote from Apple: "For distribution outside of the Mac App Store, the preferred options are to use a signed disk image (DMG) or signed installer package. Signing these allows validation of the contents and their source. ZIP archives may also be used, but this is discouraged." However they also mention that if you still deliver the application as a zip file then you would need to place the application into the root of the /Applications/ folder; so if your application is named myApp.app it should be moved exactly to /Applications/myApp.app right after extracting it from the ZIP file (not after attempting to run it from somewhere else). But I am pretty sure for this to work the application is still supposed to be signed. Sometimes you can right clicking on the application and choosing "Open" to get passed gatekeeper warning about unsigned applications, but I am not sure if this affects app translocation. As a last minute alternative, maybe there is an extended attribute you can remove from the installed application (using 'xattr -cr /Applications/myApp.app' from a terminal) to get it out of quarantine. I don’t know if this will work, but maybe it can help. Here are some references that may help: http://kb.4d.com/assetid=77688 https://developer.apple.com/library/content/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG17 https://apple.stackexchange.com/questions/87313/how-to-remove-xattr-com-apple-quarantine-from-all-webarchive-files-with-that-ex On Tue, Jan 30, 2018 at 5:08 PM, James Knight via 4D_Tech < [email protected]> wrote: > I’ve never managed to find a reliable way of installing a built > application on our client Macs. > > Our network is 15 Macs running latest versions of 10.10 or 10.12. 4D is > version 15.5 and I’m compiling an app using 4D Volume Desktop. The data is > all stored in a MySQL database, accessed via the MyConnect plugin, so the > 4D data file is only used to get things started. > > The data file is stored in Users/Shared/MyProgram. I have tried installing > the compiled app by copying it directly on to the client machines, and by > building a package and running installer. I’ve tried installing in the > applications folder and in the Users/Shared/MyProgram folder. Always I get > one of the following issues: > > 1. Crash immediately after selecting the data file. Extract from crash > report says: > > > Crashed Thread: 8 Application process (id = -1) > > > > Exception Type: EXC_BAD_ACCESS (SIGSEGV) > > Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020 > > Exception Note: EXC_CORPSE_NOTIFY > > > > Termination Signal: Segmentation fault: 11 > > Termination Reason: Namespace SIGNAL, Code 0xb > > Terminating Process: exc handler [0] > > > 2. Error on launch telling me that the error dialog could not be loaded (I > haven’t seen this one recently so can’t remember the exact words). The app > continues to load after dismissing the dialog. > > 3. Runtime error on quit - "error when executing the method sponsored > (runtime) at line number 13, database is write protected” > > 4. Error telling me that the file is write protected > > I can fix all of these problems by either: > > a) getting info on the folder enclosing the app (when it’s not in the > applications folder) and applying its privileges to the enclosed items; or > b) copying the application to the desktop and then copying it back into > the applications folder. This alters the owner from “system" to the logged > in user. > > In both scenarios, I can’t see any obvious alterations to the permissions, > by carrying out this instruction, but it’s the only way I can find to make > the app work. > > But obviously this is not a sustainable solution, as I have to log into > each computer (albeit using Remote Desktop) and alter the privileges on > every computer, every time I deploy an update. > > Does any of this make any sense to anyone? > > TIA > > James > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** -- ----------------------------------------------------------------------------------------- Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064 Informed Solutions, Inc. Brookline, MA 02446 USA Registered 4D Developer Providers of 4D, Sybase & SQL Server connectivity http://www.informed-solutions.com ----------------------------------------------------------------------------------------- This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

