Xcode写了一个tweak工程编译失败 Iosopendev profiling 问题

firstTweakProject.xm中代码 就是简单的hook SpringBoard
%hook SpringBoard
-(void)applicationDidFinishLaunching:(id)application {
%orig;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“Hello, Gof!” message:@“LeeGof is very handsome” delegate:self cancelButtonTitle:@“OK” otherButtonTitles:nil];
[alert show];
NSLog(@"");
}
%end

iosopendevDevice中也配置了id
sign都设置为空
但是 command shift I报错
Preparing to run Xcode Build Phase…
Signing /Users/joe/Library/Developer/Xcode/DerivedData/firstTweakProject-flrapqvsavplycaxjfpzoasldbzj/Build/Products/Release-iphoneos/firstTweakProject.dylib with ldid… Done.
Copying /Users/joe/Library/Developer/Xcode/DerivedData/firstTweakProject-flrapqvsavplycaxjfpzoasldbzj/Build/Products/Release-iphoneos/firstTweakProject.dylib to package directory at /Users/joe/Desktop/逆向Theos/firstTweakProject/firstTweakProject/Package/Library/MobileSubstrate/DynamicLibraries…
Preparing to build package…
Setting control file /Users/joe/Desktop/逆向Theos/firstTweakProject/firstTweakProject/Package/DEBIAN/control Version field to 1.0-1 using /Users/joe/Desktop/逆向Theos/firstTweakProject/firstTweakProject/PackageVersion.plist… Done.
Building package … Done.
Creating zip /Users/joe/Desktop/逆向Theos/firstTweakProject/Packages/com.kainuo.firstTweakProject_1.0-1_iphoneos-arm.zip… Done.
ssh: connect to host 10.0.0.7 port 2222: Connection refused
Failed to create directory /var/root/iOSOpenDevPackages on device 10.0.0.7
Command /bin/sh failed with exit code 255

这是什么原因呢

我都是手动复制到设备上安装的。感觉ssh key啥的配的有问题?没折腾过傻瓜安装

。。看着像ssh链接有问题

ssh连接应该没问题 用的pp助手连接的 ,cycript可以改界面

JoeMac:~ joe$ ssh root@10.0.0.7
root@10.0.0.7’s password:
Kainuo-kwj:~ root#

定位到问题所在了 下面是终端ssh
JoeMac:~ joe$ ssh root@10.0.0.99
root@10.0.0.99’s password:
iphone:~ root# exit
logout
Connection to 10.0.0.99 closed.
JoeMac:~ joe$ ssh root@10.0.0.99 -p 2223
ssh: connect to host 10.0.0.99 port 2223: Connection refused
JoeMac:~ joe$

用pp助手打开的ssh通道 分配的端口是2223,请问我这里怎么弄才能编译通过呢

不加2223 就能连上,加了2223就连不上,而xcode的端口设置在哪里我也不知道

应该可以这样做
编译后,会在工程目录下多出Packages文件,直接将里面的deb拷贝到ios 然后
dpkg -i xxxxx.deb
问题 scp到ios哪个目录比较合适呢
/mnt 是挂载目录,存这里吧

。。。。自己回复自己。。。。我都看花眼了

我用pp助手打开了ssh通道,可是连接的时候报错ssh_exchange_identification: read: Connection reset by peer 是怎么回事啊??

cd /var
chmod -R 755 *
试试

执行这个命令后,手机中的应用都不能正常使用了
重启动手机,显示“无法激活iPhone” :fearful:

。。。。。。。。。。。。你为什么会想这么干

本人小白,看到有方法就试试
他这个不是故意来坑人的吧!!!:cold_face:
大神,手机这个情况有方法恢复没,iOS10.3.3IMG_2261

你把整个手机所有文件的权限都乱改了一遍,天知道哪里出错了

通过iTuns刷到最新的系统,把手机救活了
得去重新找台越狱手机,下次再也不手痒了
:sweat_smile: