How to use XCTest
onmyway133 opened this issue · comments
I'm writing a simple test file to use XCTest
file.m
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
int main()
{
NSLog(@"file running");
XCTAssert(YES, @"Pass");
return 0;
}
When I run objc-run file.m
, I get
'UIKit/UIKit.h' file not found
#import <UIKit/UIKit.h>
^
1 error generated.
objc-run: clang returned with error
As far as I can recall, there is no functionality built-in to link against other library then Foundation. You are more than welcome to add such a feature.
Also, objc-run is to built small command line tools. I'm not sure that you could use iOS APIs here.