UIButton
カスタムを作成しようとしています。ここに私の.hクラスは次のとおりです。
@interface RadioUIButton : UIButton
@property (strong) NSString* stringTag;
@end
私はFeedbackViewController.m
からクラスにアクセスしようとすると、私はこのエラーを取得:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_RadioUIButton", referenced from: objc-class-ref in FeedbackViewController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
私がこれまで試したん持っているもの:
Enable Bitcode: set to NO
Build Active Architecture only: set to NO
なし上記の作業のそれ以外に何ができますか?
@property (nonatomic, copy) NSString* stringTag;
または
@property (nonatomic, strong) NSString* stringTag;
このクラスの.mファイルはどのように見えますか?あなたの目標のメンバーですか? – uliwitness
何もしません。はい、メンバーです。 – student
ビルド設定で「Valid Architectures」の項目をチェックしてください。そこでは、arm64を有効にする必要があります。 –