_OBJC_CLASS_$_HiMainViewController", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s)

报错:Undefined symbols for architecture arm64:

  "_OBJC_CLASS_$_HiMainViewController", referenced from:

      objc-class-ref in AppDelegate.o

ld: symbol(s) not found for architecture arm64

(HiMainViewController是Appdelegate的rootviewcontroller)

解决方法:将HiMainViewController.m放进 Target-Build phases-compile sources里面

你可能感兴趣的:(_OBJC_CLASS_$_HiMainViewController", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s))