Skip to content

Commit

Permalink
Fix LLDB with internal framework
Browse files Browse the repository at this point in the history
  • Loading branch information
florentmorin committed Aug 22, 2022
1 parent 3755cd4 commit 9d72c10
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AppWithInternalFramework/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
A034FBBE28B363FA006784F0 /* 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 = (
A034FBBE28B363FA006784F0 /* Debug.xcconfig */,
A0E98B862886E20B005F6608 /* App */,
A0E98B852886E20B005F6608 /* Products */,
A0E98BAB2886E36C005F6608 /* Frameworks */,
Expand Down Expand Up @@ -275,6 +277,7 @@
};
A0E98B932886E20C005F6608 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = A034FBBE28B363FA006784F0 /* Debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions AppWithInternalFramework/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)/InternalFramework.framework/Modules/InternalFramework.swiftmodule/$(NATIVE_ARCH_ACTUAL)-apple-$(SHALLOW_BUNDLE_TRIPLE).swiftmodule

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

0 comments on commit 9d72c10

Please sign in to comment.