iOS tweak development

Source: Internet
Author: User
Tags control characters sublime text

Installation section, a lot of steps, pretty troublesome

1, first install Xcode, in the Mac Store can be downloaded for free.

2. Install Xcode Command Tools

Open the terminal, enter Xcode-select--install can automatically eject the installation interface.


3. Agree to Xcode license agreements

Input sudo xcodebuild-license directly in the terminal

Press ENTER to automatically open the protocol content, press Q directly ignore

Finally manually enter the agree, done.

3, installation MacPorts, website: http://www.macports.org/install.php

According to your MAC's system version to find the corresponding download installation, installation time is longer, you have to wait patiently.

4, installation dpkg

Open the terminal, enter the sudo port-f install dpkg, and enter the computer's password in the following Password: (Will not be displayed when input, press ENTER when finished)

The dpkg command is then automatically downloaded and installed, depending on the speed of the connection. (also quite slow)

5, finally in the terminal input dpkg, show the operation options, things are installed.

6, start to install Theos, reference Http://iphonedevwiki.net/index.php/Theos/Setup

Step by step, it is relatively simple, need to use SCP copy file.

==============================================================

Pull down the new engineering test.

I went through a big pit, the pit of vomiting blood, everyone warning, is not to use the Mac comes with the text editor, because you input control characters, such as space quotes and other things, will become you do not know what characters, resulting in a variety of strange compilation errors, it is recommended to use sublime text. The important thing to say three times, do not use the Mac's own text editor. Do not use a text editor that comes with your Mac. Do not use a text editor that comes with your Mac. Do not use a text editor that comes with your Mac. You can use Vim and the like, in short, do not use the Mac's own text editor.

1. Create a project

Terminal input $theos/bin/nic.pl on it, choose Iphone/tweak, step by step, pay attention to fill in the contents, suggest to see clearly, do not skip directly.

2. Modify the makefile under the Project catalogue, and fill in the contents

  

Export ARCHS = armv7 arm64export TARGET=iphone:latest:5.1include $ (THEOS)/makefiles/  == uikithellotweak_private_framework== tweak.xminclude $ (theos_make_path) /tweak.mkafter-Install::    "killall-9 Springboard"

3. Modify the contents of the TWEAK.XM

%Hook Sblockscreendateviewcontroller-(void) Setcustomsubtitletext: (ID) arg1 Withcolor: (ID) arg2{    %orig (@ "ios jailbreak test, ^_^", arg2);} %end

4. Package, use command make

5. Installation

  export THEOS_DEVICE_IP=192.168.1.xxx (这是手机的IP)

Make package Install

6. Lock screen, light the screen can see the effect of

iOS tweak development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.