I had the same error, and after 4 hours of uninstalling, cloning, cleaning, reinstalling modules, retrying ... that works for me:
Podfile
link_with 'MyProject', 'MyProjectTests'
Testfile
#import <UIKit/UIKit.h> #import <XCTest/XCTest.h> #import <Realm/Realm.h> #import "RealmObjectSubclass.h" - (void)setUp { [super setUp]; NSString *resourcePath = [NSBundle bundleForClass:[self.class]].resourcePath; NSString *testRealPath = [NSString stringWithFormat:@"%@.test", resourcePath]; [RLMRealm setDefaultRealmPath:testRealPath]; }
source share