I keep getting this error but I have no idea where it's coming from.
linker command failed with exit code 1 (use -v to see invocation)
How do I fix this?
Here's the code from WebView.m
#import "WebViewController1.h"
@interface ViewController ()
@property (strong, nonatomic) IBOutlet UIWebView *webView;
@property (weak, nonatomic) IBOutlet UIWebView *webView2;
@end
@implementation ViewController
Here's the code from WebViewController.h
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end

You have done one of two things wrong here.
You either mistakenly imported
ViewController.m(instead ofViewController.h) intoWebView.m. Or yourWebView.hand.mmistakenly declare theViewControllerclass instead of theWebViewclass.Based on the comments and the updated question it seems to be latter problem.
Both
ViewController.h/.mandWebView.m/WebViewController.hdeclare the classViewController.WebView.mtoWebViewController.m. It makes things a lot clearer if the .h and .m for a class are the same and have the same name as the class.Fix
WebViewController.hso you declareWebViewControllerinstead ofViewController:Fix
WebViewController.m(the formerWebView.mso you defineWebViewControllerinstead ofViewController.