關於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'最後成功了

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