Skip to content

Commit

Permalink
Fix macOS framework settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Jun 25, 2020
1 parent ce42bb7 commit e61bcf8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CrashReporter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3730,9 +3730,11 @@
"$(inherited)",
"-DPLCF_MIN_MACOSX_SDK=$(PL_MIN_MACOSX_SDK)",
);
OTHER_LDFLAGS = "-ObjC";
PRELINK_FLAGS = "-w";
PRELINK_LIBS = "$(CONFIGURATION_BUILD_DIR)/lib$(PRODUCT_NAME).a";
SDKROOT = macosx;
SKIP_INSTALL = YES;
};
name = Debug;
};
Expand All @@ -3751,9 +3753,11 @@
"$(inherited)",
"-DPLCF_MIN_MACOSX_SDK=$(PL_MIN_MACOSX_SDK)",
);
OTHER_LDFLAGS = "-ObjC";
PRELINK_FLAGS = "-w";
PRELINK_LIBS = "$(CONFIGURATION_BUILD_DIR)/lib$(PRODUCT_NAME).a";
SDKROOT = macosx;
SKIP_INSTALL = YES;
};
name = Release;
};
Expand Down
7 changes: 2 additions & 5 deletions Other Sources/Crash Demo/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ static void save_crash_report (PLCrashReporter *reporter) {
* enabled.
*/
static bool debugger_should_exit (void) {
#if !TARGET_OS_IPHONE
return false;
#endif

#if TARGET_OS_IPHONE
struct kinfo_proc info;
size_t info_size = sizeof(info);
int name[4];
Expand All @@ -135,7 +132,7 @@ static bool debugger_should_exit (void) {

if ((info.kp_proc.p_flag & P_TRACED) != 0)
return true;
#endif
return false;
}

Expand Down
2 changes: 2 additions & 0 deletions Resources/DemoCrash-macOS-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<string>1.0</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
Expand Down

0 comments on commit e61bcf8

Please sign in to comment.