Skip to content

Commit

Permalink
Fix LLDB with internal static library
Browse files Browse the repository at this point in the history
  • Loading branch information
florentmorin committed Aug 22, 2022
1 parent 9d72c10 commit f8462e5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
A094325B28B3720000147B0D /* Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
A0E98B842886E20B005F6608 /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
A0E98B872886E20B005F6608 /* AppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppApp.swift; sourceTree = "<group>"; };
A0E98B892886E20B005F6608 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
Expand All @@ -38,6 +39,7 @@
A0E98B7B2886E20B005F6608 = {
isa = PBXGroup;
children = (
A094325B28B3720000147B0D /* Debug.xcconfig */,
A0E98B862886E20B005F6608 /* App */,
A0E98B852886E20B005F6608 /* Products */,
A0E98BAB2886E36C005F6608 /* Frameworks */,
Expand Down Expand Up @@ -275,6 +277,7 @@
};
A0E98B932886E20C005F6608 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = A094325B28B3720000147B0D /* Debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
Expand Down
16 changes: 16 additions & 0 deletions AppWithInternalStaticLibrary/App/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// Debug.xcconfig
// App
//
// Created by Florent Morin on 22/08/2022.
//

// Configuration settings file format documentation can be found at:
// https://help.apple.com/xcode/#/dev745c5c974

// Xcode 13.3+
OTHER_LDFLAGS = -Wl,-add_ast_path,$(TARGET_BUILD_DIR)/InternalStaticLibrary.swiftmodule/$(NATIVE_ARCH_ACTUAL)-apple-$(SHALLOW_BUNDLE_TRIPLE).swiftmodule

// Xcode 13.2
OTHER_LDFLAGS[sdk=iphoneos15.2] = -Wl,-add_ast_path,$(TARGET_BUILD_DIR)/InternalStaticLibrary.swiftmodule/$(NATIVE_ARCH_ACTUAL)-apple-ios.swiftmodule
OTHER_LDFLAGS[sdk=iphonesimulator15.2] = -Wl,-add_ast_path,$(TARGET_BUILD_DIR)/InternalStaticLibrary.swiftmodule/$(NATIVE_ARCH_ACTUAL)-apple-simulator.swiftmodule

0 comments on commit f8462e5

Please sign in to comment.