【4.1.1例子】[76页] iOSRETargetApp运行闪退

根据小黄书(第2版)的第四章,4.1.1的例子,里面使用theos创建一个application,用来介绍MobileHooker。编译可以通过,但是安装后运行会闪退。

syslog的内容是:

Jun 29 17:54:01 ChenSH assertiond[109]: Unable to obtain a task name port right for pid 2347: (os/kern) failure (5)
Jun 29 17:54:01 ChenSH SpringBoard[1616]: Unable to register for exec notifications: No such process
Jun 29 17:54:01 ChenSH SpringBoard[1616]: Unable to obtain a task name port right for pid 2347: (os/kern) failure (5)
Jun 29 17:54:01 ChenSH SpringBoard[1616]: Unable to obtain a task name port right for <FBApplicationProcess: 0x15893cf70; com.yate.appDemo; pid: 2347>
Jun 29 17:54:01 ChenSH SpringBoard[1616]: Application ‘UIKitApplication:com.yate.appDemo[0x2862]’ exited abnormally via signal.
Jun 29 17:54:02 ChenSH SpringBoard[1616]: LICreateIconForImage passed NULL CGImageRef image
Jun 29 17:54:02 ChenSH SpringBoard[1616]: Application ‘(null)’ exited for an unknown reason.

我的Makefile文件内容:

THEOS_DEVICE_IP = my device ip
ARCHS = armv7 arm64
TARGET = iphone:latest:8.0

include theos/makefiles/common.mk

APPLICATION_NAME = appDemo
appDemo_FILES = main.m appDemoApplication.mm RootViewController.mm
appDemo_FRAMEWORKS = UIKit CoreGraphics

include $(THEOS_MAKE_PATH)/application.mk

after-install::
install.exec “su mobile -c uicache”

在论坛搜索了三个相关的问题,但并没有找到解决方法:

书看到第四章节,iOSRETargetApp在iOS9.0.2下闪退是什么原因?

MSHookFunction example doesn’t work

关于iphone/application

如果你知道原因,还请不吝赐教,谢谢!

个人猜测是签名问题?
appsync装了咩

我在Cydia里面安装了一个AppSync,但运行后依旧闪退。

Jun 30 11:04:39 ChenSH assertiond[109]: Unable to obtain a task name port right for pid 3298: (os/kern) failure (5)
Jun 30 11:04:39 ChenSH SpringBoard[3177]: Unable to register for exec notifications: No such process
Jun 30 11:04:39 ChenSH SpringBoard[3177]: Unable to obtain a task name port right for pid 3298: (os/kern) failure (5)
Jun 30 11:04:39 ChenSH SpringBoard[3177]: Unable to obtain a task name port right for <FBApplicationProcess: 0x131f01000; com.yate.targetApp; pid: 3298>
Jun 30 11:04:39 ChenSH SpringBoard[3177]: Application ‘UIKitApplication:com.yate.targetApp[0x3e3b]’ exited abnormally via signal.
Jun 30 11:04:39 ChenSH SpringBoard[3177]: LICreateIconForImage passed NULL CGImageRef image
Jun 30 11:04:39 ChenSH UserEventAgent[117]: Tracking com.yate.targetApp (via activity)
Jun 30 11:04:39 ChenSH SpringBoard[3177]: Application ‘(null)’ exited for an unknown reason.

我的机子型号是 5S
系统是 9.0.2

我不能确定是不是appsync的问题但我非常确定iOS9用的是angelxwind的appsync unified

哈哈,你说的没错,确实是签名的问题。
我更换了一个ldid就可以了。

另外还有就是appsync也是版本太旧了。因为我没有添加其他的源所以没有搜索到最新的。
换了angelxwind 的源确实没有问题了。

非常感谢!!! :grinning: