2

I get a crash with “Could not swizzle” when I launch EarlGrey tests, how do I avoid this?

jdis
  • 101
  • 5

1 Answers1

2

This means that EarlGrey is trying to swizzle a method that has been swizzled before: ensure that only the test target depends on EarlGrey.framework and the framework is embedded in the app under test. Since EarlGrey performs swizzling on in +load methods merely linking twice can cause this error at runtime.

Gautam
  • 286
  • 1
  • 3