VMware Cloud Community
AnonymousDefaul
Enthusiast
Enthusiast

MAC OS - Run only in MAC OS Yosemite and above?

Hello,


I am creating an installer in MAC OS. This installer only needs to run in MAC OS Yosemite and above. If the MAC OS version is below then show a message to the user that this can only run in Yosemite and above. How to do this?

Labels (1)
1 Reply
AnonymousDefaul
Enthusiast
Enthusiast

This can be done by checking that the platform is Mac OS X and then checking if version is lower than 10.10 and throwing an error in such case - such as:

<initializationActionList>     <throwError>         <text>This applicaion has to be run on OS X Yosemite or above.</text>         <ruleList>             <platformTest>                 <type>osx</type>             </platformTest>             <compareVersions>                 <logic>less</logic>                 <version1>${osx_major_version}</version1>                 <version2>10.10</version2>             </compareVersions>         </ruleList>     </throwError> </initializationActionList>

0 Kudos