Skip to content

Commit 5db48d9

Browse files
dweinsteinoleavr
authored andcommittedJun 19, 2019
Fix tests on macOS (#17)
Need to make sure rpath references /usr/lib/swift. With Xcode on 10.14.5 I was otherwise getting the error: > This copy of libswiftCore.dylib requires an OS version prior to 10.14.4.` - https://forums.developer.apple.com/thread/115020 helped solve it.
1 parent 7298cef commit 5db48d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎test/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ IOS_HOST = iphone
44
IOS_ARCH = arm64
55
IOS_PREFIX = /usr/local/opt/frida-objc-tests-$(IOS_ARCH)
66

7-
frida_version := 12.4.1
7+
frida_version := 12.6.7
88

99
cflags := -Wall -pipe -Os -g
1010
ldflags := -Wl,-framework,Foundation -lfrida-gumjs -lresolv -Wl,-dead_strip
@@ -15,7 +15,8 @@ macos_swift := $(shell xcrun --sdk macosx -f swift)
1515
macos_sdk := $(shell xcrun --sdk macosx --show-sdk-path)
1616
macos_cflags := -isysroot "$(macos_sdk)" -arch x86_64 $(cflags) -DHAVE_MACOS
1717
macos_runtimedir := $(toolchain)/usr/lib/swift/macosx
18-
macos_ldflags := "-L$(macos_runtimedir)" -lswiftObjectiveC "-Wl,-rpath,$(macos_runtimedir)" $(ldflags)
18+
macos_swift_runtimedir := /usr/lib/swift
19+
macos_ldflags := "-L$(macos_runtimedir)" -lswiftObjectiveC "-Wl,-rpath,$(macos_swift_runtimedir),-rpath,$(macos_runtimedir)" $(ldflags)
1920

2021
ios_cc := $(shell xcrun --sdk iphoneos -f clang)
2122
ios_swift := $(shell xcrun --sdk iphoneos -f swift)

0 commit comments

Comments
 (0)
Please sign in to comment.