How to install Wine as native on your system including Catalina

by

What is Wine?

 

Wine is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop.

 

Wine is available almost for every macOS version but the last one “Catalina” is not working directly! So in this tutorial we will learn how install it correctly and integrate it with your system commands.  

 

So what exactly we need to install it?

  1. Brew Package Manager ( You can review the source website here )
  2. Xcode command tools installed on your system.
  3. Xquartz >> latest version installed on your system
  4. Wine Devel
  5. You must have root access on your mac.

 

Let’s start

1. Disable your GateKeeper

 

If you already did that then skip this step >> otherwise open your terminal and type the following command:

 

sudo spctl --master-disable

 

Hit return then insert your mac password and hit return again.

 

To make sure it is disabled >> go to “System Preferences” >> Security & Privacy >> “General” tab >> from “Allow apps downloaded from:” you should see “Anywhere” options already selected.

2. For “Catalina” users

 

You need to give the terminal.app the “Full Disk Access” to prevent any file creation failure later.

 

Go to “System Preferences” >> Security & Privacy >> “Privacy” tab >> click on “Full Disk Access” >> now click on padlock icon on the left bottom  to unlock it >> enter your mac password >> now click on “+” to add an app then add the terminal.app which can be found in “Applications/Utilities”.

3. Install Xcode command tool 

 

If you already did that before then skip this step >> otherwise open your terminal and paste the following command:

 

xcode-select --install

 

Your mac password is needed.

4. Instal Brew Package Manager

 

Open your terminal and type the following command:

 

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

 

Or visit their site to copy the code from there >> https://brew.sh

 

It may ask for your mac password so pay attention and insert it.

 

After it finished >> to make sure it is installed type the following command:

 

brew -v

 

The output should be like that: 

 

Homebrew 2.2.17

Homebrew/homebrew-core (git revision 37734; last commit 2020-05-22)

5. Install Xquartz

 

On your terminal type the following command:

 

brew cask install xquartz

 

If it ask for your mac password, just insert it and hit return.

 

After it finished the installation you should see the following message:

 

xquartz was successfully installed!

6. Install Wine Devel

 

On your terminal type the following command:

 

brew cask install homebrew/cask-versions/wine-devel

 

If it ask for your mac password, just insert it and hit return.

 

Wait until it finished >> after that you should have wine installed & integrated on your mac and you should see the following message:

 

wine-devel was successfully installed!

 

To check it anyway >> type the following command:

 

wine64 --version

 

And you should see the wine version >> otherwise mean it is not installed and you need to review the above steps carefully.

7. Now how to run the game “THE SIMS 4” using the native wine in the easiest way.

 

Open your terminal.app >> from Terminal menu click Preferences… >> click on Profiles tab >> then shell tab

 

>> from When the shell exist: >> select Close if the shell exited cleanly >> now close your Terminal

 

Open your TextEdit.app >> File >> New ( or just click “command + N” ) >> now click on “Format” >> Make Plain Text >> now copy and paste the following code inside:

 

#!/bin/sh

cd "${0%/*}"

wine64 TS4_x64.exe

exit 0

 

Now save it to your desktop with name from example TS4 Start and uncheck the option if no extension is provided, use “.txt” and leave the name as it is TS4 Start >> if you noticed there is an extension at the end of the name then remove it

 

>> for example if it is like this TS4 Start.txt

 

>> remove .txt so it will be like this TS4 Start >> now save it to your desktop

 

Now you have plain file on your desktop >> TS4 Start

 

On your terminal type the following command to make it executable: 

 

chmod +x ~/desktop/TS4\ Start

 

You need now to move this file TS4 Start from your desktop to the following path:

 

Right click on The Sims 4 icon ( The Game ) >> Show Package Contents >> drive_c >> Program Files >> The Sims 4 >> Game >> Bin

 

So TS4 Start will be inside Bin folder beside TS4_x64.exe

 

Now you only need to make an alias to TS4 Start to where ever place you like >> for example Desktop and to do that

 

Hold your command+alt then drag TS4 Start to your desktop and then you can double click on that alias to run the game.