iOS 版 WordPress 未编译

发布于 2024-10-20 21:08:17 字数 2643 浏览 3 评论 0原文

注意:我不确定这是否是 问这个问题的地方是对的,但是 我想我可能会得到一个明显的 或“一般”答案......这可能有帮助 未来的另一个人。所以,在这里 去吧。

我从此处获取了 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

那么,这是怎么回事?我无法理解这一点。而且,我该如何解决它?

Note: I'm not sure if this is the
right place to ask this question, but
i figured that i might get an obvious
or "general" answer... which may help
someone else in the future. So, here
goes.

I got the copy of WordPress source-code from here.

When i first compiled it, i received bunch of these errors:

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

I found the solution to fix this here:

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

I downloaded the latest copy of plcrashreported, and replaced the existing one. But still, the project is not getting compiled. Here's what i get:

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

So, what's going on here? I can't make sense of this. And, how can i fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不喜欢何必死缠烂打 2024-10-27 21:08:18

这是一个链接器错误,可能意味着您的项目设置中未定义 CrashReporter 库路径。

查找“搜索路径”部分中名为“库搜索路径”的条目,看看它是否设置不正确,或者根本没有设置。

That's a linker error that probably means that the CrashReporter library path isn't defined in you project settings.

Look for the "Search Paths" section for the entry called "Library Search Paths" and see if this is either set incorrectly, or not set at all.

梦在夏天 2024-10-27 21:08:18

穆斯塔法!

当我在框架搜索路径下添加路径$(SRCROOT)/时,它对我来说非常有效。

希望它可以帮助你!

Mustafa!

When I do add the path $(SRCROOT)/ under Framework Search Path, it work for me very well.

Hope it can help you!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文