Theos 新建Application怎样在SpringBorad显示?

环境:IPhone5 IOS8.3
步骤:1./opt/theos/bin.pl testApp
2.make package install

cydia里头已经显示安装成功了,怎样在SpringBoard里头显示在桌面呢?

ssh上去,切换到root用户,然后输入:
su mobile -c uicache
或者直接把手机重启一遍

能出来了 但是设置ROOT权限出问题了

makefile文件

THEOS_DEVICE_IP = 192.168.1.108
ARCHS = armv7
TARGET = iphone:8.4:7.0
include theos/makefiles/common.mk

APPLICATION_NAME = rootapp
rootapp_FILES = main.m rootappApplication.mm RootViewController.mm
rootapp_FRAMEWORKS = UIKit CoreGraphics
rootapp_LDFLAGS = -lsqlite3

include $(THEOS_MAKE_PATH)/application.mk

after-stage::
$(ECHO_NOTHING)chmod +s $(THEOS_STAGING_DIR)/Applications/rootapp.app/rootapp$(ECHO_END)

main.m文件

    int result = setuid(0);
NSLog(@"setuid result=%d", result);

result = setgid(0);
NSLog(@"setgid result=%d", result);

bash 文件
#!/bin/bash
echo “************come here ************”
root=$(dirname “$0”)
exec “${root}”/rootapp

make package install安装成功后
setuid 和setgid均返回-1,

ssh 到手机上看到几个文件还是mobile权限
drwxr-xr-x 2 root wheel 170 Sep 4 16:46 .
drwxrwxr-x 85 root admin 2924 Sep 4 15:12 …
-rw-r–r-- 1 mobile staff 420 Sep 4 15:44 Info.plist
-rwxr-xr-x 1 mobile staff 97 Sep 4 15:35 bash
-rwsr-sr-x 1 mobile staff 52688 Sep 4 16:38 rootapp

能不能帮看看哪里出问题了 谢谢!