【发布时间】:2009-02-28 11:51:15
【问题描述】:
在全新安装 Xcode 3.1.2 时,我正在尝试使用 iPhone MoviePlayer,如 http://developer.apple.com/iphone/library/codinghowtos/AudioAndVideo/index.html#INITIATE_VIDEO_PLAYBACK_IN_MY_CODE 的示例代码所示
但是,当我尝试 build-n-go 时,Xcode 会报告以下链接器错误:
使用配置“Debug”构建项目“EOY”的目标“EOY”——(2 个错误) cd /Users/ed/dev/EOY setenv MACOSX_DEPLOYMENT_TARGET 10.5 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk -L/Users/ed/dev/ EOY/build/Debug-iphonesimulator -F/Users/ed/dev/EOY/build/Debug-iphonesimulator -filelist /Users/ed/dev/EOY/build/EOY.build/Debug-iphonesimulator/EOY.build/Objects- normal/i386/EOY.LinkFileList -mmacosx-version-min=10.5 -framework Foundation -framework UIKit -framework CoreGraphics -o /Users/ed/dev/EOY/build/Debug-iphonesimulator/EOY.app/EOY 未定义的符号: “.objc_class_name_MPMoviePlayerController”,引用自: MediaSupport.o 中的文字指针@__OBJC@__cls_refs@MPMoviePlayerController “_MPMoviePlayerPlaybackDidFinishNotification”,引用自: MediaSupport.o 中的 _MPMoviePlayerPlaybackDidFinishNotification$non_lazy_ptr ld:未找到符号 collect2: ld 返回 1 个退出状态 “.objc_class_name_MPMoviePlayerController”,引用自: MediaSupport.o 中的文字指针@__OBJC@__cls_refs@MPMoviePlayerController “_MPMoviePlayerPlaybackDidFinishNotification”,引用自: MediaSupport.o 中的 _MPMoviePlayerPlaybackDidFinishNotification$non_lazy_ptr ld:未找到符号 collect2: ld 返回 1 个退出状态 构建失败(2 个错误)【问题讨论】: