Code Monkey home page Code Monkey logo

renginerdev's Introduction

#引言 Cycript是一个可以调试App的一个工具 支持的语言

##配置环境

###一 下载SDK 解压到本地 首先需要安装Cycript, 点击Cycript官网下载最新的SDK包。 Cycript SDK 下载到本地 直接解压到本地,放到自己指定的目录,我在这里放到了 /opt 下面

###二 配置Cycript的链接 呼出 Cycript环境

  • 解压完成,我们可以cd到本地目录,调用cycript命令
  • 需要配置其环境变量调用cycript命令 正确操作 呼出环境 错误提示 报错~/bash_profile添加环境变量
  export CYPATHDIR=/opt/cycript
  PATH = CYPATHDIR:原有内容

至此完成

####遇到问题 ruby版本过高 ruby版本过高,需要下载旧版本的ruby,因为cycript中的配置的ruby是2.0中的文件,需要修改的内容比较繁琐,以及不确定性,直接🔗一个当前版本的librubyXX.dylib,🔗之前需要创建cycript中用到的目录文件

sudo mkdir -p 
#创建目标目录
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/
#🔗源文件
sudo ln -s /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/libruby.2.3.0.dylib /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/libruby.2.0.0.dylib

需要一键配置的请注意 关闭SIP 当你在系统文件、文件夹下,创建新的文件添加新的文件夹时,有的时候会提示安全原因无法修改系统文件 SO

电脑重启按住command+R,进入恢复模式
打开终端,输入csrutil disable,重启
想再次打开csrutil enable
微软不高兴了就打着安全的晃子搞了个SB,苹果不高兴了就打着安全的晃子搞了这个SIP,真会玩。

renginerdev's People

Contributors

struggle3g avatar gangganggao avatar

Stargazers

 avatar weed avatar

Watchers

 avatar

Forkers

joshuachenn

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.