大家帮忙看下 tweet make error architecture not supported


#1

make的时候有好些个
#error architecture not supported
fatal error:
‘libkern/machine/OSByteOrder.h’ file not found
也看了论坛里相关帖子 都和我的不太一样

这个是Tweak.xm代码

#import "MailRelate.h"
#import "PLWihteListViewController.h"
%hook MailboxPickerController
- (void)viewDidLoad {
    UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithTitle:@"SettingWL" style:UIBarButtonItemStylePlain target:self action:@selector(settingWhiteList:)];
   self.navigationItem.leftBarButtonItem = item;
   %orig;
}

%new
- (void)settingWhiteList
{
	PLWihteListViewController *vc = [PLWihteListViewController new];
    [self.navigationController pushViewController:vc animated:YES];
}
%end

下面是makefile

THEOS_DEVICE_IP = 192.168.1.113
ARCHS = armv7 arm64
TARGET = iphone:latest:8.0

include theos/makefiles/common.mk

TWEAK_NAME = iosremailbox
iosremailbox_FILES =  PLWihteListViewController.m  PLMailInfo.m Tweak.xm
iosremailbox_FRAMEWORKS = UIKit CoreGraphics
include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
	install.exec "killall -9 MobileMail"

Tweak.xm 开发怎么引用self.navigationController
#2

你把标题改具体一点我就帮你看下


#3

不用管。我这也有,我改用python编译眼不见心不烦 :joy:
EDIT: 据说用rpe的fork没问题,我喜欢原版所以懒得折腾


#4

哥,改好了。指导我吧


#5

根本不用鸟它。没关系,无视就行


#6

无视不行啊,tweak运行了。可是根本没有注入成功


#7

。看看substrate日志或者直接加群来问吧


#8

什么群 群号发我下


#9

7乘107乘335719


#10

表示理解不了


#11

算乘法。数字即号。明文发出来我怕被bot追上


#12

请问下 我在我的Tweak.xm 调用不到self.navigationController编译安装会报错 能告诉我怎么在Tweak.xm 中调用 self.navigationController