Skip to content

Commit a19adfa

Browse files
committed
MacOS .dylib
1 parent 8ffc306 commit a19adfa

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

App/InjectionNext.xcodeproj/project.pbxproj

+8
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,10 @@
862862
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2024 John Holdsworth. All rights reserved.";
863863
INFOPLIST_KEY_NSPrincipalClass = "";
864864
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
865+
LD_RUNPATH_SEARCH_PATHS = (
866+
"$(inherited)",
867+
$PLATFORM_DIR/Developer/usr/lib,
868+
);
865869
LIBRARY_SEARCH_PATHS = "$(PLATFORM_DIR)/Developer/usr/lib";
866870
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
867871
MACH_O_TYPE = mh_dylib;
@@ -899,6 +903,10 @@
899903
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2024 John Holdsworth. All rights reserved.";
900904
INFOPLIST_KEY_NSPrincipalClass = "";
901905
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
906+
LD_RUNPATH_SEARCH_PATHS = (
907+
"$(inherited)",
908+
$PLATFORM_DIR/Developer/usr/lib,
909+
);
902910
LIBRARY_SEARCH_PATHS = "$(PLATFORM_DIR)/Developer/usr/lib";
903911
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
904912
MACH_O_TYPE = mh_dylib;

App/InjectionNext/Defaults.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ struct Defaults {
1515
static let librariesDefault = "libraries"
1616
static let codesigningDefault = "codesigningIdentity"
1717
private static let xcodeRestartDefault = "xcodeRestartDefault"
18+
static var xcodePath: String {
19+
xcodeDefault ?? "/Applications/Xcode.app" }
1820
static var xcodeDefault: String? {
1921
get {
2022
userDefaults.string(forKey: xcodePathDefault)
@@ -24,8 +26,6 @@ struct Defaults {
2426
forKey: xcodePathDefault)
2527
}
2628
}
27-
static var xcodePath: String {
28-
xcodeDefault ?? "/Applications/Xcode.app" }
2929
static var deviceLibraries: String {
3030
get {
3131
userDefaults.string(forKey: librariesDefault) ??

App/InjectionNext/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
22-
<string>11111</string>
22+
<string>11119</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.developer-tools</string>
2525
<key>LSMinimumSystemVersion</key>

App/InjectionNext/build_bundles.sh

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ function build_bundle () {
3939
ln -sf "${FAMILY}Injection.bundle/${FAMILY}Injection" "$CODESIGNING_FOLDER_PATH/Contents/Resources/lib${SDK}Injection.dylib"
4040
}
4141

42+
ln -sf "macOSInjection.bundle/Contents/MacOS/macOSInjection" "$CODESIGNING_FOLDER_PATH/Contents/Resources/libmacosxInjection.dylib" &&
43+
4244
build_bundle iOS iPhoneSimulator iphonesimulator &&
4345
build_bundle iOSDev iPhoneOS iphoneos &&
4446
build_bundle tvOS AppleTVSimulator appletvsimulator &&

0 commit comments

Comments
 (0)