我贴一个我这边测试的例子给你看看吧:
第一步,修改 Podfile 文件
target 'LeanMessagePlayground' do
pod 'AVOSCloudIM'
end
target 'LeanMessagePlaygroundTests' do
end
第二步,执行 pod update,输出如下:
$ pod update
Update all pods
Analyzing dependencies
CocoaPods 0.38.0.beta.2 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.
Downloading dependencies
Installing AVOSCloud (3.1.2.6)
Installing AVOSCloudIM (3.1.2.6)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `LeanMessagePlayground.xcworkspace` for this project from now on.
第三步,在 appdelegate 文件中加入头文件,如下:
#import "AppDelegate.h"
#import <AVOSCloud/AVOSCloud.h>
#import <AVOSCloudIM/AVOSCloudIM.h>
第四步,编译,运行。一切正常。
要不你先彻底 build clean 一下,然后再重新编译一遍看看?