Skip to content

Commit

Permalink
Include instructions for when to turn off code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
zenangst committed Mar 27, 2019
1 parent d340585 commit 4eec370
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion InjectionBundle/SwiftEval.swift
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,11 @@ public class SwiftEval: NSObject {
print("💉 Loading .dylib ...")
// load patched .dylib into process with new version of class
guard let dl = dlopen("\(tmpfile).dylib", RTLD_NOW) else {
throw evalError("dlopen() error: \(String(cString: dlerror()))")
let error = String(cString: dlerror())
if error.contains("___llvm_profile_runtime") {
print("💉 Loading .dylib has failed, try turning off collection of test coverage in your scheme")
}
throw evalError("dlopen() error: \(error)")
}
print("💉 Loaded .dylib - Ignore any duplicate class warning ^")

Expand Down

0 comments on commit 4eec370

Please sign in to comment.