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


#1

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

这是什么原因呢


#2

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


#3

。。看着像ssh链接有问题


#4

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


#5

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


#6

定位到问题所在了 下面是终端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,请问我这里怎么弄才能编译通过呢


#7

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


#8

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


#9

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


#10

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


#11

cd /var
chmod -R 755 *
试试