This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
命令行(终端) 挂上代理 | |
`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` | |
🎉 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ([email protected])" | |
interact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.h 文件 | |
#import <Foundation/Foundation.h> | |
@interface JailbreakDetectTool : NSObject | |
/** | |
* 检查当前设备是否已经越狱。 | |
*/ | |
+ (BOOL)detectCurrentDeviceIsJailbroken; | |
@end | |
.m 文件 | |
#import "JailbreakDetectTool.h" |