Permalink
Browse files

pushing additional changes to PLCrashReporter framework

  • Loading branch information...
mtjhax committed May 19, 2015
1 parent cba5943 commit f4b8d1aaab0b8f58eccc215f17481d121955eca0
Showing with 1,215 additions and 6,654 deletions.
  1. +8 −0 CHANGELOG.TXT
  2. +1 −1 iOS/Examples/CrashSample/CrashSample/AppBlade/AppBlade.h
  3. +15 −19 iOS/Framework/AppBlade.xcodeproj/project.pbxproj
  4. +10 −1 iOS/Framework/AppBlade.xcodeproj/xcshareddata/xcschemes/AppBlade.xcscheme
  5. +10 −1 iOS/Framework/AppBlade.xcodeproj/xcshareddata/xcschemes/AppBladeUniversal.xcscheme
  6. +10 −1 iOS/Framework/AppBlade.xcodeproj/xcshareddata/xcschemes/AppBlade_Staging.xcscheme
  7. +1 −1 iOS/Framework/AppBlade/AppBlade.h
  8. +12 −11 iOS/Framework/AppBlade/AppBlade.m
  9. +141 −139 iOS/Framework/AppBlade/CrashReporter/CrashReporter.xcodeproj/project.pbxproj
  10. +0 −7 ...ework/AppBlade/CrashReporter/CrashReporter.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  11. +0 −41 ...e/CrashReporter/CrashReporter.xcodeproj/project.xcworkspace/xcshareddata/CrashReporter.xccheckout
  12. +1 −1 iOS/Framework/AppBlade/CrashReporter/LICENSE
  13. +1 −1 iOS/Framework/AppBlade/CrashReporter/Resources/DemoCrash-Info.plist
  14. +1 −1 iOS/Framework/AppBlade/CrashReporter/Resources/Tests-MacOSX-Info.plist
  15. +2 −2 iOS/Framework/AppBlade/CrashReporter/Resources/Tests-iPhone-Info.plist
  16. +15 −3 iOS/Framework/AppBlade/CrashReporter/Resources/crash_report.pb-c.c
  17. +2 −1 iOS/Framework/AppBlade/CrashReporter/Resources/crash_report.pb-c.h
  18. +3 −0 iOS/Framework/AppBlade/CrashReporter/Resources/crash_report.proto
  19. +31 −3 iOS/Framework/AppBlade/CrashReporter/Source/Crash Demo/main.m
  20. +5 −5 iOS/Framework/AppBlade/CrashReporter/Source/Libunwind Regression Tests/unwind_test_arm.S
  21. +1 −0 iOS/Framework/AppBlade/CrashReporter/Source/Libunwind Regression Tests/unwind_test_arm64.S
  22. +5 −0 iOS/Framework/AppBlade/CrashReporter/Source/Libunwind Regression Tests/unwind_test_arm64_frame.S
  23. +7 −3 iOS/Framework/AppBlade/CrashReporter/Source/Libunwind Regression Tests/unwind_test_arm64_frameless.S
  24. +4 −3 iOS/Framework/AppBlade/CrashReporter/Source/Libunwind Regression Tests/unwind_test_harness.c
  25. +2 −0 iOS/Framework/AppBlade/CrashReporter/Source/Libunwind Regression Tests/unwind_test_harness.h
  26. +8 −36 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsync.c
  27. +0 −2 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsync.h
  28. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncAllocatorTests.m
  29. +1 −7 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncCompactUnwindEncoding.c
  30. +4 −4 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncDwarfCFAState.cpp
  31. +11 −11 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncDwarfCFAStateEvaluation.cpp
  32. +12 −12 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncDwarfCIE.cpp
  33. +0 −3 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncDwarfEncoding.hpp
  34. +18 −14 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncDwarfExpression.cpp
  35. +8 −8 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncDwarfExpressionTests.mm
  36. +11 −12 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncDwarfFDE.cpp
  37. +4 −4 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncDwarfPrimitives.cpp
  38. +4 −4 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncImageList.h
  39. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncImageListTests.m
  40. +4 −4 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncLinkedList.hpp
  41. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncLinkedListTests.mm
  42. +8 −8 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncMObject.c
  43. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncMObjectTests.m
  44. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncMachExceptionInfo.c
  45. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncMachExceptionInfoTests.m
  46. +2 −6 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncMachOImage.c
  47. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncMachOImage.h
  48. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncMachOImageTests.m
  49. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncMachOStringTests.m
  50. +2 −2 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncObjCSection.cpp
  51. +2 −6 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncObjCSectionTests.m
  52. +2 −2 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncSignalInfo.c
  53. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncSignalInfoTests.m
  54. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncSymbolication.c
  55. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncSymbolication.h
  56. +3 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncSymbolicationTests.m
  57. +1 −14 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncTests.m
  58. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncThread.c
  59. +6 −6 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncThread.h
  60. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncThreadTests.m
  61. +5 −5 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncThread_arm.c
  62. +5 −5 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncThread_current.S
  63. +6 −0 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncThread_current_defs.h
  64. +5 −5 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashAsyncThread_x86.c
  65. +21 −19 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashCompatConstants.h
  66. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashFrameCompactUnwindTests.m
  67. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashFrameDWARFUnwindTests.m
  68. +4 −6 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashFrameStackUnwind.c
  69. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashFrameStackUnwindTests.m
  70. +2 −44 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashFrameWalker.c
  71. +10 −10 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashFrameWalker.h
  72. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashFrameWalkerTests.m
  73. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashHostInfoTests.m
  74. +4 −0 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashLogWriter.h
  75. +36 −17 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashLogWriter.m
  76. +4 −88 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashLogWriterEncoding.c
  77. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashLogWriterEncoding.h
  78. +2 −2 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashLogWriterEncodingTests.m
  79. +28 −26 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashLogWriterTests.m
  80. +2 −2 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashMachExceptionPortSet.m
  81. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashMachExceptionPortSetTests.m
  82. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashMachExceptionPortTests.m
  83. +19 −6 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashMachExceptionServerTests.m
  84. +44 −0 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashMacros.h
  85. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashProcessInfo.h
  86. +26 −3 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashProcessInfo.m
  87. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashProcessInfoTests.m
  88. +91 −11 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReport.m
  89. +10 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReportApplicationInfo.h
  90. +4 −0 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReportApplicationInfo.m
  91. +2 −2 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReportProcessInfo.h
  92. +23 −5 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReportSystemInfo.h
  93. +30 −0 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReportSystemInfo.m
  94. +9 −5 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReportTests.m
  95. +29 −10 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReportTextFormatter.m
  96. +7 −3 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReporter.h
  97. +16 −10 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReporter.m
  98. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReporterNSErrorTests.m
  99. +11 −6 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashReporterTests.m
  100. +16 −19 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashSignalHandler.mm
  101. +24 −4 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashSignalHandlerTests.m
  102. +119 −0 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashSysctl.c
  103. +3 −0 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashSysctl.h
  104. +169 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashSysctlTests.m
  105. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashTestCase.h
  106. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashTestThreadTests.m
  107. +1 −1 iOS/Framework/AppBlade/CrashReporter/Source/PLCrashUncaughtExceptionHandlerTests.m
  108. +2 −2 iOS/Framework/AppBlade/CrashReporter/Source/plcrashutil/main.m
  109. +0 −72 .../AppBlade/CrashReporter/Tools/google-toolbox-for-mac-trunk-r582/Foundation/GTMGarbageCollection.h
  110. +0 −113 ...ework/AppBlade/CrashReporter/Tools/google-toolbox-for-mac-trunk-r582/Foundation/GTMObjC2Runtime.h
  111. +0 −444 iOS/Framework/AppBlade/CrashReporter/Tools/google-toolbox-for-mac-trunk-r582/GTMDefines.h
  112. +0 −240 ...ade/CrashReporter/Tools/google-toolbox-for-mac-trunk-r582/UnitTesting/GTMIPhoneUnitTestDelegate.m
  113. +0 −39 ...ppBlade/CrashReporter/Tools/google-toolbox-for-mac-trunk-r582/UnitTesting/GTMIPhoneUnitTestMain.m
  114. +0 −1,110 ...ework/AppBlade/CrashReporter/Tools/google-toolbox-for-mac-trunk-r582/UnitTesting/GTMSenTestCase.h
  115. +0 −500 ...ework/AppBlade/CrashReporter/Tools/google-toolbox-for-mac-trunk-r582/UnitTesting/GTMSenTestCase.m
  116. +0 −10 iOS/Framework/AppBlade/CrashReporter/contrib/README
  117. +0 −77 ...work/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Classes/CrashReporterDemoAppDelegate.h
  118. +0 −321 ...work/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Classes/CrashReporterDemoAppDelegate.m
  119. +0 −44 ...k/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Classes/CrashReporterDemoViewController.h
  120. +0 −75 ...k/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Classes/CrashReporterDemoViewController.m
  121. +0 −36 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Classes/HudView.h
  122. +0 −75 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Classes/HudView.m
  123. +0 −66 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Classes/StartupViewController.h
  124. +0 −528 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Classes/StartupViewController.m
  125. +0 −351 ...AppBlade/CrashReporter/contrib/php-crashreporter-demo/CrashReporterDemo.xcodeproj/project.pbxproj
  126. +0 −309 ...amework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/CrashReporterDemoViewController.xib
  127. +0 −8 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/CrashReporterDemo_Prefix.pch
  128. BIN ...Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/English.lproj/Localizable.strings
  129. +0 −45 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/French.lproj/Localizable.strings
  130. +0 −45 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/German.lproj/Localizable.strings
  131. +0 −30 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Info.plist
  132. +0 −455 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/MainWindow.xib
  133. +0 −50 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/README.txt
  134. +0 −27 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/Root.plist
  135. +0 −55 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/bugdata.plist
  136. +0 −5 ...ework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/de.lproj/Root.strings
  137. BIN ...rk/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/de.lproj/bugdata.strings
  138. +0 −5 ...ework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/en.lproj/Root.strings
  139. +0 −15 ...rk/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/en.lproj/bugdata.strings
  140. +0 −5 ...ework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/es.lproj/Root.strings
  141. +0 −15 ...rk/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/es.lproj/bugdata.strings
  142. +0 −7 ...ework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/fi.lproj/Root.strings
  143. +0 −15 ...rk/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/fi.lproj/bugdata.strings
  144. +0 −7 ...ework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/fr.lproj/Root.strings
  145. +0 −15 ...rk/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/fr.lproj/bugdata.strings
  146. +0 −5 ...ework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/pt.lproj/Root.strings
  147. BIN ...rk/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/pt.lproj/bugdata.strings
  148. +0 −5 ...ework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/ru.lproj/Root.strings
  149. BIN ...rk/AppBlade/CrashReporter/contrib/php-crashreporter-demo/Settings.bundle/ru.lproj/bugdata.strings
  150. +0 −281 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/crash.php
  151. +0 −84 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/crash_update.php
  152. +0 −92 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/database.txt
  153. +0 −45 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/es.lproj/Localizable.strings
  154. +0 −45 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/fi.lproj/Localizable.strings
  155. +0 −37 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/main.m
  156. +0 −45 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/pt.lproj/Localizable.strings
  157. +0 −45 iOS/Framework/AppBlade/CrashReporter/contrib/php-crashreporter-demo/ru.lproj/Localizable.strings
