在构建我的swift项目帖子后,将ProgressHUD
链接到我的swift代码时,出现以下错误。ProgressHUD.showSuccess(“Success”)给出链接错误
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ProgressHUD", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我在弥合文件做了一个#import "ProgressHUD.h"
然后跑到我的视图控制器,并尝试添加
ProgressHUD.showSuccess("Success")
- >构建失败后该行
你在模拟器尝试,以及你所使用的吊舱或者 –
它SVProgressHUD不ProgressHUD, SVProgressHUD.showSuccess(“成功”) –
塞特希指的是这个 - > https://github.com/relatedcode/ProgressHUD –