Internet search jailbreak environment to build, find Iosopendev software, is a very convenient to write plug-ins, and can be created directly with Xcode tool, then began to learn how to install
After assembling the online method, I found that when I installed it:
1. The last time the author was updated was four months ago and is not adapted to the version after Xcode 6, so there are a lot of problems with the current OS X 10.11.1 and Xcode 7.
In particular, a large number of installation failures are not answered, it is annoying me
2. Installation tools that need to be fitted are also severely outdated, such as tools such as Theos,ldid
So according to your own groping, attach an article how to install the Iosopendev process:
Note: Please try to install after FQ, some URLs may be denied access by the domestic network
1. First install the MacPorts software, download it from the website according to the version of Mac itself
After downloading the installation, the progress bar will stop for a period of time during installation and wait patiently for 2. After installing MacPorts, open terminal input sudo port-v self update macports to the latest version, continue to wait patiently 3. Install dpkg files after updating macports In the terminal input sudo port-f install dpkg This file is used to package. deb files, time is also longer than the above three need to spend a long period, the speed of one or two hours is also possible 4. Install the those tool, refer to http:// Installation methods provided by the Iphonedevwiki.net/index.php/theos/setup
- to open the terminal.
- Select the installation directory for Theos, and the official recommendation is to place the default /opt/theos . Then execute
export theos=/opt/theos
- // If you choose a directory above the user, you need to add the sudo command, sudo export theos=/opt/theos
- download THEOS tool (special thanks for the branch of the enthusiastic friend of the network named the Carefree flute, Since the original Theos is not compatible with the latest version of Iosopendev, so with 15 years old version, the address is as follows (has been approved by the friend))
- Download the Ldid tool to the those bin directory:4.1 execute the./make.sh method before you need to be aware of// The default Ldid folder is not with the OpenSSL folder, but make.sh in the # include <openssl/err.h> and other types of OpenSSL download attachments, unzip, the attachment of the OpenSSL folder in the Ldid folder Then the code in the make.sh default is only match xcode5-1-1 name, if your xcode is not this name, then will be error, so the following method is to modify the Make.ssh file default is the name of Xcode and then open make.sh, find sudo Xcode-select--switch/applications/xcode5-**.app This line, change Xcode5**.app to Xcode.app, and the following line is also to be modified ( Or simply place the make.sh of the attachment in the Ldid folder to replace the file with the same name
git clone git://git.saurik.com/ldid.gitcd ldidgit submodule update--init./ Make.shcp-f./ldid $THEOS/bin/ldid
5. Next install Iosopendev, download the latest 1.6.2 version on the official website, press command+l on the installation screen, view the installation log 5.1 the author only maintained the XCODE5 and the previous version, the later version has a larger change Open the Specifications folder in the attachment above, there should be 8 files, Iphoneos the beginning of the four files placed in the/application/xcode/content/developer/platforms/ Iphoneos.platform/developer/library/xcode/specifications folder (if not, please create one yourself), IPhone Simulator four additional files to put in/application/ Xcode/content/developer/platforms/iphonesimulator.platform/developer/library/xcode/specifications folder (if not, Please also create one). Also create a USR folder under the/Application/xcode/content/developer/platforms/iphonesimulator.platform/developer/folder. The USR folder to create a folder named Bin Author of this program is based on C, and only a simple if else loop, so if you do not create the corresponding folder, it will not be created by itself, only error, The installation error 6 is then displayed, and this article only gives a relative workaround other than the author's error, preferably according to the author's post (Https://github.com/kokoabim/iOSOpenDev/wiki/Troubleshoot), For example, in the terminal execution System_profiler spdevelopertoolsdatatype, copy location: The following information, and then copied to the sudo code-select-switch location: The following information, code execution, Re-install Iosopendev, there is another Xcode Lincese problem, all in the author's post has the answer after installation will not error, currently carried out to this step, if there is progress, and then update the 12.25 the first HelloWorld after the completion of writing , follow http://blog.csdn.net/lynjay/article/details/7936488 this post, from5. Start configuring the IOSOPENDEV environment//post from the source author Lynjay 在终端执行~/.bash_profile,~/.bash_loginOr~/.profileThe 3 files you can find in your computer, I find~/.bash_profileThis file, and then set the following environment variables
export iOSOpenDevPath=/opt/iOSOpenDev
export iOSOpenDevDevice=Non-fixed value, users need to first click on the Jailbroken iphone settings-network-View the current network IP address, fill in
export PATH=/opt/iOSOpenDev:$PATH
export PATH=/opt/local/bin:$PATH
export PATH=/opt/local/sbin:$PATH
Next, add a signature to SSH, enter "Iosod sshkey-h < device ip>" in the terminal of your Mac, and ask if you want to continue, of course yes. If the period fails, try again. I failed several times. may be the device screen off will be off the net (my ipod Touch is always broken, the ipad will not). This way you can log on to the device without a password or SSH. After you can open Xcode select Iosopendev-logos Tweak, create a new app after creating a. xm file with a. mm file, do not edit the. mm file because it doesn't compile properly, don't worry.
The XM file has such a description
#error Iosopendev post-project creation from template requirements (remove these lines after completed)--\
Link to Libsubstrate.dylib: \
(1) Go to TARGETS > Build phases > Link Binary with Libraries and Add/opt/iosopendev/lib/libsubstrate.dylib \
(2) Remove these lines from *.XM files (not *.mm files as they ' re automatically generated from *.XM files)
This means adding libsubstrate.dylib to the project (under the installed/opt/iosopendev/lib directory) and then emptying the contents of XM. The contents of the mm file are automatically generated according to the contents of the XM file.
After emptying the contents of the. xm file, enter the following
[OBJC]View PlainCopy
- #import <UIKit/UIKit.h>
- %hook Springboard
- -(void) applicationdidfinishlaunching: (ID) application{
- %orig;
- Uialertview * alert = [[Uialertview Alloc]initwithtitle:@ ' Welcome ' message:@ ' helloworld! ' delegate: nil cancelbuttontitle:@ "Thanks" otherbuttontitles: nil];
- [Alert Show];
- }
- %end
Open the Cydia on the jailbroken phone, search for the following plugins if the search is not available, open the software source-edit delete Bigbos and modmyi, then go back to the home page, click More software sources, re-add these two can search to the following plug-in core Utilitiescore Utilities (/bin) Diskdev-cmdsfile-cmdssystem-cmdsmobileterminalopensshsshpasstoggle sshpreferencdloadersubstrate safe Modesyslogd To/var/log/syslog again in the Code signing in the target's build settings in Xcode, change to don ' t code sign
Finally open Target-build Settings find iosopendevdevice option, fill in the jailbreak phone's local IP
Click Product-build for-profiling to launch the app
The phone will restart, and then the lock screen will pop up Alertview
Other questions:
1. You may encounter a phenomenon that cannot be compiled after connecting to the real machine, modify the iOS Deployment target in build setting to the corresponding version of your device
Jailbreak development: Use Iosopendev to configure the jailbreak development environment to write the first Hello World-b