Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module 'AVOSCloud' not found #41

Open
Dada08 opened this issue Apr 19, 2016 · 10 comments
Open

Module 'AVOSCloud' not found #41

Dada08 opened this issue Apr 19, 2016 · 10 comments
Labels

Comments

@Dada08
Copy link

Dada08 commented Apr 19, 2016

下载之后,按照步骤 pod install 之后,打开 xcode 运行提示 Module 'AVOSCloud' not found,pod install 时每个库都安装成功了

@ChenYilong
Copy link
Contributor

请在终端里运行 pod search AVOSCloud,然后看下能否搜到AVOSCloud

@Dada08
Copy link
Author

Dada08 commented Apr 19, 2016

可以搜到,有很多条。
Xcode 功能目录的 Pods-Pods 目录下也有AVOSCloud

搜索结果如下:
`-> AVOSCloud (3.2.7)
LeanCloud iOS SDK for mobile backend.
pod 'AVOSCloud', '~> 3.2.7'

  • Homepage: https://leancloud.cn
  • Source: https://download.leancloud.cn/sdk/iOS/release-v3.2.7/Static/AVOSCloud.framework.zip
  • Versions: 3.2.7, 3.2.6, 3.2.5.1, 3.2.5, 3.2.4.1, 3.2.4, 3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.1.7.1,
    3.1.7, 3.1.6.8, 3.1.6.7, 3.1.6.6, 3.1.6.5, 3.1.6.4, 3.1.6.3, 3.1.6.2, 3.1.6.1, 3.1.6, 3.1.5.2,
    3.1.5.1, 3.1.5, 3.1.4, 3.1.3.6, 3.1.3.5, 3.1.3.4, 3.1.3.3, 3.1.3.2, 3.1.3.1, 3.1.3, 3.1.2.9,
    3.1.2.8, 3.1.2.7, 3.1.2.6, 3.1.2.5, 3.1.2.4, 3.1.2.3, 3.1.2.2, 3.1.2.1, 3.1.2, 3.1.1.1, 3.1.1,
    3.1.0, 3.0.3, 3.0.2, 3.0.1, 3.0.0, 2.6.11.2, 2.6.11.1, 2.6.11, 2.6.10.2, 2.6.10.1, 2.6.10,
    2.6.9.1, 2.6.9, 2.6.8.1, 2.6.8, 2.6.7, 2.6.6, 2.6.5.1, 2.6.5, 2.6.4, 2.6.3, 2.6.2.1, 2.6.2,
    2.6.1, 2.6.0, 2.5.9.1, 2.5.9, 2.5.8.1, 2.5.8, 2.5.7, 2.5.6, 2.5.5, 2.5.3, 2.5.2, 2.5.1, 2.5.0,
    2.4.1, 2.4.0, 2.3.2, 2.3.0, 2.2.1, 2.2.0, 2.1.2, 2.1.1, 2.1.0, 2.0.2, 2.0.0, 1.4.4, 1.4.3, 1.4.2,
    1.4.1, 1.4.0, 1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.2.beta, 1.3.1, 1.3.0, 1.2.0, 1.2.0.beta, 1.1.0,
    1.0.0 [master repo]`

@ChenYilong
Copy link
Contributor

Module XXX not found 一般是因为打开了 .xcodeproj 文件,正确的做法是只打开 .xcworkspace 文件。你可以试试。也可以试试清除缓存,clean项目。

而且注意 leancloud-social-ios 该pod已经依赖了 AVOSCloud 这个库。

@Dada08
Copy link
Author

Dada08 commented Apr 20, 2016

很遗憾,这些方法我都试过了,问题还是存在。

打开的是LeanCloudSocial.xcworkspace文件,clean 过项目,都没有用。

确实在工程目录里已经看到 AVOSCloud 库了。

对了,出错的文件为 AVUser+SNS.h,这是截图
2016-04-20 9 13 15

@ChenYilong
Copy link
Contributor

这个问题,我们之前遇到过,请删除
项目根目录下的这个文件

Podfile.lock

删除这个文件夹,

Pods

然后重新pod install

@bigParis
Copy link

@ChenYilong 这个问题,我们之前遇到过,请删除
项目根目录下的这个文件

Podfile.lock
删除这个文件夹,

Pods
并没有用

@ChenYilong
Copy link
Contributor

这样吧,你直接建一个demo,单独集成/leancloud-social-ios,试下行不行。因为我们这里测试都是没有问题的,你排除下是这个库的原因。

@bigParis
Copy link

@ChenYilong 单独集成没问题, 问题是@import AVOSCloud
改成 #import <AVOSCloud/AVOSCloud.h>就好了

@ChenYilong
Copy link
Contributor

问题解决了就好。

@bottotl
Copy link

bottotl commented May 14, 2016

@import AVOSCloud
修改为
#import <AVOSCloud/AVOSCloud.h>
解决问题

@whocpox
Copy link

whocpox commented Jun 4, 2016

请问一下,我pod了LeanCloudSocial后,也是提示要把#import <AVuser+sns.h> 改成 "AVuser+sns.h"
,我改了后一直提示 "OBJC_CLASS$_AVOSCloudSNS", referenced from:,我应该怎么解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants