Article 1: Build and use the iosopendev Environment

Source: Internet
Author: User

Because THEOS development interface is not very good, you still need to manage the MAKEFILE file by yourself. Here we will talk about iosopendev environment, which creates templates and compilation packages based on xcode. I believe that friends who are not familiar with makefile are more inclined to use this. The following describes the installation steps.

1. Installation

Install iosopendev

Http://www.jailbreaktweak.com/develop-jailbreak-tweaks-tool/41/

Iosopendev installation failure Solution

Https://github.com/kokoabim/iOSOpenDev/wiki/Troubleshoot

Specify xcode path

Http://icyleaf.com/2012/03/upgrade-xcode-431/

 

The above are the installation steps and solutions to possible problems during the installation process.

 

2. Create a simple helloworld plug-in

After installation, you will see the various templates as shown in Figure

Here is an example of a logos tweak Project template. Create such a project.

There is an XM file in the created Project. This file is the same as the XM file in THEOS. The content of the XM file in the demo can be copied directly,You may need to comment out several header files before compilation.

 

 

The XM file contains the following 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)

 

It means to add libsubstrate. dylib to the project (under the installed/opt/iosopendev/lib directory), and then clear the content in XM. The content of the MM file is automatically generated after compilation based on the content in the XM file.

 

Next, add libsubstrate. dylib to your project, and then add the uikit framework. Then let's write the helloworld, before the hook usage methodArticleHas been introduced, here is not much to explain, directly onCode

Add the following code to the XM file.

You should be familiar with this code. This is also an example in THEOS.

 

3. Compile and Package

Compile the code after it is written, as shown in figure

Product-> bulid for-> profiling

Remember to select your device during compilation. Remember to clean the device before each compilation. After compilation, you will see an error.

Command/bin/sh failed with exit code 1

This means that the Deb package has not been successfully generated on the device.

There is a deb package under the packages in your project directory.

 

You can use dpkg to package a deb. Find a folder with the same name as the project in your project directory, and there is a package below. This folder is believed to be familiar to the friends who have read the previous articles. You can use dpkg to package. The packaging method is not described here.

Here, we have put our product friendin online. It is a software that keeps an eye on the latest developments of friends on major social platforms. I hope you can help me to leave a message, thank you.

Iv. Installation

We will not describe how to install the Deb package to the device.

If you have any questions, please leave a message. Recently, my personal work may fail to respond in such a timely manner. Please forgive me.

 

Reprinted from:

IOS Little Bear http://www.cnblogs.com/xiongwj0910/archive/2012/09/03/2668362.html

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.