Giter Site home page Giter Site logo

jzxyouok / simject Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akemin-dayo/simject

0.0 1.0 0.0 19 KB

simject is a command-line tool and iOS dynamic library that allows developers to easily test their tweaks on the iOS Simulator.

License: BSD 2-Clause "Simplified" License

Makefile 24.46% Objective-C++ 62.46% Logos 7.28% Objective-C 5.80%

simject's Introduction

simject

simject is a command-line tool and iOS dynamic library that allows developers to easily test their tweaks on the iOS Simulator.

simject is BSD-licensed. See LICENSE for more information.

simject setup (requires the latest version of Theos)

  1. git clone https://github.com/angelXwind/simject.git

  2. cd simject/

  3. make setup

  4. Note: During the process, you will be asked by sudo to enter in your login password. Please note that it is normal for nothing to be displayed as you type your password.

simject usage

  1. Place your dynamic libraries and accompanying property lists inside /opt/simject to load them in the iOS Simulator. Do not delete simject.plist or simject.dylib.

  2. Inside the bin subdirectory, you will find the respring_simulator command-line tool. Execute it to cause a booted iOS Simulator to respring and be able to load tweaks.

  3. You will need to run respring_simulator every time the device reboots or if SpringBoard crashes.

  4. Happy developing! (And don't make SpringBoard cry too hard... it has feelings, too! Probably.)

Targeting the iOS Simulator

  1. Open your project's Makefile.

  2. Change your TARGET variable to TARGET = simulator:clang (you may optionally specify the SDK/deployment versions)

  3. If you want to support 32-bit iOS Simulators (in addition to 64-bit), add ARCH = x86_64 i386 to your Makefile. If you are fine without 32-bit support, then simply add ARCH = x86_64.

  4. make your project and copy .theos/obj/iphone_simulator/$YOUR_TWEAK.dylib to /opt/simject/$YOUR_TWEAK.dylib

  5. Also make sure to copy $YOUR_TWEAK.plist to /opt/simject/$YOUR_TWEAK.plist. simject will not load your tweak if you miss this step!

  6. An example tweak project is available in the simjectExampleTweak/ subfolder. Use it as reference if you want.

Final notes

Do keep in mind that just because your tweak works in the Simulator doesn't necessarily mean it'll work on an actual iOS device. Yes, in 99% of cases, it will work just fine, but there will always be some strange edge cases where this does not apply.

Also, special thanks to PoomSmart, who told me about the existence of -[SBApplicationInfo environmentVariables], which is crucial to how simject works.

simject's People

Contributors

akemin-dayo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.