venmo / DVR

Network testing for Swift
http://blog.soff.es/network-testing-in-swift-with-dvr
MIT License
651 stars 86 forks source link

Xcode crashes right after new cassette recorded #33

Closed ksm closed 8 years ago

ksm commented 8 years ago

Both my Xcode's (7.1 and 7.2-beta.3) crash when I run a test that uses DVR where no cassette exists yet. Crash happens right after DVR records the request, logs the fact to console and then aborts to stop running - immediately after or maybe even at the time of the abort there's a crash.

Here's a snippet from the crash log:

Crashed Thread:        38  <DBGLLDBSessionThread (pid=2221)>  Dispatch queue: DVTInvalidationPreventionQueue

DVR is probably not at fault here, but has anyone experienced this and been able to fix or workaround the crash?

ksm commented 8 years ago

Update: worked around the crash by removing the DVR framework from the project (it was added via Carthage). Then I copied and pasted the DVR source files into the project and added them to the test target. Works.

ksm commented 8 years ago

I suspected it could have been some Xcode/Carthage interop problem, so I made sure that Carthage was compiling with correct version of Xcode and recompiled all Carthage dependencies for good measure. The command I use for recompiling: carthage update --platform iOS --no-use-binaries. Still crashed.

mihaigeorgescu-newstore commented 8 years ago

I had the same issue, but the recompiling command did the trick for me. Thanks.