Reputation: 101
I get a crash with “Could not swizzle” when I launch EarlGrey tests, how do I avoid this?
Upvotes: 2
Views: 74
Reputation: 296
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.
Upvotes: 2