I have Objective-C class methods that will not autocomplete or show up in Swift. I am using xcode 8.1.
I created a test Objc class:
// deleteMe.h
@interface deleteMe : NSObject
+ (void)test;
@end
// deleteMe.m
#import "deleteMe.h"
@implementation deleteMe
+(void) test
{
NSLog(@"y u no autocomplete?");
}
@end
In my Swift (which has this imported in the bridging header) I have tried to access this method via autocomplete and it doesn't work:
Class does not appear for autocomplete
Class method does not appear for autocomplete
If I code it in, it does work:
So if I code it in exactly, it is finding it and the instance is valid as is the class method call.
I saw a post on updating the deployment target to 8.1 to fix this issue but it did not.
Do you know why autocomplete is not working and ideas on how to fix this?