Skip to content

Instantly share code, notes, and snippets.

View TimorYang's full-sized avatar
🎯
Focusing

TimorYang

🎯
Focusing
View GitHub Profile
@TimorYang
TimorYang / iOS 越狱检查.m
Created July 23, 2019 01:25
iOS 越狱检查
.h 文件
#import <Foundation/Foundation.h>
@interface JailbreakDetectTool : NSObject
/**
* 检查当前设备是否已经越狱。
*/
+ (BOOL)detectCurrentDeviceIsJailbroken;
@end
.m 文件
#import "JailbreakDetectTool.h"
#!/usr/bin/expect
spawn ssh-add /Users/admin/.ssh/cbd_rsa
expect "Enter passphrase for /Users/admin/.ssh/cbd_rsa:"
send "123456\n";
expect "Identity added: /Users/admin/.ssh/cbd_rsa (yangzhidong@chebada.com)"
interact
命令行(终端) 挂上代理
`export https_proxy=http://127.0.0.1:你的http端口号`
`export http_proxy=http://127.0.0.1:你的http端口号`
`export all_proxy=socks5://127.0.0.1:你的socks5端口号`
进入项目目录下执行 `xcodebuild -resolvePackageDependencies -scmProvider system`
🎉