2012-03-06 90 views
0

剛剛從xcode 4.1更新到4.3,因爲我需要一些功能。但是現在我的一箇舊程序不再工作了。它並不複雜,並不需要和在Xcode 4.1鏈接錯誤4.3 ios

這裏是我的錯誤的其他框架:

Ld "/Users/rickvugts/Library/Developer/Xcode/DerivedData/myappname-gzvclbdfiudwvlbjjxtyfixndpkd/Build/Products/Debug-iphonesimulator/xxxx.app/xxxx" normal i386 
    cd "/Users/xxxx/Documents/Development/Mobile/xxxx/v2" 
    setenv MACOSX_DEPLOYMENT_TARGET 10.6 
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang 
-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk 
-L/Users/xxxx/Library/Developer/Xcode/DerivedData/myappname-gzvclbdfiudwvlbjjxtyfixndpkd/Build/Products/Debug-iphonesimulator 
-F/Users/xxxx/Library/Developer/Xcode/DerivedData/myappname-gzvclbdfiudwvlbjjxtyfixndpkd/Build/Products/Debug-iphonesimulator 
-filelist "/Users/xxx/Library/Developer/Xcode/DerivedData/myappname-gzvclbdfiudwvlbjjxtyfixndpkd/Build/Intermediates/xxx.build/Debug-iphonesimulator/xxxxr.build/Objects-normal/i386/xxxx.LinkFileList" 
-mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/xxxx/Library/Developer/Xcode/DerivedData/myappname-gzvclbdfiudwvlbjjxtyfixndpkd/Build/Products/Debug-iphonesimulator/xxx.app/xxxx" 

Undefined symbols for architecture i386: "_gGeboorteDatum", referenced from: 
     -[myappnameAppDelegate application:didFinishLaunchingWithOptions:] in myappnameAppDelegate.o 
     -[myappnameAppDelegate dealloc] in myappnameAppDelegate.o 
     -[myappnameViewController touchesBegan:withEvent:] in myappnameViewController.o 
     -[myResults viewDidLoad] in myResults.o 
     -[myappnameAppDelegate application:didFinishLaunchingWithOptions:] in myappnameAppDelegate.o 
     -[myappnameAppDelegate dealloc] in myappnameAppDelegate.o 
     -[myappnameViewController touchesBegan:withEvent:] in myappnameViewController.o 
     -[myResults viewDidLoad] in myResults.o 
     -[myappnameAppDelegate application:didFinishLaunchingWithOptions:] in myappnameAppDelegate.o 
     -[myappnameAppDelegate dealloc] in myappnameAppDelegate.o 
     -[myappnameViewController touchesBegan:withEvent:] in myappnameViewController.o 
     -[myResults viewDidLoad] in myResults.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

----- 



"_gGeboorteDatum", referenced from: 

-[myappnameAppDelegate application:didFinishLaunchingWithOptions:] in myappnameAppDelegate.o 

-[myappnameAppDelegate dealloc] in myappnameAppDelegate.o 

-[myappnameViewController touchesBegan:withEvent:] in myappnameViewController.o 

-[myResults viewDidLoad] in myResults.o 

-[myappnameAppDelegate application:didFinishLaunchingWithOptions:] in myappnameAppDelegate.o 

-[myappnameAppDelegate dealloc] in myappnameAppDelegate.o 

-[myappnameViewController touchesBegan:withEvent:] in myappnameViewController.o 

-[myResults viewDidLoad] in myResults.o 

-[myappnameAppDelegate application:didFinishLaunchingWithOptions:] in myappnameAppDelegate.o 

-[myappnameAppDelegate dealloc] in myappnameAppDelegate.o 

-[myappnameViewController touchesBegan:withEvent:] in myappnameViewController.o 

-[myResults viewDidLoad] in myResults.o 

Symbol(s) not found for architecture i386 

Clang: error: linker command failed with exit code 1 (use -v to see invocation) 

哪裏myappname是應用程序和myResults的名稱是第二個屏幕。

我已經將「僅建立活動架構」設置爲「是」,但這並沒有成功。

gGeboortatum是一個全局NSDate變量。我只是將它從NSString更改爲NSDate。

回答

0

當我擁有一個全局NSDate變量時,它似乎出錯了。將其更改爲NSString(然後將其轉換)。這有效,但當然不好。