From 54a0e5895235be8454e6ce4e4f25e02c6469881c Mon Sep 17 00:00:00 2001 From: Karl Stenerud Date: Thu, 7 Sep 2023 20:25:37 +0100 Subject: [PATCH] Fix warning in Xcode 15 about duplicate -lc++ during linker phase --- Bugsnag.podspec.json | 2 +- Bugsnag.xcodeproj/project.pbxproj | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Bugsnag.podspec.json b/Bugsnag.podspec.json index a4018ecd8..91d34913c 100644 --- a/Bugsnag.podspec.json +++ b/Bugsnag.podspec.json @@ -42,7 +42,7 @@ "-fvisibility=hidden" ], "libraries": [ - "c++", "z" + "z" ], "platforms": { "ios": "9.0", diff --git a/Bugsnag.xcodeproj/project.pbxproj b/Bugsnag.xcodeproj/project.pbxproj index d1843abe5..430dd3128 100644 --- a/Bugsnag.xcodeproj/project.pbxproj +++ b/Bugsnag.xcodeproj/project.pbxproj @@ -3892,11 +3892,7 @@ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; - OTHER_LDFLAGS = ( - "-lc++", - "-lz", - "-ObjC", - ); + OTHER_LDFLAGS = "-ObjC"; PRODUCT_BUNDLE_IDENTIFIER = com.bugsnag.Bugsnag; PRODUCT_NAME = Bugsnag; RUN_CLANG_STATIC_ANALYZER = YES; @@ -3934,11 +3930,7 @@ MACOSX_DEPLOYMENT_TARGET = 10.11; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; - OTHER_LDFLAGS = ( - "-lc++", - "-lz", - "-ObjC", - ); + OTHER_LDFLAGS = "-ObjC"; PRODUCT_BUNDLE_IDENTIFIER = com.bugsnag.Bugsnag; PRODUCT_NAME = Bugsnag; RUN_CLANG_STATIC_ANALYZER = YES;