【问题标题】:how to fix Problem with FCAlertView In a ios tweak如何在 ios 调整中解决 FCAlertView 的问题
【发布时间】:2020-09-14 05:12:54
【问题描述】:

大家好,我在 Facebook 应用程序中进行了第一次调整以执行简单的任务但我尝试在我的项目中使用 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(单独的猴子)进行调整

【问题讨论】:

    标签: ios jailbreak tweak


    【解决方案1】:

    构建代码时,gcc 找不到 FCAlertView 的定义位置,因为您没有编译它。

    对于 MonkeyDev:
    确保 FCAlertView.m 在您的项目中,并且您已将其添加到正确的目标

    对于神:
    您应该将所有源文件(在这种情况下仅FCAlertView.m)添加到 _FILES 参数内的 Makefile 中。 像这样的:

    YOURTWEAKNAME_FILES = main.m FCAlertView.m
    

    【讨论】:

      猜你喜欢
      • 2021-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-22
      • 2018-10-25
      • 2014-08-01
      • 1970-01-01
      相关资源
      最近更新 更多