Skip to content

Commit

Permalink
Fix ld: warning: ignoring duplicate libraries: '-lc++'
Browse files Browse the repository at this point in the history
  • Loading branch information
kstenerud committed Sep 8, 2023
1 parent 7f1198d commit e1e050a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 62 deletions.
28 changes: 2 additions & 26 deletions Bugsnag.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1079,8 +1079,6 @@
CBBDE9BF280069B20070DCD3 /* BSG_KSString.c in Sources */ = {isa = PBXBuildFile; fileRef = 008969242486DAD000DC48C2 /* BSG_KSString.c */; };
CBBDE9C0280069B20070DCD3 /* BSG_KSMach_x86_32.c in Sources */ = {isa = PBXBuildFile; fileRef = 008969032486DAD000DC48C2 /* BSG_KSMach_x86_32.c */; };
CBBDE9C2280069B20070DCD3 /* BSG_KSMach_Arm64.c in Sources */ = {isa = PBXBuildFile; fileRef = 008969172486DAD000DC48C2 /* BSG_KSMach_Arm64.c */; };
CBBDE9C4280069D10070DCD3 /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = CBBDE9C3280069D10070DCD3 /* libc++.tbd */; };
CBBDE9C6280069D90070DCD3 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = CBBDE9C5280069D90070DCD3 /* libz.tbd */; };
CBCAF6FA25A457F90095771F /* BSGFileLocations.h in Headers */ = {isa = PBXBuildFile; fileRef = CBCAF6F825A457F90095771F /* BSGFileLocations.h */; };
CBCAF6FB25A457F90095771F /* BSGFileLocations.h in Headers */ = {isa = PBXBuildFile; fileRef = CBCAF6F825A457F90095771F /* BSGFileLocations.h */; };
CBCAF6FC25A457F90095771F /* BSGFileLocations.h in Headers */ = {isa = PBXBuildFile; fileRef = CBCAF6F825A457F90095771F /* BSGFileLocations.h */; };
Expand Down Expand Up @@ -1170,16 +1168,10 @@
E746291C248907E500F92D67 /* BSG_KSCrashC.c in Sources */ = {isa = PBXBuildFile; fileRef = 0089694B2486DAD000DC48C2 /* BSG_KSCrashC.c */; };
E746292524890BFE00F92D67 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E746292424890BFE00F92D67 /* Foundation.framework */; };
E746292724890C1100F92D67 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E746292624890C1100F92D67 /* SystemConfiguration.framework */; };
E746292924890C1500F92D67 /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E746292824890C1500F92D67 /* libc++.tbd */; };
E746292B24890C1A00F92D67 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E746292A24890C1A00F92D67 /* libz.tbd */; };
E746292D24890C3300F92D67 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E746292C24890C3300F92D67 /* Foundation.framework */; };
E746292F24890C3900F92D67 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E746292E24890C3900F92D67 /* SystemConfiguration.framework */; };
E746293224890C5200F92D67 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E746293124890C4300F92D67 /* libz.tbd */; };
E746293324890C5700F92D67 /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E746293024890C3D00F92D67 /* libc++.tbd */; };
E746293524890C6500F92D67 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E746293424890C6500F92D67 /* Foundation.framework */; };
E746293724890C6B00F92D67 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E746293624890C6B00F92D67 /* SystemConfiguration.framework */; };
E746293924890C7400F92D67 /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E746293824890C7000F92D67 /* libc++.tbd */; };
E746293B24890C7E00F92D67 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E746293A24890C7900F92D67 /* libz.tbd */; };
E746293C24890C9F00F92D67 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E746292424890BFE00F92D67 /* Foundation.framework */; };
E746293D24890CA400F92D67 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E746292624890C1100F92D67 /* SystemConfiguration.framework */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -1620,8 +1612,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E746292B24890C1A00F92D67 /* libz.tbd in Frameworks */,
E746292924890C1500F92D67 /* libc++.tbd in Frameworks */,
E746292724890C1100F92D67 /* SystemConfiguration.framework in Frameworks */,
E746292524890BFE00F92D67 /* Foundation.framework in Frameworks */,
CBEC89382A4AC8520088A3CE /* UIKit.framework in Frameworks */,
Expand All @@ -1641,8 +1631,6 @@
buildActionMask = 2147483647;
files = (
E746292F24890C3900F92D67 /* SystemConfiguration.framework in Frameworks */,
E746293224890C5200F92D67 /* libz.tbd in Frameworks */,
E746293324890C5700F92D67 /* libc++.tbd in Frameworks */,
E746292D24890C3300F92D67 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -1659,8 +1647,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E746293924890C7400F92D67 /* libc++.tbd in Frameworks */,
E746293B24890C7E00F92D67 /* libz.tbd in Frameworks */,
E746293724890C6B00F92D67 /* SystemConfiguration.framework in Frameworks */,
E746293524890C6500F92D67 /* Foundation.framework in Frameworks */,
);
Expand Down Expand Up @@ -1695,8 +1681,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
CBBDE9C6280069D90070DCD3 /* libz.tbd in Frameworks */,
CBBDE9C4280069D10070DCD3 /* libc++.tbd in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -3892,11 +3876,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;
Expand Down Expand Up @@ -3934,11 +3914,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;
Expand Down
2 changes: 0 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ let package = Package(
.headerSearchPath("Storage"),
],
linkerSettings: [
.linkedLibrary("z"),
.linkedLibrary("c++"),
]
),
.target(
Expand Down
10 changes: 0 additions & 10 deletions examples/objective-c-ios/objective-c-ios.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@
0159747126BBE92D003BD715 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0159746F26BBE92D003BD715 /* LaunchScreen.storyboard */; };
01B9390826BBE17C00208C39 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 01B9390726BBE17C00208C39 /* Assets.xcassets */; };
19B2907F523540B1194E89AC /* libPods-objective-c-ios.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AE12FD2EC7D212FA4CE8C14 /* libPods-objective-c-ios.a */; };
8A4882E2224BCC130035B94C /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8A4882E1224BCC130035B94C /* WebKit.framework */; };
8A4882E5224BCD5D0035B94C /* OutOfMemoryController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8A4882E4224BCD5D0035B94C /* OutOfMemoryController.m */; };
A1F5109B249A5C4000AFF4DE /* CxxException.mm in Sources */ = {isa = PBXBuildFile; fileRef = A1F51099249A5C4000AFF4DE /* CxxException.mm */; };
F40B874B16AA233500676BB2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F40B874A16AA233500676BB2 /* UIKit.framework */; };
F40B874D16AA233500676BB2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F40B874C16AA233500676BB2 /* Foundation.framework */; };
F40B874F16AA233500676BB2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F40B874E16AA233500676BB2 /* CoreGraphics.framework */; };
F40B875716AA233500676BB2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F40B875616AA233500676BB2 /* main.m */; };
F40B875B16AA233500676BB2 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F40B875A16AA233500676BB2 /* AppDelegate.m */; };
F40B876416AA233500676BB2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F40B876216AA233500676BB2 /* Main.storyboard */; };
Expand Down Expand Up @@ -63,10 +59,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
8A4882E2224BCC130035B94C /* WebKit.framework in Frameworks */,
F40B874B16AA233500676BB2 /* UIKit.framework in Frameworks */,
F40B874D16AA233500676BB2 /* Foundation.framework in Frameworks */,
F40B874F16AA233500676BB2 /* CoreGraphics.framework in Frameworks */,
19B2907F523540B1194E89AC /* libPods-objective-c-ios.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -403,7 +395,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 30DA6BFF87D698AA4E0F2AF4 /* Pods-objective-c-ios.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand All @@ -429,7 +420,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 369E8CF8CBEF9563CE2A1E09 /* Pods-objective-c-ios.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
93BE1CE01B62CC360016380C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 93BE1CDE1B62CC360016380C /* Main.storyboard */; };
93CF94F81B66B09300D1558C /* CustomApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = 93CF94F71B66B09300D1558C /* CustomApplication.m */; };
D237D8A707A739A4034FF767 /* libPods-objective-c-osx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 54B9582E2984563C0F07C26D /* libPods-objective-c-osx.a */; };
E76616EE1F4E43CC0094CECF /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E76616ED1F4E43CC0094CECF /* libc++.tbd */; };
E76616F01F4E43D10094CECF /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E76616EF1F4E43D10094CECF /* libz.tbd */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -44,8 +42,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E76616F01F4E43D10094CECF /* libz.tbd in Frameworks */,
E76616EE1F4E43CC0094CECF /* libc++.tbd in Frameworks */,
D237D8A707A739A4034FF767 /* libPods-objective-c-osx.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
4 changes: 0 additions & 4 deletions examples/swift-ios/swift-ios.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
D175F4C51ACDBD81009AFFB7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D175F4C41ACDBD81009AFFB7 /* Assets.xcassets */; };
D175F4DF1ACDBEFA009AFFB7 /* AnotherClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = D175F4DE1ACDBEFA009AFFB7 /* AnotherClass.swift */; };
D175F4E21ACDBFD9009AFFB7 /* AnObjCClass.mm in Sources */ = {isa = PBXBuildFile; fileRef = D175F4E11ACDBFD9009AFFB7 /* AnObjCClass.mm */; };
E75E62DF1F4CE1D8000C44C0 /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E75E62DE1F4CE1D8000C44C0 /* libc++.tbd */; };
E75E62E11F4CE1DD000C44C0 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = E75E62E01F4CE1DD000C44C0 /* libz.tbd */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -52,8 +50,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E75E62E11F4CE1DD000C44C0 /* libz.tbd in Frameworks */,
E75E62DF1F4CE1D8000C44C0 /* libc++.tbd in Frameworks */,
99E0BFB5118D8734EE28789F /* Pods_swift_ios.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 60;
objects = {

/* Begin PBXBuildFile section */
011E212326BC3208006903C3 /* AnotherClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 011E211E26BC3208006903C3 /* AnotherClass.swift */; };
011E212526BC3208006903C3 /* AnObjCClass.mm in Sources */ = {isa = PBXBuildFile; fileRef = 011E212026BC3208006903C3 /* AnObjCClass.mm */; };
01E53F7A26C12EAF003AD7BB /* OutOfMemoryController.m in Sources */ = {isa = PBXBuildFile; fileRef = 01E53F7926C12EAF003AD7BB /* OutOfMemoryController.m */; };
09E57CB02AAB45D40053F4E3 /* Bugsnag in Frameworks */ = {isa = PBXBuildFile; productRef = 09E57CAF2AAB45D40053F4E3 /* Bugsnag */; };
09E57CB22AAB45D40053F4E3 /* BugsnagNetworkRequestPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 09E57CB12AAB45D40053F4E3 /* BugsnagNetworkRequestPlugin */; };
3A837DC024AA48DE00A54700 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A837DBF24AA48DE00A54700 /* AppDelegate.swift */; };
3A837DC224AA48DE00A54700 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A837DC124AA48DE00A54700 /* SceneDelegate.swift */; };
3A837DC424AA48DE00A54700 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A837DC324AA48DE00A54700 /* ViewController.swift */; };
3A837DC724AA48DE00A54700 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3A837DC524AA48DE00A54700 /* Main.storyboard */; };
3A837DC924AA48DF00A54700 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3A837DC824AA48DF00A54700 /* Assets.xcassets */; };
3A837DCC24AA48DF00A54700 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3A837DCA24AA48DF00A54700 /* LaunchScreen.storyboard */; };
3A837DD524AA4A0E00A54700 /* Bugsnag in Frameworks */ = {isa = PBXBuildFile; productRef = 3A837DD424AA4A0E00A54700 /* Bugsnag */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -41,7 +42,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3A837DD524AA4A0E00A54700 /* Bugsnag in Frameworks */,
09E57CB22AAB45D40053F4E3 /* BugsnagNetworkRequestPlugin in Frameworks */,
09E57CB02AAB45D40053F4E3 /* Bugsnag in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -101,7 +103,8 @@
);
name = "swift-package-manager";
packageProductDependencies = (
3A837DD424AA4A0E00A54700 /* Bugsnag */,
09E57CAF2AAB45D40053F4E3 /* Bugsnag */,
09E57CB12AAB45D40053F4E3 /* BugsnagNetworkRequestPlugin */,
);
productName = "swift-package-manager";
productReference = 3A837DBC24AA48DE00A54700 /* swift-package-manager.app */;
Expand Down Expand Up @@ -133,7 +136,7 @@
);
mainGroup = 3A837DB324AA48DE00A54700;
packageReferences = (
3A837DD324AA4A0E00A54700 /* XCRemoteSwiftPackageReference "bugsnag-cocoa" */,
09E57CAE2AAB45D40053F4E3 /* XCLocalSwiftPackageReference "../.." */,
);
productRefGroup = 3A837DBD24AA48DE00A54700 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -373,23 +376,22 @@
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
3A837DD324AA4A0E00A54700 /* XCRemoteSwiftPackageReference "bugsnag-cocoa" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/bugsnag/bugsnag-cocoa.git";
requirement = {
branch = master;
kind = branch;
};
/* Begin XCLocalSwiftPackageReference section */
09E57CAE2AAB45D40053F4E3 /* XCLocalSwiftPackageReference "../.." */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ../..;
};
/* End XCRemoteSwiftPackageReference section */
/* End XCLocalSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
3A837DD424AA4A0E00A54700 /* Bugsnag */ = {
09E57CAF2AAB45D40053F4E3 /* Bugsnag */ = {
isa = XCSwiftPackageProductDependency;
package = 3A837DD324AA4A0E00A54700 /* XCRemoteSwiftPackageReference "bugsnag-cocoa" */;
productName = Bugsnag;
};
09E57CB12AAB45D40053F4E3 /* BugsnagNetworkRequestPlugin */ = {
isa = XCSwiftPackageProductDependency;
productName = BugsnagNetworkRequestPlugin;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 3A837DB424AA48DE00A54700 /* Project object */;
Expand Down

0 comments on commit e1e050a

Please sign in to comment.