Skip to content

Commit

Permalink
Move special runpaths to xconfig for better discoverabiltiy
Browse files Browse the repository at this point in the history
  • Loading branch information
iStefo committed Nov 22, 2018
1 parent bf561c5 commit 2fdb3f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions BXSwiftUtils.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ WATCHOS_DEPLOYMENT_TARGET = 5.0
COPY_PHASE_STRIP = NO
LD_DYLIB_INSTALL_NAME = @rpath
CLANG_ENABLE_MODULES = YES

// These are needed to make the tests work on both macOS and iOS

LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks
LD_RUNPATH_SEARCH_PATHS[sdk=macosx*] = $(inherited) @executable_path/../Frameworks @loader_path/../Frameworks
4 changes: 0 additions & 4 deletions BXSwiftUtils.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,6 @@
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = BXSwiftUtilsTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.boinx.$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -934,8 +932,6 @@
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = BXSwiftUtilsTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.boinx.$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand Down

0 comments on commit 2fdb3f9

Please sign in to comment.