@chensh wrote:
根据小黄书(第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
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.0include theos/makefiles/common.mk
APPLICATION_NAME = appDemo
appDemo_FILES = main.m appDemoApplication.mm RootViewController.mm
appDemo_FRAMEWORKS = UIKit CoreGraphicsinclude $(THEOS_MAKE_PATH)/application.mk
after-install::
install.exec "su mobile -c uicache"在论坛搜索了三个相关的问题,但并没有找到解决方法:
书看到第四章节,iOSRETargetApp在iOS9.0.2下闪退是什么原因?
MSHookFunction example doesn’t work
如果你知道原因,还请不吝赐教,谢谢!
Posts: 6
Participants: 2