2012-04-07 39 views
0

我有一個測試應用程序,從2年前,我現在試圖進入我的當前應用程序,我已經清除了大部分的問題,除了2我已經難倒了(3時)。也許我只是忽略了一些東西,但是我對XCode有些生疏,因爲我從測試應用程序開始就沒有使用它。使用Eclipse開發了過去幾年代碼的最終2錯誤需要解決。 _CGRectIntersectsRect

Error 1: Undefined symbols for architecture i386:
"_CGRectIntersectsRect", referenced from: -[GameViewController gameStatePlayNormal] in GameViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

錯誤2:

Undefined symbols for architecture i386: "_CGRectIntersectsRect", referenced from: -[GameViewController gameStatePlayNormal] in GameViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

回答

0
#import <UIKit/UIKit.h> 

或者更直接:

#import <CoreGraphics/CoreGraphics.h> 
+0

感謝固定的問題。我現在覺得自己像個白癡!忘了添加框架...愚蠢的我,謝謝! – user1319017 2012-04-08 01:35:08

+0

它看起來像你必須做的不僅僅是添加這兩個導入行之一(與他們發生相同的錯誤)。 user1319017關於添加框架的含義是什麼? – 2012-09-17 01:59:05

+0

也許他實際上不得不與框架鏈接,但錯誤將完全相同,我的建議解決了他的問題。 – CodaFi 2012-09-18 02:25:48