0
내 앱 (https://github.com/andreamazz/AMBubbleTableView)에 AMBubbleTableViewController 모듈을 추가하려고하는데 지침을 따르지 만 많은 오류가있어서 그 이유를 모르겠습니다.Xcode 모듈 가져 오기 오류
다음은 오류입니까?
Undefined symbols for architecture x86_64:
"_AMOptionsBubbleDetectionType", referenced from:
-[Chat viewDidLoad] in Chat.o
"_AMOptionsBubblePressEnabled", referenced from:
-[Chat viewDidLoad] in Chat.o
"_AMOptionsBubbleSwipeEnabled", referenced from:
-[Chat viewDidLoad] in Chat.o
"_OBJC_CLASS_$_AMBubbleTableViewController", referenced from:
_OBJC_CLASS_$_Chat in Chat.o
"_OBJC_METACLASS_$_AMBubbleTableViewController", referenced from:
_OBJC_METACLASS_$_Chat in Chat.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
내 코드가있다 :
- (void)viewDidLoad {
// Bubble Table setup
[self setDataSource:self]; // Weird, uh?
[self setDelegate:self];
[self setTitle:@"Chat"];
// Dummy data
self.data = [[NSMutableArray alloc] initWithArray:@[
@{
@"text": @"He felt that his whole life was some kind of dream and he sometimes wondered whose it was and whether they were enjoying it.",
@"date": [NSDate date],
@"type": @(AMBubbleCellReceived),
@"username": @"Stevie",
@"color": [UIColor redColor]
},
@{
@"text": @"My dad isn’t famous. My dad plays jazz. You can’t get famous playing jazz",
@"date": [NSDate date],
@"type": @(AMBubbleCellSent)
},
@{
@"date": [NSDate date],
@"type": @(AMBubbleCellTimestamp)
},
@{
@"text": @"I'd far rather be happy than right any day.",
@"date": [NSDate date],
@"type": @(AMBubbleCellReceived),
@"username": @"John",
@"color": [UIColor orangeColor]
},
@{
@"text": @"The only reason for walking into the jaws of Death is so's you can steal His gold teeth.",
@"date": [NSDate date],
@"type": @(AMBubbleCellSent)
},
@{
@"text": @"The gods had a habit of going round to atheists' houses and smashing their windows.",
@"date": [NSDate date],
@"type": @(AMBubbleCellReceived),
@"username": @"Jimi",
@"color": [UIColor blueColor]
},
@{
@"text": @"you are lucky. Your friend is going to meet Bel-Shamharoth. You will only die.",
@"date": [NSDate date],
@"type": @(AMBubbleCellSent)
},
@{
@"text": @"Guess the quotes!",
@"date": [NSDate date],
@"type": @(AMBubbleCellSent)
},
]
];
// Set a style
[self setTableStyle:AMBubbleTableStyleFlat];
[self setBubbleTableOptions:@{AMOptionsBubbleDetectionType: @(UIDataDetectorTypeAll),
AMOptionsBubblePressEnabled: @NO,
AMOptionsBubbleSwipeEnabled: @NO}];
// Call super after setting up the options
[super viewDidLoad];
[self.tableView setContentInset:UIEdgeInsetsMake(64, 0, 0, 0)];
} 당신은 자주 링커 이런 종류의 오류가 표시됩니다
심볼 및 클래스 정의가 컴파일되는 소스 파일에 포함되어 있지 않기 때문에 발생하는 링커 오류입니다. 컴파일 소스 빌드 단계가'AMBubbleTableViewController.m'과'AMBubbleGlobals.m' 파일을 포함하고 있는지 확인하십시오. – warrenm
감사합니다 !! 문제가 해결되었습니다. 좀 더 많은 것을 고칠 필요가 있었지만 문제가 해결되었습니다. 다시 고마워! –
이 의견이 문제를 해결하는 데 도움을 준 경우 아래에서 답변을 수락하십시오. – warrenm