pod 研究 + Could not build module + 大小写不敏感

1、Cloning spec repo `cocoapods` from `https://github.com/CocoaPods/Specs.git` 时间很长

我差不多更新了40分钟,耐心等待。
Downloading dependencies
Installing SecooFoundation 1.2.1 (was 1.1.3)
Installing SecooUtils 0.0.4 (was 0.0.3)
Installing libwebp 1.1.0 (source changed to `https://github.com/CocoaPods/Specs.git` from `trunk`)
Generating Pods project
Integrating client project
Pod installation complete! There are 18 dependencies from the Podfile and 18 total pods installed.

2、基本原理,更新spec库文件后,对比本地的,哪些需要更新就去下载那些资源

3、导入下面库报错,但在我们其他同事都没有,后面发现了其他报错,发现导入的UIKit报错,那里K写成小写了为UIkit,我把这个问解决了就好了,可能是下面的库里面导入了UIKit,导致这里不能走了。因为你的电脑不能识别大小写。切记切记,出现两次了。

#import <TXLiteAVSDK_Professional/TXLiteAVSDK.h>

#import <TXLiteAVSDK_Professional/TXVideoEditer.h>

4、大小写不敏感有其他方法解决,但上面这是一种方法

5、现象

1、在我的A项目,的pod能装weexSDK,用的bundle exec pod install,可以

2、在我的B项目或者单独建一个就不行

source 'https://github.com/CocoaPods/Specs.git'

#source 'https://cdn.cocoapods.org/'

换成这样就好了,

3、就是删除不干净,在虚拟目录里面删, pod install无效,但是我在实体目录里面,的pods里面删除了那个库,结果,重新pod install有效

4、但是在demo中就不一样了,demo中是可以在虚拟目录里删除掉的,然后,用pod install 有效

想法

1、能不能让全局装一个bundle呢

2、默认的source事这个吗,'https://cdn.cocoapods.org/'

3、为什么不加这个就不行

sudo gem install cocoapods -v 1.4.0

安装指定版本

5、bundle安装方法

gem install bundler

bundle init

bundle install

bundle exec pod install

6、遇到这么一个问题

本地有库,但是我用pod install时,发现还是没反应

但是我在podfile里面加了一个Source时,就好了。

7、Husky requires Node 8, can't run Git hook. The pre-rebase hook refused to re....

因为这个导致git rebase 失效

解决方法:npm uninstall husky

8、

猜你喜欢

转载自blog.csdn.net/u014544346/article/details/80969159