如何在ios调整中修复FCAlertView的问题
大家好,我在Facebook应用程序中进行了第一次调整,以完成一个简单的任务,但我试图在我的项目中使用FCAlertView alert我使用此代码在Facebook主页中查看此警报如何在ios调整中修复FCAlertView的问题,ios,jailbreak,tweak,Ios,Jailbreak,Tweak,大家好,我在Facebook应用程序中进行了第一次调整,以完成一个简单的任务,但我试图在我的项目中使用FCAlertView alert我使用此代码在Facebook主页中查看此警报 #import <UIKit/UIKit.h> #import <CoreGraphics/CoreGraphics.h> #import "FCAlertView.h" #import <MessageUI/MessageUI.h> %config(ge
#import <UIKit/UIKit.h>
#import <CoreGraphics/CoreGraphics.h>
#import "FCAlertView.h"
#import <MessageUI/MessageUI.h>
%config(generator=internal)
%hook FBBaseAppDelegate
- (void)applicationDidBecomeActive:(id)arg1 {
%orig;
FCAlertView *alert = [[FCAlertView alloc] init];
[alert showAlertWithTitle:@“Test Alert"
withSubtitle:@"This is alert's subtitle."
withCustomImage:nil
withDoneButtonT itle:nil
andButtons:nil];
}
%end
#导入
#进口
#导入“FCAlertView.h”
#进口
%配置(生成器=内部)
%钩子FBBaseAppDelegate
-(void)applicationIDBecomeActive:(id)arg1{
%奥利格;
FCAlertView*警报=[[FCAlertView alloc]init];
[警报显示警报标题:@“测试警报”
副标题:@“这是警报的副标题。”
withCustomImage:nil
Withdonebuttonitle:无
和按钮:无];
}
%结束
但是有一个错误
“未定义的符号:OBJC_类$\u FCAlertview”
在构建代码时,我使用xcode(单独使用monkey)进行调整,gcc无法找到定义FCAlertView的位置,因为您没有编译它 对于MonkeyDev:
确保FCAlertView.m位于项目中,并且已将其添加到正确的目标中 对于西奥斯:
您应该将所有源文件(在本例中仅为
FCAlertView.m
)添加到_files参数内的Makefile中。
大概是这样的:
YOURTWEAKNAME_FILES = main.m FCAlertView.m