2012-03-06 4 views
0

일부 기능이 필요했기 때문에 xcode 4.1에서 4.3으로 업데이트되었습니다. 하지만 이제는 내 오래된 프로그램 중 하나가 더 이상 작동하지 않습니다. 그것은 복잡하지 않고 필요로링크 오류 4.3 ios

여기 내 오류 엑스 코드 4.1에서 추가 프레임 워크하지 않았다 :

myappname는 응용 프로그램 및 myResults의 이름입니다
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) 

두 번째 화면입니다가.

이미 "build active architecture only"를 yes로 설정했지만 트릭을하지 않았습니다.

gGeboortedatum은 전역 NSDate 변수입니다. 방금 NSString에서 NSDate로 변경했습니다.

답변

0

전역 NSDate 변수를 habve 할 때 잘못된 것처럼 보입니다. 그것을 NSString (그리고 그것을 변환) 변경되었습니다. 이것은 효과가 있지만 물론 좋지 않습니다.