Ios 导入.h会导致重复的符号崩溃

Ios 导入.h会导致重复的符号崩溃,ios,import,Ios,Import,我在iOS应用程序中尝试将字符串从一个类传递到另一个类。我把它设置成这样: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // open a alert with an OK and cancel button Vimeo *vimeo= [[[Vimeo alloc] initWithNibName:@"Vimeo" bundle:[NS

我在iOS应用程序中尝试将字符串从一个类传递到另一个类。我把它设置成这样:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // open a alert with an OK and cancel button
    Vimeo *vimeo= [[[Vimeo alloc] initWithNibName:@"Vimeo" bundle:[NSBundle mainBundle]] autorelease];
    [self.navigationController pushViewController:vimeo animated:YES];
    UITableViewCell *selectedCell = [tableView cellForRowAtIndexPath:indexPath];
    vimeo.feedAddress = selectedCell.textLabel.text;


}
如果我不这样做

#import "Vimeo.h"
在这个类的实现中,我得到一个错误,它在Vimeo中找不到feedAddress属性。如果我导入它,错误就会消失,但在运行时,我会得到重复符号错误


发生了什么?

确保项目中没有两个名为Vimeo.h的文件,或者没有两个Vimeo类声明

查找意外导入.m文件的位置。更新问题,了解有关重复符号链接错误的详细信息。并发布有问题的.h文件。很可能您错误地声明了全局变量。