Jump to content

1 post in this topic

Recommended Posts

Updated (edited)

=

>This is going to be a short guide, mainly commands and basics.

Have Xcode installed. Also install [ic]ldid and dpkg[/ic]
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.

Updated by Sterling0x1
fix
  • Like 1

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
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines