0

我能够成功地为 ios 模拟器编译和运行 PLCrashReporter 框架。在此链接的帮助下

XCode 4 中的 PLCrashReporter - 无法在模拟器中编译

但是,当我将 libCrashReporter-iphonesimulator.a 替换为 libCrashReporter-iphoneos.a 以在 device.all 上进行测试时,应用程序在

 PLCrashReporter *crashReporter = [PLCrashReporter sharedReporter];

线。

任何建议

4

1 回答 1

2

You shouldn't not have to replace the static library, but use a combined library for the simulator and device using lipo. The Xcode project being part of PLCrashReporter does that all for you. On the other hand, you could use the prebuilt version available on the PLCrashReporter website or QuincyKit which includes a prebuilt library with an additional wrapper around PLCrashReporter to safely handle the reports and submit them to you into a database (included) or HockeyApp service.

于 2011-12-27T22:34:10.677 回答