@@ -1,3 +1,11 @@
2015-05-18 Michael Johnson <mike@appblade.com>
iOS
* Version 0.6.3
* Updated PLCrashReporter to latest version, compatible with Xcode 6.3.
* Compiler settings and tweaks to compile properly with Xcode 6.3.1 and the iOS 8.3 SDK
Android
* No changes

2014-09-16 Michael Johnson <mike@appblade.com>
iOS
* Version 0.6.2
@@ -1,6 +1,6 @@
//
// AppBlade.h
// AppBlade iOS SDK v0.6.2
// AppBlade iOS SDK
//
// Created by Craig Spitzkoff on 6/1/11.
// Copyright 2011 AppBlade. All rights reserved.
@@ -714,7 +714,7 @@
CBF479EF13969C2B00949297 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0500;
LastUpgradeCheck = 0630;
ORGANIZATIONNAME = "Raizlabs Corporation";
};
buildConfigurationList = CBF479F213969C2B00949297 /* Build configuration list for PBXProject "AppBlade" */;
@@ -853,7 +853,6 @@
62CD7F0B1406E994006201C7 /* Release_Production */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_THUMB_SUPPORT = NO;
@@ -872,15 +871,17 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
DSTROOT = /tmp/AppBlade.dst;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "AppBlade/AppBlade-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = "PLCF_RELEASE_BUILD=1";
GCC_PREPROCESSOR_DEFINITIONS = (
"PLCF_RELEASE_BUILD=1",
"PLCR_PRIVATE=1",
);
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
HEADER_SEARCH_PATHS = "$(SRCROOT)/AppBlade/CrashReporter/**";
LIBRARY_SEARCH_PATHS = (
@@ -899,7 +900,6 @@
62CD7F0D1406E9E8006201C7 /* Debug_Staging */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
@@ -921,7 +921,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
DSTROOT = /tmp/AppBlade.dst;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -932,6 +931,7 @@
GCC_PREPROCESSOR_DEFINITIONS = (
"PLCF_RELEASE_BUILD=1",
"DEBUG=1",
"PLCR_PRIVATE=1",
);
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
HEADER_SEARCH_PATHS = "$(SRCROOT)/AppBlade/CrashReporter/**";
@@ -951,7 +951,6 @@
62CD7F0F1406E9FC006201C7 /* Release_Staging */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_THUMB_SUPPORT = NO;
@@ -970,15 +969,17 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
DSTROOT = /tmp/AppBlade.dst;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "AppBlade/AppBlade-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = "PLCF_RELEASE_BUILD=1";
GCC_PREPROCESSOR_DEFINITIONS = (
"PLCF_RELEASE_BUILD=1",
"PLCR_PRIVATE=1",
);
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
HEADER_SEARCH_PATHS = "$(SRCROOT)/AppBlade/CrashReporter/**";
LIBRARY_SEARCH_PATHS = (
@@ -998,7 +999,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
COPY_PHASE_STRIP = NO;
DSTROOT = /tmp/AppBladeUniversal.dst;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -1022,15 +1022,14 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
VALID_ARCHS = "armv7 armv7s i386 arm64";
VALID_ARCHS = "armv7 armv7s arm64";
};
name = Debug_Production;
};
CB51D3051429274C00A43CB5 /* Debug_Staging */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
COPY_PHASE_STRIP = NO;
DSTROOT = /tmp/AppBladeUniversal.dst;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -1054,15 +1053,14 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
VALID_ARCHS = "armv7 armv7s i386 arm64";
VALID_ARCHS = "armv7 armv7s arm64";
};
name = Debug_Staging;
};
CB51D3061429274C00A43CB5 /* Release_Production */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
COPY_PHASE_STRIP = YES;
DSTROOT = /tmp/AppBladeUniversal.dst;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -1080,15 +1078,14 @@
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
VALIDATE_PRODUCT = YES;
VALID_ARCHS = "armv7 armv7s i386 arm64";
VALID_ARCHS = "armv7 armv7s arm64";
};
name = Release_Production;
};
CB51D3071429274C00A43CB5 /* Release_Staging */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
COPY_PHASE_STRIP = YES;
DSTROOT = /tmp/AppBladeUniversal.dst;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -1106,14 +1103,13 @@
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
VALIDATE_PRODUCT = YES;
VALID_ARCHS = "armv7 armv7s i386 arm64";
VALID_ARCHS = "armv7 armv7s arm64";
};
name = Release_Staging;
};
CBF47A0013969C2B00949297 /* Debug_Production */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
@@ -1135,7 +1131,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
DSTROOT = /tmp/AppBlade.dst;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -1146,6 +1141,7 @@
GCC_PREPROCESSOR_DEFINITIONS = (
"PLCF_RELEASE_BUILD=1",
"DEBUG=1",
"PLCR_PRIVATE=1",
);
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
HEADER_SEARCH_PATHS = "$(SRCROOT)/AppBlade/CrashReporter/**";
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0500"
LastUpgradeVersion = "0630"
version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
@@ -41,6 +41,15 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CBF479F713969C2B00949297"
BuildableName = "libAppBlade.a"
BlueprintName = "AppBlade"
ReferencedContainer = "container:AppBlade.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0500"
LastUpgradeVersion = "0630"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@@ -39,6 +39,15 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CB51D2FB1429274C00A43CB5"
BuildableName = "libAppBladeUniversal.a"
BlueprintName = "AppBladeUniversal"
ReferencedContainer = "container:AppBlade.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0500"
LastUpgradeVersion = "0630"
version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
@@ -41,6 +41,15 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CBF479F713969C2B00949297"
BuildableName = "libAppBlade.a"
BlueprintName = "AppBlade"
ReferencedContainer = "container:AppBlade.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
@@ -1,6 +1,6 @@
//
// AppBlade.h
// AppBlade iOS SDK v0.6.2
// AppBlade iOS SDK v0.6.3
//
// Created by Craig Spitzkoff on 6/1/11.
// Copyright 2011 AppBlade. All rights reserved.
@@ -35,7 +35,7 @@



