如何解决如何通过ios调整中的FCAlertView解决问题
大家好,我在Facebook App中进行了第一次调整以执行简单的任务,但是我试图在项目中使用FCAlertView警报https://github.com/nimati/FCAlertView,我使用此代码在Facebook主页中查看警报
#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
但是有错误
“未定义符号:OBJC_CLASS $ _FCAlertview”
我正在使用xcode(单独的猴子)进行调整
解决方法
在构建代码时,gcc无法找到FCAlertView的定义位置,因为您没有对其进行编译。
对于MonkeyDev:
确保FCAlertView.m位于您的项目中,并将其添加到正确的目标中
对于theos:
您应将所有源文件(在本例中仅为FCAlertView.m
)添加到_FILES参数内的Makefile中。
像这样:
YOURTWEAKNAME_FILES = main.m FCAlertView.m
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。