I get a crash with “Could not swizzle” when I launch EarlGrey tests, how do I avoid this?
Asked
Active
Viewed 63 times
1 Answers
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