Downgrading macOS Packages: A Guide to Installation Options
Overcoming Version Conflicts in macOS Package Installation
When installing macOS packages, it’s not uncommon to encounter situations where a newer version of a dependent library causes conflicts with an external program. In such cases, downgrading the dependent library to an older version can be a temporary solution to repair bugs. In this article, we’ll explore two scenarios where downgrading is necessary: during installation and custom installation.
Downgrade Installation
During the production of macOS package installation, general released versions of programs are higher than the old version. However, there are instances where downgrading to an older version of a dependent library is necessary. For example, if a high version of a dependent library has bugs that need to be temporarily fixed.
In such cases, the package installer should be configured to allow downgrading. According to the instructions, the official website of the bundle package types of files can all be set to downgrade options. Our project requires this exact feature, as we need to downgrade to Qt5.8.0 to be compatible with an external program.
However, we encountered an issue when trying to install an older version of the Qt library. The higher version could not be overwritten successfully, leading us to wonder if such an option existed. Since our program is a Bundle type of file, all resources and dependencies are packaged inside. When the package is selected, its internal file structure does not begin with the Qt library dependencies folder.
To resolve this, we need to unfold the layer by layer until we reach the Qt library dependencies folder. Once we select any of the Qt dependencies, the right UI option to check the downgrade option becomes visible.
Custom Installation
When making packages using the installation package, we sometimes encounter situations where an installation package contains multiple mounting assemblies, each requiring a different bit. In such cases, we need to choose the custom installation option, otherwise, the option to install multiple components does not appear.
Troubleshooting and Resources
For more information on macOS package installation and downgrade options, refer to the following resources:
- About Packages: A comprehensive guide to packages and their options, including downgrade options.