2012-12-04 3 views
0

링커 오류가 발생하여 문제가 해결되지 않았거나 문제의 원인을 찾지 못했습니다. ParentViewController+CoreData이라는 iOS 프로젝트에 Category을 추가했습니다. .h 또는 .m 파일에서이 범주에 아무 것도 추가하지 않았지만 다른 파일로 가져 오면 35 개의 링커 오류가 발생합니다. ParentViewController은 내 코드에서 카테고리를 만들고 싶은 뷰 컨트롤러입니다. 표준 뷰 컨트롤러에서 카테고리를 만들면 아무런 문제가 없습니다. 과거에는 사용자 정의보기 컨트롤러에서 카테고리를 만들었지 만 여기에서는 문제를 찾을 수 없습니다.카테고리를 추가하고 35 개의 링커 오류가 발생했습니다

다음은 링커 오류가 있습니다 :

Ld /Users/Heather/Library/Developer/Xcode/DerivedData/Lodge-dffwatcyrvyekkdhbejusjleqkjn/Build/Products/Debug-iphonesimulator/Lodge.app/Lodge normal i386 
    cd /Users/Heather/Documents/lodge 
    setenv IPHONEOS_DEPLOYMENT_TARGET 5.1 
    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/iPhoneSimulator6.0.sdk -L/Users/Heather/Library/Developer/Xcode/DerivedData/Lodge-dffwatcyrvyekkdhbejusjleqkjn/Build/Products/Debug-iphonesimulator -L/Users/Heather/Documents/lodge -F/Users/Heather/Library/Developer/Xcode/DerivedData/Lodge-dffwatcyrvyekkdhbejusjleqkjn/Build/Products/Debug-iphonesimulator -filelist /Users/Heather/Library/Developer/Xcode/DerivedData/Lodge-dffwatcyrvyekkdhbejusjleqkjn/Build/Intermediates/Lodge.build/Debug-iphonesimulator/Lodge.build/Objects-normal/i386/Lodge.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.1 -framework CoreData -lz -framework CoreGraphics -framework SystemConfiguration -framework MobileCoreServices -framework CFNetwork -framework QuickLook -framework CoreLocation -framework MessageUI -framework ImageIO -lxml2 -framework CoreText -framework Security -framework QuartzCore -framework UIKit -framework Foundation -lFlurryAnalytics -o /Users/Heather/Library/Developer/Xcode/DerivedData/Lodge-dffwatcyrvyekkdhbejusjleqkjn/Build/Products/Debug-iphonesimulator/Lodge.app/Lodge 

