关于iOS端引入Myscript 的爬坑过程(pod install error)

 

1.跳入坑的过程(传统正常cocoapods操作) 

(1)Podfile里面加入pod

#官方demo里面写的  
pod 'MyScriptInteractiveInk-UIReferenceImplementation', :path => '../..'

(2)更新

//命令行里面
pod install

入坑(pod 失败):

[!] Unable to find a specification for `MyScriptInteractiveInk-UIReferenceImplementation`



You have either:

 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.

 * mistyped the name or version.

 * not added the source repo that hosts the Podspec to your Podfile.

2.爬坑过程

(1)错误尝试pod 失败的方案:

pod install --repo-update 和更新cocoapods版本

.....

(2)实际问题是:

项目里面用到了私有库需要把私库podspec 和LICENSE和一个文件夹一起引入

拽人项目后根据MyScriptInteractiveInk-UIReferenceImplementation.podspec 位置配置pod里面路径

  #MyScriptInteractiveInk-UIReferenceImplementation.podspec在跟目录下所以用'.'
 pod 'MyScriptInteractiveInk-UIReferenceImplementation', :path => '.'

3最后还有一个小坑***

我原理项目设置的是platform :ios, ‘9.0'  失败了需要设置高的platform :ios, ‘10.0'最后成功了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章