MBProgressHUD armv7错误 [英] MBProgressHUD armv7 error

查看:257
本文介绍了MBProgressHUD armv7错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用MBProgressHUD。我将标题.m添加到项目中,在类中导入标题并以这种方式从ibaction调用MBProgressHUD:

   - (IBAction )submitForm:(id)sender {
MBProgressHUD * HUD = [[MBProgressHUD alloc] initWithView:self.view];
[self.view addSubview:HUD];
HUD.labelText = @正在连接;
[HUD显示:是];
}

当我构建项目时发生错误:



'pre> 为架构的ARMv7未定义符号:
的_OBJC_CLASS _ $ _ MBProgressHUD,从引用:$在FormViewController.o
objc级-REF b $ b ld:找不到架构armv7的符号
collect2:ld返回1退出状态

我该如何解决?你帮我吗?

解决方案

在你的Xcode项目中,选择 MBProgressHUD.m 文件列表中的文件(沿工作区的左边缘),然后查看该文件的文件检查器。



确保目标会员设置中项目的复选框为 ON




i'm trying to use MBProgressHUD. i added header an .m to project, imported header in class and call MBProgressHUD from an ibaction in this way:

-(IBAction)submitForm:(id)sender{
    MBProgressHUD *HUD = [[MBProgressHUD alloc] initWithView:self.view];
    [self.view addSubview:HUD];
    HUD.labelText = @"Connecting";
    [HUD show:YES];
}

when i build project it happens an error:

Undefined symbols for architecture armv7:
    "_OBJC_CLASS_$_MBProgressHUD", referenced from:
    objc-class-ref in FormViewController.o
    ld: symbol(s) not found for architecture armv7
    collect2: ld returned 1 exit status

How can i fix it? can you help me?

解决方案

In your Xcode project, select your MBProgressHUD.m file in the list of files (along the left edge of the workspace) and look at the File Inspector for that file.

Make sure the checkbox is ON for your project in the "Target Membership" setting.

这篇关于MBProgressHUD armv7错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