2009-11-27 22 views
0

編譯錯誤,我該如何解決上的Xcode

Ld build/Debug-iphonesimulator/iRadio.app/iRadio normal i386 
cd /Users/ragopor/Desktop/iRadio 
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.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk -L/Users/ragopor/Desktop/iRadio/build/Debug-iphonesimulator -F/Users/ragopor/Desktop/iRadio/build/Debug-iphonesimulator -F/Users/ragopor/Desktop/iRadio -filelist /Users/ragopor/Desktop/iRadio/build/iRadio.build/Debug-iphonesimulator/iRadio.build/Objects-normal/i386/iRadio.LinkFileList -mmacosx-version-min=10.5 -framework MediaPlayer -framework Foundation -framework UIKit -framework CoreGraphics -o /Users/ragopor/Desktop/iRadio/build/Debug-iphonesimulator/iRadio.app/iRadio 

ld: warning: in /Users/ragopor/Desktop/iRadio/MediaPlayer.framework/MediaPlayer, missing required architecture i386 in file 
Undefined symbols: 
    ".objc_class_name_MPMoviePlayerController", referenced from: 
     [email protected][email protected][email protected] in iRadioAppDelegate.o 
    "_MPMoviePlayerContentPreloadDidFinishNotification", referenced from: 
     _MPMoviePlayerContentPreloadDidFinishNotification$non_lazy_ptr in iRadioAppDelegate.o 
    "_MPMoviePlayerScalingModeDidChangeNotification", referenced from: 
     _MPMoviePlayerScalingModeDidChangeNotification$non_lazy_ptr in iRadioAppDelegate.o 
    "_MPMoviePlayerPlaybackDidFinishNotification", referenced from: 
     _MPMoviePlayerPlaybackDidFinishNotification$non_lazy_ptr in iRadioAppDelegate.o 
ld: symbol(s) not found 
collect2: ld returned 1 exit status 

回答

5

看起來你需要包括MediaFramework在您的項目。

+0

我已經包含它 – RAGOpoR 2009-11-28 09:59:16

+0

爲什麼從/ Users/ragopor/Desktop/iRadio加載MediaPlayer框架?那是你的問題。 – 2009-11-29 04:56:02

+0

它錯過了嗎? – RAGOpoR 2009-11-30 02:10:30

0

我有同樣的問題,而所有的框架和編譯源被添加。什麼解決我的問題是刪除~/ProjectFolder/MediaPlayer.framework/MediaPlayer.exec文件,然後建立並運行,它的工作!