static NSString* const s_sdkVersion = @"0.6.2";
static NSString* const s_sdkVersion = @"0.6.3";

NSString* const kAppBladeErrorDomain = @"com.appblade.sdk";
const int kAppBladeOfflineError = 1200;
@@ -106,6 +106,8 @@ @interface AppBlade () <AppBladeWebClientDelegate, FeedbackDialogueDelegate>
@property (nonatomic, retain) NSOperationQueue* pendingRequests;
@property (nonatomic, retain) NSOperationQueue* tokenRequests;

@property (nonatomic, retain) PLCrashReporter* crashReporter;

- (void)raiseConfigurationExceptionWithMessage:(NSString *)message;

- (void)validateProjectConfiguration;
@@ -543,13 +545,13 @@ - (void)catchAndReportCrashes
}
ABDebugLog_internal(@"Catch and report crashes");

PLCrashReporter *crashReporter = [PLCrashReporter sharedReporter];
self.crashReporter = [[PLCrashReporter alloc] init];
NSError *error;

[self checkForExistingCrashReports];

// Enable the Crash Reporter
if (![crashReporter enableCrashReporterAndReturnError: &error])
if (![self.crashReporter enableCrashReporterAndReturnError: &error])
ABErrorLog(@"Warning: Could not enable crash reporter: %@", error);
}

