Iphone 实现EGOPhotoViewer时出错

Iphone 实现EGOPhotoViewer时出错,iphone,ios,Iphone,Ios,我有这样的错误 Undefined symbols for architecture i386: "_OBJC_CLASS_$_EGOPhotoViewController", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (u

我有这样的错误

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_EGOPhotoViewController", referenced from:
      objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

"_OBJC_CLASS_$_EGOPhotoViewController", referenced from:
Objc-class-ref in ViewController.o
Symbol(s) not found for architecture i386
Linker command failed with exit code 1 (use -v to see invocation)
我已经创建了一个ViewController,并在该控制器中创建了一个按钮 代码是

- (IBAction)galleryBtnTapped:(id)sender {
    MyPhoto *photo = [[MyPhoto alloc] initWithImageURL:[NSURL URLWithString:@"http://a3.twimg.com/profile_images/66601193/cactus.jpg"] name:@" First Photo"];
    MyPhoto *photo2 = [[MyPhoto alloc] initWithImageURL:[NSURL URLWithString:@"https://s3.amazonaws.com/twitter_production/profile_images/425948730/DF-Star-Logo.png"] name:@"Second Photo"];
    MyPhotoSource *source = [[MyPhotoSource alloc] initWithPhotos:[NSArray arrayWithObjects:photo, photo2, photo, photo2, photo, photo2, photo, photo2, nil]];

    EGOPhotoViewController *photoController = [[EGOPhotoViewController alloc] initWithPhotoSource:source];
    [self.navigationController pushViewController:photoController animated:YES];

    //[photoController release];
    //[photo release];
    //[photo2 release];
    //[source release];
}

或者与github中的相同,看起来您没有使用正确的二进制文件进行链接。要将二进制文件包含到项目中,您必须单击项目文件,以便它显示您的目标。从那里,转到“构建阶段”选项卡,并在“将二进制文件链接到库”下,确保您的EGOPhotoViewer库在那里

下面是它的屏幕截图:

请在位于以下路径的编译源代码>EGoPhotoViewer.m中设置-fno objc arc标志


点击您的项目>目标项目(不要选择项目测试)>编译源代码>EGoPhotoViewer.m

请阅读我的更新答案并设置-fno objc arc flag我使用了“将文件添加到“SlidingGallery”选项,但我使用的是arc,所以它显示了太多错误。如果我使用构建阶段的选项,链接库它给我的错误,我在我的问题中提到