On Mac, application signature has become a standard, and since Big Sur, you can’t even run unsigned applications. In the past, we published a workaround to build client-server applications running on a Windows server and accepting connections from Mac clients. With the release of 4D v19, we have updated the application building in 4D to handle this case. Here is how you can build a single platform or a cross-platform application in v19.
Building a single platform application
If your server and your clients are on the same platform, be it Windows or Mac, it’s very easy to build your application:
- Open the Client/Server tab of the Build Application window.
- Check Build server application and specify a proper path to the 4D Server folder (on Windows) or application (on Mac).
- Check Build client application and specify a proper path to the 4D Volume Desktop folder (on Windows) or application (on Mac).
- You can check Allow automatic update of client application for your platform if you want to automatically update old clients. In that case, it’s important to increase the current version number.
- Take a moment to verify that your license and certificate are properly set in the Licenses & Certificate tab, and click on Build to build your application.
You will find your client and server applications inside the [name of your base]_build folder located in the same folder as your database.
Building a cross-platform application
If you need to build a cross-platform application, with both Windows and Mac clients, the procedure is different depending on whether your server is running on Windows or Mac.
If your server is running on Mac, you will also need to check Allow automatic update of Windows client application and give the path to a Windows 4D Volume Desktop folder. You can click on Build to build your server and both of your clients.
If your server runs on Windows, it’s a bit more complicated, as your application needs to be signed on Mac and compiled for Silicon:
- On a Mac, compile your base for all platforms.
- In the Build Application window, go to the Client/Server tab and check only Build client application, and if you need an automatic update, check Allow automatic update of Macintosh client application. If you use automatic update, the build will create a Mac client update. The Mac client update is the file named update.mac.4darchive located in the Upgrade4DClient folder next to your Mac client application.
- Then, on Windows, open the database compiled on Mac and follow the procedure to build a single platform application. If you need to upgrade your Mac client, check Allow automatic update of Macintosh client application and provide a path to the Mac client update. You can now build your cross-platform application!
These new v19 functionalities will streamline application building.
Of course, if you have any question about these changes, let us know on the 4D Forum.