Jump to content
Sign in to follow this  
Ekin

Install THEOS on Mac

Recommended Posts

Ekin

This is an older tut, some stuff might have changed since but you get the idea.

  >This is going to be a short guide, mainly commands and basics. Have Xcode installed. Also install ldid and dpkg
Clone theos. default location should be opt/theos, but use anything else if you want. 
Run the following commands:

cd
mkdir opt
cd opt
git clone --recursive https://github.com/theos/theos.git


when its done add theos to path by editing bash_profile. Run this command to open it in text editor.  

 touch ~/.bash_profile; open ~/.bash_profile 


add the following (change your username obviously):

export THEOS=/Users/sterling/opt/theos
export PATH=$THEOS/bin:$PATH
#//optional//export THEOS_DEVICE_IP=192.168.0.1 THEOS_DEVICE_PORT=22


Now run the following command:  

xcode-select -print-path


If the output is,  [ic]/Library/Developer/CommandLineTools[/ic] you'll have to point it to Xcode app with the following command:  

sudo xcode-select -switch /Applications/Xcode-beta.app


>If you are using Xcode 8 just use [ic]Xcode.app[/ic]
when done, make a test tweak, compile it, done. In case you get dpkg error while compiling the tweak, you'll have to install an older version and stop it from updating. Run the following commands:  

brew remove dpkg  
HOMEBREW_NO_AUTO_UPDATE=1 brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/7a4dabfc1a2acd9f01a1670fde4f0094c4fb6ffa/Formula/dpkg.rb
brew pin dpkg  

It will still give a warning but at least it will compile it alright.

Edited by Ekin

Share this post


Link to post
Share on other sites
Ekin
export THEOS=/Users/sterling/opt/theos

^

change Sterling to your username 

// can't edit lol

Edited by Ekin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...