在構建我的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 –