我正在尝试在我的应用程序中使用SlackTextViewController(https://github.com/slackhq/SlackTextViewController),这是用Swift编写的。
(我正在关注此事 - > https://stackoverflow.com/a/26467524/2852500)
在pod安装之后,一切正常,但是当我尝试从其中一个Objective-C类继承时,构建失败并出现错误,如 -
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SLKTextViewController", referenced from:
_OBJC_CLASS_$__TtC8Appname15Class2 in Class2.o
"_OBJC_METACLASS_$_SLKTextViewController", referenced from:
_OBJC_METACLASS_$__TtC8Appname15Class2 in Class2.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我跟着Undefined symbols for architecture arm64,但后来我得到了与armv7相同的错误。
我的桥接标题如下:
#ifndef Appname_Bridging_Header_h
#define Appname_Bridging_Header_h
#import <GooglePlus/GooglePlus.h>
#import <GoogleOpenSource/GoogleOpenSource.h>
#import <SLKTextViewController.h>
#import <SLKInputAccessoryView.h>
#import <SLKTextInputbar.h>
#import <SLKTextView.h>
#import <SLKTypingIndicatorView.h>
#endif