Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/94.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Mach-O链接器错误-正确导入(并检查)文件,但仍然错误?_Ios_Objective C_Xcode_Compiler Errors_Linker Errors - Fatal编程技术网

Ios Mach-O链接器错误-正确导入(并检查)文件,但仍然错误?

Ios Mach-O链接器错误-正确导入(并检查)文件,但仍然错误?,ios,objective-c,xcode,compiler-errors,linker-errors,Ios,Objective C,Xcode,Compiler Errors,Linker Errors,我知道有无数的Mach-O链接器错误帖子,我已经浏览了至少一打,试图找到解决我问题的方法。许多解决方案评论说,我必须“选中复选框”或检查编译源代码,以确保正确导入了我的.m文件,是的,所有这些都是我做的。我已经做了几个小时了,我似乎无法从以下错误中做出任何判断: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_JSQMessage", referenced from: objc-class-ref in ChatView

我知道有无数的Mach-O链接器错误帖子,我已经浏览了至少一打,试图找到解决我问题的方法。许多解决方案评论说,我必须“选中复选框”或检查编译源代码,以确保正确导入了我的.m文件,是的,所有这些都是我做的。我已经做了几个小时了,我似乎无法从以下错误中做出任何判断:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_JSQMessage", referenced from:
  objc-class-ref in ChatView.o
  "_OBJC_CLASS_$_JSQMessagesAvatarImageFactory", referenced from:
  objc-class-ref in ChatView.o
  "_OBJC_CLASS_$_JSQMessagesBubbleImageFactory", referenced from:
  objc-class-ref in ChatView.o
  "_OBJC_CLASS_$_JSQMessagesTimestampFormatter", referenced from:
  objc-class-ref in ChatView.o
  "_OBJC_CLASS_$_JSQMessagesViewController", referenced from:
  _OBJC_CLASS_$_ChatView in ChatView.o
  "_OBJC_CLASS_$_JSQPhotoMediaItem", referenced from:
  objc-class-ref in ChatView.o
  "_OBJC_CLASS_$_JSQSystemSoundPlayer", referenced from:
  objc-class-ref in ChatView.o
  "_OBJC_METACLASS_$_JSQMessagesViewController", referenced from:
  _OBJC_METACLASS_$_ChatView in ChatView.o
  "_kJSQMessagesCollectionViewCellLabelHeightDefault", referenced from:
  -[ChatView collectionView:layout:heightForCellTopLabelAtIndexPath:] in ChatView.o
  -[ChatView collectionView:layout:heightForMessageBubbleTopLabelAtIndexPath:] in ChatView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

任何关于上述错误修复的帮助或建议都将不胜感激,并最终使我能够摆脱这一棘手的障碍。提前谢谢你

看起来您缺少相关的“框架”。文档是否指定了所需的框架。我猜它需要消息传递功能。

通过cocoapod使用此库时,我也遇到了同样的错误。我在执行pod安装时注意到此警告消息:

[!]应用程序[Debug]目标覆盖
其他\u LDFLAGS
“Pods/目标支持”中定义的生成设置 文件/Pods/Pods.debug.xcconfig'。这可能会导致系统出现问题 椰子荚安装


我在项目的构建设置中将
$(继承的)
添加到
其他\u LDFLAGS
,解决了这个问题

有一个JSQMessagesViewController,但只需将其放入文件夹即可。不需要框架。有什么想法吗?我也有同样的错误。。你找到解决办法了吗?