2011-03-07 2 views
0

주를 컴파일하기 없습니다 :이이 질문을 할 수있는 적절한 장소인지 모르겠지만, 은 내가 ... 명백한 또는 "일반"답변을 얻을 수 있다고 생각하는 앞으로 누군가 다른 사람 을 도울 수 있습니다. 그래서, 여기 갑니다.워드 프레스는

here에서 WordPress 소스 코드의 사본을 받았습니다. 내가 여기에이 문제를 해결하기 위해 해결책을 발견

error: CrashReporter/CrashReporter.h: No such file or directory 

: 내가 먼저 컴파일 할 때

, 내가 이러한 오류의 무리를 받았다

http://ios.trac.wordpress.org/ticket/511 

내가 plcrashreported의 최신 복사본을 다운로드, 교체 기존의 것. 그러나 여전히 프로젝트는 컴파일되지 않습니다. 여기에 내가 무엇을 얻을 수 있습니다 :

Build WordPress of project WordPress with configuration Debug 

Ld build/Debug-iphonesimulator/WordPress.app/WordPress normal i386 
cd /Users/imauser/Downloads/trunk 
setenv MACOSX_DEPLOYMENT_TARGET 10.6 
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/iPhoneSimulator4.2.sdk -L/Users/imauser/Downloads/trunk/build/Debug-iphonesimulator -L/Users/imauser/Downloads/trunk/FlurryLib -F/Users/imauser/Downloads/trunk/build/Debug-iphonesimulator -F/Users/imauser/Downloads/trunk/Classes -filelist /Users/imauser/Downloads/trunk/build/WordPress.build/Debug-iphonesimulator/WordPress.build/Objects-normal/i386/WordPress.LinkFileList -mmacosx-version-min=10.6 -weak_library /usr/lib/libSystem.B.dylib -weak_framework UIKit -lxml2 -licucore -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework SystemConfiguration -framework QuartzCore -framework Security -framework MapKit -framework CoreLocation -framework MobileCoreServices -framework CoreData -framework MediaPlayer -framework CFNetwork -lz.1.2.3 -weak_framework AssetsLibrary -framework MessageUI -framework CrashReporter -lFlurry -liconv -o /Users/imauser/Downloads/trunk/build/Debug-iphonesimulator/WordPress.app/WordPress 

ld: warning: duplicate dylib /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/lib/system/libSystem.host.dylib 
Undefined symbols: 
    "_OBJC_CLASS_$_PLCrashReport", referenced from: 
     objc-class-ref-to-PLCrashReport in WordPressAppDelegate.o 
     objc-class-ref-to-PLCrashReport in CrashReportViewController.o 
    "_OBJC_CLASS_$_PLCrashReporter", referenced from: 
     objc-class-ref-to-PLCrashReporter in WordPressAppDelegate.o 
     objc-class-ref-to-PLCrashReporter in CrashReportViewController.o 
ld: symbol(s) not found 
collect2: ld returned 1 exit status 

그래서, 어떻게 된거 야? 나는 이것을 이해할 수 없다. 그리고 어떻게 해결할 수 있습니까?

답변

1

이는 링커 오류입니다. 이는 프로젝트 설정에서 CrashReporter 라이브러리 경로가 정의되지 않았 음을 의미합니다.

"라이브러리 검색 경로"라는 항목에 대해 "검색 경로"섹션을 찾고이 경로가 잘못 설정되었거나 전혀 설정되지 않았는지 확인하십시오.

+1

프로젝트 설정에서 "라이브러리 검색 경로"가 비어 있습니다! 그러나 대상 설정에는 해당되지 않습니다. "라이브러리 검색 경로"에는 루트 디렉토리에있는 "CrashReporter.framework"의 검색 경로가 없습니다. 심지어 "라이브러리 검색 경로"및 "프레임 워크 검색 경로"에서 "$ (SRCROOT) /CrashReporter.framework"경로를 추가하더라도 작동하지 않습니다. 아니면 다른 일을해야합니까? – Mustafa

0

무스타파! 내가 프레임 워크 검색 경로 아래 경로를 $ (SRCROOT)/를 추가 할 때

, 아주 잘 나를 위해 작동합니다.

희망이 당신을 도울 수있다!

관련 문제