2012-01-01 3 views
-1

私は私のアプリでEGOPhotoViewerを実装しようが、私は実行しようとすると、私はこのエラーを取得:私のアプリでEGOPhotoViewerを実装するにはどうすればいいですか?

Ld /Users/alex/Library/Developer/Xcode/DerivedData/EGO-gyjpowmnxxhzmdfmwxqkazhvsjbj/Build/Products/Debug-iphonesimulator/EGO.app/EGO normal i386 
    cd /Developer/iPhone_apps/EGO 
    setenv MACOSX_DEPLOYMENT_TARGET 10.6 
    setenv PATH "/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Volumes/Xcode/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    /Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/alex/Library/Developer/Xcode/DerivedData/EGO-gyjpowmnxxhzmdfmwxqkazhvsjbj/Build/Products/Debug-iphonesimulator -F/Users/alex/Library/Developer/Xcode/DerivedData/EGO-gyjpowmnxxhzmdfmwxqkazhvsjbj/Build/Products/Debug-iphonesimulator -filelist /Users/alex/Library/Developer/Xcode/DerivedData/EGO-gyjpowmnxxhzmdfmwxqkazhvsjbj/Build/Intermediates/EGO.build/Debug-iphonesimulator/EGO.build/Objects-normal/i386/EGO.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework QuartzCore -framework MessageUI -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/alex/Library/Developer/Xcode/DerivedData/EGO-gyjpowmnxxhzmdfmwxqkazhvsjbj/Build/Products/Debug-iphonesimulator/EGO.app/EGO 

Undefined symbols for architecture i386: 
    "_OBJC_CLASS_$_MyPhoto", referenced from: 
     objc-class-ref in ViewController.o 
    "_OBJC_CLASS_$_MyPhotoSource", referenced from: 
     objc-class-ref in ViewController.o 
    "_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) 

私はコードのこれらの行を記述すると、このエラーがcames:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
{ 
    if (indexPath.row == 0) { 

     MyPhoto *photo = [[MyPhoto alloc] initWithImageURL:[NSURL URLWithString:@"http://a3.twimg.com/profile_images/66601193/cactus.jpg"] name:@" laksd;lkas;dlkaslkd ;a"]; 
     MyPhoto *photo2 = [[MyPhoto alloc] initWithImageURL:[NSURL URLWithString:@"https://s3.amazonaws.com/twitter_production/profile_images/425948730/DF-Star-Logo.png"] name:@"lskdjf lksjdhfk jsdfh ksjdhf sjdhf ksjdhf ksdjfh ksdjh skdjfh skdfjh "]; 
     MyPhotoSource *source = [[MyPhotoSource alloc] initWithPhotos:[NSArray arrayWithObjects:photo, photo2, nil]]; 

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


    } else if (indexPath.row == 1) { 

     MyPhoto *photo2 = [[MyPhoto alloc] initWithImageURL:[NSURL URLWithString:@"https://s3.amazonaws.com/twitter_production/profile_images/425948730/DF-Star-Logo.png"] name:@"lskdjf lksjdhfk jsdfh ksjdhf sjdhf ksjdhf ksdjfh ksdjh skdjfh skdfjh "]; 
     MyPhotoSource *source = [[MyPhotoSource alloc] initWithPhotos:[NSArray arrayWithObjects:photo2, nil]]; 

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

    } 
} 

どのようにすることができます私はそれを解決する?

+0

私はすでにあなたの前の質問に答えました。同じことを二度尋ねないでください。特に私が答えた後に。 – CodaFi

答えて

0

EGOPhotoViewerの内容はわかりませんが、リンクしていないためリンクするとEGOPhotoViewControllerクラスが見つからないためリンカ(ld)が失敗します。

0

MessageUI.framework QuartzCore.framework

  • あなたが必要なフレームワーク

    Your project > Your target > Summary > Linked Frameworks and Libraries

    • CoreGraphics.framework
    • を追加したことを確認してください
  • 関連する問題