我一直试图将https://github.com/jessesquires/JSQMessagesViewController添加到我的项目中,但是它总是出现一个链接错误。
clang: error: linker command failed with exit code 1 (use -v to see invocation)我不知道我做错了什么,我似乎无法将演示添加到一个空白项目中,并让它开始工作。
这就是我要做的:
我错过了哪一步?我在GitHub安装过程中看到了这样的信息:
#import <JSQMessagesViewController/JSQMessages.h> // import all the things但我不知道那是什么意思。我想这意味着更新您的头、seach路径,但是当我在Build下面查看时,它已经指向了豆荚中的头文件。
在添加第三方库时,有明显的遗漏吗?
发布于 2015-03-07 18:42:50
我通过cocoapods在我的项目中安装了JSQMessagesViewController,我没有获得任何错误- installed.Please成功地尝试了以下步骤:
这将安装与JSQMessagesViewController和JSQSystemSoundPlayer相关的依赖库。关闭该项目并转到您的项目文件夹后,使用xcodespace : yourProject.xcworkspace的工作区整数。希望这篇文章能帮到你。
发布于 2015-09-21 01:57:41
1.从Xcode打开一个全新的项目,不要删除任何东西。
2.你的项目的cd~/根路径
3.编辑你的Podfile如果你已经有一个
Podfile
platform :ios, '7.0'
pod 'JSQMessagesViewController'
pod 'JSQSystemSoundPlayer'4.运行pod install
5.开放yourproject.xcworkspace
6.Build
https://stackoverflow.com/questions/28917982
复制相似问题