0

I have a xcode project containing both obj-c and swift code. Test codes are written in swift. I need to import static const declared in Obj-c .m file into xctest.

// Book.m
#import <Foundation/Foundation.h>
#import "Book.h"

static NSString * const MyValue = @"my_value"; // I need to refer this in swift test code

@implementation Book

@synthesize bookId;

- (void)someMethod {
}

@end

0 Answers0