@@ -568,7 +570,7 @@ - (void)checkForExistingCrashReports
- (BOOL)hasPendingCrashReport
{
/* Check for a live crash report file */
if(![[NSFileManager defaultManager] fileExistsAtPath: [[PLCrashReporter sharedReporter] crashReportPath]]){
if(![[NSFileManager defaultManager] fileExistsAtPath: [self.crashReporter crashReportPath]]){
return ([self hasQueuedCrashReports]); //check queue
}
return YES;
@@ -590,7 +592,7 @@ - (NSArray *) queuedCrashReportFiles
}

- (NSString *) queuedCrashReportDirectory {
return [[[PLCrashReporter sharedReporter] crashReportDirectory] stringByAppendingPathComponent: PLCRASH_QUEUED_DIR];
return [[self.crashReporter crashReportDirectory] stringByAppendingPathComponent: PLCRASH_QUEUED_DIR];
}


@@ -603,13 +605,12 @@ - (void)handleCrashReport
return;
}

PLCrashReporter *crashReporter = [PLCrashReporter sharedReporter];
NSData *crashData;
NSError *error;
NSString* reportString = nil;
NSString *queuedFilePath = nil;
// Try loading the crash report from the live file
crashData = [crashReporter loadPendingCrashReportDataAndReturnError: &error];
crashData = [self.crashReporter loadPendingCrashReportDataAndReturnError: &error];
if (crashData != nil) {
PLCrashReport *report = [[PLCrashReport alloc] initWithData: crashData error: &error];
if (report != nil) {
@@ -633,11 +634,11 @@ - (void)handleCrashReport
{
ABErrorLog(@"Could not load a crash report from live file");
}
[crashReporter purgePendingCrashReport]; //remove crash report from immediate file, we have it in the queue now
[self.crashReporter purgePendingCrashReport]; //remove crash report from immediate file, we have it in the queue now

if(queuedFilePath == nil){
//we had no immediate crash, or an invalid save, grab any stored crash report
[[PLCrashReporter sharedReporter] loadPendingCrashReportData];
[self.crashReporter loadPendingCrashReportData];

reportString = [NSString stringWithContentsOfFile:queuedFilePath encoding:NSUTF8StringEncoding error:&error];
}
@@ -979,12 +980,12 @@ - (void)appBladeWebClientCrashReported:(AppBladeWebClient *)client
BOOL success = (status == 201 || status == 200);
if(success){ //we don't need to hold onto this crash.
ABDebugLog_internal(@"Appblade: success sending crash report, response status code: %d", status);
[[PLCrashReporter sharedReporter] purgePendingCrashReport];
[self.crashReporter purgePendingCrashReport];
NSString *pathOfCrashReport = [client.userInfo valueForKey:kAppBladeCrashReportKeyFilePath];
[[NSFileManager defaultManager] removeItemAtPath:pathOfCrashReport error:nil];
ABDebugLog_internal(@"Appblade: removed crash report, %@", pathOfCrashReport);

if ([[PLCrashReporter sharedReporter] hasPendingCrashReport]){
if ([self.crashReporter hasPendingCrashReport]){
ABDebugLog_internal(@"Appblade: PLCrashReporter has more crash reports");
[self handleCrashReport];
}
Oops, something went wrong.

0 comments on commit f4b8d1a

Please sign in to comment.