注意:我不确定这是不是 正确地问这个问题,但是 我想我可能会变得明显 或“一般”答案......这可能会有所帮助 将来的其他人。所以在这里 去。
我从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
那么,这里发生了什么?我无法理解这一点。而且,我该如何解决它?
答案 0 :(得分:1)
这是一个链接器错误,可能意味着您的项目设置中未定义CrashReporter库路径。
查找名为“图书馆搜索路径”的条目的“搜索路径”部分,看看是否设置不正确,或者根本没有设置。
答案 1 :(得分:0)
的Mustafa!
当我在 框架搜索路径 下添加路径 $(SRCROOT)/ 时,它适用于我很好。
希望它可以帮到你!