Undefined symbols for architecture i386: 
    "_kGTMHTTPFetcherErrorChallengeKey", referenced from: 
     -[GTMHTTPFetcher connection:didReceiveAuthenticationChallenge:] in GTMHTTPFetcher.o 
    "_kGTMHTTPFetcherErrorDomain", referenced from: 
     -[GTMHTTPFetcher failToBeginFetchWithError:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher backgroundFetchExpired] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher connection:didReceiveAuthenticationChallenge:] in GTMHTTPFetcher.o 
     -[GTMHTTPUploadFetcher uploadNextChunkWithOffset:fetcherProperties:] in GTMHTTPUploadFetcher.o 
     -[GTMHTTPFetcher failToBeginFetchWithError:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher backgroundFetchExpired] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher connection:didReceiveAuthenticationChallenge:] in GTMHTTPFetcher.o 
     -[GTMHTTPUploadFetcher uploadNextChunkWithOffset:fetcherProperties:] in GTMHTTPUploadFetcher.o 
    "_kGTMHTTPFetcherRetryDelayStartedNotification", referenced from: 
     -[GTMHTTPFetcher primeRetryTimerWithNewTimeInterval:] in GTMHTTPFetcher.o 
    "_kGTMHTTPFetcherRetryDelayStoppedNotification", referenced from: 
     -[GTMHTTPFetcher destroyRetryTimer] in GTMHTTPFetcher.o 
    "_kGTMHTTPFetcherStartedNotification", referenced from: 
     -[GTMHTTPFetcher beginFetchMayDelay:mayAuthorize:] in GTMHTTPFetcher.o 
    "_kGTMHTTPFetcherStatusDataKey", referenced from: 
     -[GTMHTTPFetcher connectionDidFinishLoading:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher shouldRetryNowForStatus:error:] in GTMHTTPFetcher.o 
    "_kGTMHTTPFetcherStatusDomain", referenced from: 
     -[GTMHTTPFetcher connection:didReceiveData:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher connectionDidFinishLoading:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher isRetryError:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher shouldRetryNowForStatus:error:] in GTMHTTPFetcher.o 
     -[GTMHTTPUploadFetcher connectionDidFinishLoading:] in GTMHTTPUploadFetcher.o 
     -[GTMHTTPUploadFetcher chunkFetcher:finishedWithData:error:] in GTMHTTPUploadFetcher.o 
     -[GTMHTTPUploadFetcher chunkFetcher:willRetry:forError:] in GTMHTTPUploadFetcher.o 
     ... 
     -[GTMHTTPFetcher connection:didReceiveData:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher connectionDidFinishLoading:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher isRetryError:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher shouldRetryNowForStatus:error:] in GTMHTTPFetcher.o 
     -[GTMHTTPUploadFetcher connectionDidFinishLoading:] in GTMHTTPUploadFetcher.o 
     -[GTMHTTPUploadFetcher chunkFetcher:finishedWithData:error:] in GTMHTTPUploadFetcher.o 
     -[GTMHTTPUploadFetcher chunkFetcher:willRetry:forError:] in GTMHTTPUploadFetcher.o 
     ... 
     -[GTMHTTPFetcher connection:didReceiveData:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher connectionDidFinishLoading:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher isRetryError:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher shouldRetryNowForStatus:error:] in GTMHTTPFetcher.o 
     -[GTMHTTPUploadFetcher connectionDidFinishLoading:] in GTMHTTPUploadFetcher.o 
     -[GTMHTTPUploadFetcher chunkFetcher:finishedWithData:error:] in GTMHTTPUploadFetcher.o 
     -[GTMHTTPUploadFetcher chunkFetcher:willRetry:forError:] in GTMHTTPUploadFetcher.o 
     ... 
     -[GTMHTTPFetcher connection:didReceiveData:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher connectionDidFinishLoading:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher isRetryError:] in GTMHTTPFetcher.o 
     -[GTMHTTPFetcher shouldRetryNowForStatus:error:] in GTMHTTPFetcher.o 
     -[GTMHTTPUploadFetcher connectionDidFinishLoading:] in GTMHTTPUploadFetcher.o 
     -[GTMHTTPUploadFetcher chunkFetcher:finishedWithData:error:] in GTMHTTPUploadFetcher.o 
     -[GTMHTTPUploadFetcher chunkFetcher:willRetry:forError:] in GTMHTTPUploadFetcher.o 
     ... 
    "_kGTMHTTPFetcherStoppedNotification", referenced from: 
     -[GTMHTTPFetcher sendStopNotificationIfNeeded] in GTMHTTPFetcher.o 
    "_kGTMOAuth2AccessTokenRefreshed", referenced from: 
     -[GTMOAuth2Authentication auth:finishedRefreshWithFetcher:error:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2ErrorDomain", referenced from: 
     -[GTMOAuth2Authentication authorizeRequestImmediateArgs:] in GTMOAuth2Authentication.o 
     -[GTMOAuth2SignIn windowWasClosed] in GTMOAuth2SignIn.o 
     -[GTMOAuth2SignIn handleCallbackReached] in GTMOAuth2SignIn.o 
     -[GTMOAuth2Authentication authorizeRequestImmediateArgs:] in GTMOAuth2Authentication.o 
     -[GTMOAuth2SignIn windowWasClosed] in GTMOAuth2SignIn.o 
     -[GTMOAuth2SignIn handleCallbackReached] in GTMOAuth2SignIn.o 
    "_kGTMOAuth2ErrorJSONKey", referenced from: 
     -[GTMOAuth2Authentication tokenFetcher:finishedWithData:error:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2ErrorMessageKey", referenced from: 
     -[GTMOAuth2SignIn handleCallbackReached] in GTMOAuth2SignIn.o 
    "_kGTMOAuth2ErrorRequestKey", referenced from: 
     -[GTMOAuth2Authentication authorizeRequestImmediateArgs:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2FetchStarted", referenced from: 
     -[GTMOAuth2Authentication notifyFetchIsRunning:fetcher:type:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2FetchStopped", referenced from: 
     -[GTMOAuth2Authentication notifyFetchIsRunning:fetcher:type:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2FetchTypeAssertion", referenced from: 
     -[GTMOAuth2Authentication beginTokenFetchWithDelegate:didFinishSelector:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2FetchTypeKey", referenced from: 
     -[GTMOAuth2Authentication notifyFetchIsRunning:fetcher:type:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2FetchTypeRefresh", referenced from: 
     -[GTMOAuth2Authentication beginTokenFetchWithDelegate:didFinishSelector:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2FetchTypeToken", referenced from: 
     -[GTMOAuth2Authentication beginTokenFetchWithDelegate:didFinishSelector:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2FetchTypeUserInfo", referenced from: 
     -[GTMOAuth2SignIn fetchGoogleUserInfo] in GTMOAuth2SignIn.o 
    "_kGTMOAuth2FetcherKey", referenced from: 
     -[GTMOAuth2Authentication notifyFetchIsRunning:fetcher:type:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2KeychainErrorDomain", referenced from: 
     -[GTMOAuth2Keychain passwordForService:account:error:] in GTMOAuth2ViewControllerTouch.o 
     -[GTMOAuth2Keychain removePasswordForService:account:error:] in GTMOAuth2ViewControllerTouch.o 
     -[GTMOAuth2Keychain setPassword:forService:accessibility:account:error:] in GTMOAuth2ViewControllerTouch.o 
    "_kGTMOAuth2NetworkFound", referenced from: 
     -[GTMOAuth2SignIn reachabilityTarget:changedFlags:] in GTMOAuth2SignIn.o 
    "_kGTMOAuth2NetworkLost", referenced from: 
     -[GTMOAuth2SignIn reachabilityTimerFired:] in GTMOAuth2SignIn.o 
    "_kGTMOAuth2RefreshTokenChanged", referenced from: 
     -[GTMOAuth2Authentication setKeysForResponseDictionary:] in GTMOAuth2Authentication.o 
    "_kGTMOAuth2ServiceProviderGoogle", referenced from: 
     +[GTMOAuth2SignIn standardGoogleAuthenticationForScope:clientID:clientSecret:] in GTMOAuth2SignIn.o 
     -[GTMOAuth2SignIn auth:finishedWithFetcher:error:] in GTMOAuth2SignIn.o 
     +[GTMOAuth2SignIn revokeTokenForGoogleAuthentication:] in GTMOAuth2SignIn.o 
     +[GTMOAuth2ViewControllerTouch authForGoogleFromKeychainForName:clientID:clientSecret:] in GTMOAuth2ViewControllerTouch.o 
     +[GTMOAuth2SignIn standardGoogleAuthenticationForScope:clientID:clientSecret:] in GTMOAuth2SignIn.o 
     -[GTMOAuth2SignIn auth:finishedWithFetcher:error:] in GTMOAuth2SignIn.o 
     +[GTMOAuth2SignIn revokeTokenForGoogleAuthentication:] in GTMOAuth2SignIn.o 
     +[GTMOAuth2ViewControllerTouch authForGoogleFromKeychainForName:clientID:clientSecret:] in GTMOAuth2ViewControllerTouch.o 
    "_kGTMOAuth2UserSignedIn", referenced from: 
     -[GTMOAuth2SignIn handleCallbackReached] in GTMOAuth2SignIn.o 
    "_kGTMOAuth2WebViewCancelled", referenced from: 
     -[GTMOAuth2ViewControllerTouch viewWillDisappear:] in GTMOAuth2ViewControllerTouch.o 
    "_kGTMOAuth2WebViewFailed", referenced from: 
     -[GTMOAuth2ViewControllerTouch webView:didFailLoadWithError:] in GTMOAuth2ViewControllerTouch.o 
    "_kGTMOAuth2WebViewFinished", referenced from: 
     -[GTMOAuth2ViewControllerTouch webViewDidFinishLoad:] in GTMOAuth2ViewControllerTouch.o 
    "_kGTMOAuth2WebViewKey", referenced from: 
     -[GTMOAuth2ViewControllerTouch notifyWithName:webView:kind:] in GTMOAuth2ViewControllerTouch.o 
    "_kGTMOAuth2WebViewStartedLoading", referenced from: 
     -[GTMOAuth2ViewControllerTouch notifyWithName:webView:kind:] in GTMOAuth2ViewControllerTouch.o 
     -[GTMOAuth2ViewControllerTouch webViewDidStartLoad:] in GTMOAuth2ViewControllerTouch.o 
    "_kGTMOAuth2WebViewStopKindKey", referenced from: 
     -[GTMOAuth2ViewControllerTouch notifyWithName:webView:kind:] in GTMOAuth2ViewControllerTouch.o 
    "_kGTMOAuth2WebViewStoppedLoading", referenced from: 
     -[GTMOAuth2ViewControllerTouch viewWillDisappear:] in GTMOAuth2ViewControllerTouch.o 
     -[GTMOAuth2ViewControllerTouch webViewDidFinishLoad:] in GTMOAuth2ViewControllerTouch.o 
     -[GTMOAuth2ViewControllerTouch webView:didFailLoadWithError:] in GTMOAuth2ViewControllerTouch.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
+0

.m 및 .h 파일을 공유합니다. –

답변

0

그것은 읽을 수 없습니다되는 파일을 오브젝트 파일에서 분명하다/컴파일러에 의해 얻을. 범주 파일이 응용 프로그램 대상에 추가 된 경우 대상을 확인하십시오.

이런 종류의 문제가 많이 발생했습니다. 문제가 해결되기를 바랍니다.

+0

파일이 응용 프로그램 대상에 추가되고 있습니다. 대상 -> 빌드 단계 -> 소스 컴파일을 선택하고 ParentViewController + CoreData.m이 있습니다. – coder

+0

당신의 프로젝트를 우편으로 보낼 수 있습니까? 하지만 12 시간이 지나면 답장을 할 수 있습니다. 그날 밤 잠을 자야 할 때가 있습니다. :) –

0

이 프로젝트의 목표는 컴파일하지만

+0

카테고리를 추가하려고 시도 할 때까지는 문제가 없었습니다.이 카테고리는 파일을 사용하지 않습니다. 오류? – coder

2

http://code.google.com/p/gtm-oauth2/은 저도 같은 문제를 겪고의 GTM의 OAuth는이 컨트롤러의 소스에 연결되어 있지 않습니다. 내 문제는 Prefix.pch 파일과 관련된 것이 었습니다. 여기서는 끝없는 반복의 루프를 만들었습니다. 대신 Google 드라이브 API를 사용하고 사용 된 특정 파일에서만 가져온 내 데이터 소스를 삭제했습니다. 루키 실수와 알아내는 엉덩이에 통증이 있었지만, 또한 당신은 또한 끝없는 루프가없는 것을 확인하십시오!

+0

방금 ​​저를 구해 줬습니다 :-) 정말 고마워요! –

관련 문제