最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

解決Flutter出現(xiàn)CocoaPods報錯情況(Mac和IOS)

 更新時間:2023年08月09日 10:00:18   作者:ClearBoth  
這篇文章主要為大家介紹了解決Flutter出現(xiàn)CocoaPods報錯情況(Mac和IOS)的方法詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪

錯誤情況

Launching lib/main.dart on iPad Pro (12.9-inch) (5th generation) in debug mode...
main.dart:1
CocoaPods' output:
?
      Preparing
    Analyzing dependencies
    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    Finding Podfile changes
      A image_editor_dove
     - Flutter
      - file_picker
      - flutter_image_compress
      - flutter_secure_storage
      - image_gallery_saver
      - image_picker_ios
      - path_provider_foundation
      - sqflite
    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `file_picker` from `.symlinks/plugins/file_picker/ios`
    -> Fetching podspec for `flutter_image_compress` from `.symlinks/plugins/flutter_image_compress/ios`
    -> Fetching podspec for `flutter_secure_storage` from `.symlinks/plugins/flutter_secure_storage/ios`
    -> Fetching podspec for `image_editor_dove` from `.symlinks/plugins/image_editor_dove/ios`
    [!] No podspec found for `image_editor_dove` in `.symlinks/plugins/image_editor_dove/ios`
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/external_sources/path_source.rb:14:in `block in fetch'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/external_sources/path_source.rb:11:in `fetch'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:997:in `fetch_external_source'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:976:in `block (2 levels) in fetch_external_sources'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:975:in `each'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:975:in `block in fetch_external_sources'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:974:in `fetch_external_sources'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:118:in `analyze'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:422:in `analyze'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:162:in `install!'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/command/install.rb:52:in `run'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:52:in `run'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.12.0/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:23:in `load'
    /usr/local/bin/pod:23:in `<main>'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/bin/ruby_executable_hooks:22:in `eval'
    /Users/shixin/.rvm/rubies/ruby-2.7.2/bin/ruby_executable_hooks:22:in `<main>'

分析解決

這種情況,首先在終端cd進(jìn)入到Flutter項目相應(yīng)的ios或者mac目錄下

刪除對應(yīng)的Podfile.lock文件

運(yùn)行

pod install --verbose --no-repo-update

在運(yùn)行中,又可能會報錯

情況1:

Specs satisfying the flutter_sound (from.symlinks/plugins/flutter_sound/ios) dependency were found, but they required a higher minimum deployment target.

解決辦法

這種的,是包的版本問題

1.去目錄的Pods - Local Podspecs - ”包名“ 打開以后找到

```
"platforms": {
    "osx": "10.14"
  },
```

2.打開目錄的PodFile,在第一行,

`platform :osx, '10.11'`

3.報錯是因為包的平臺版本要求跟我們定義的平臺版本要求不一樣,版本太低,所以改成跟包是一樣的版本就可以了,保存以后繼續(xù)重復(fù)情況1的pod install --verbose --no-repo-update命令

4.可能還會報錯,這個時候全局搜索一下相應(yīng)的配置,可能在Runner.xcodeproj的project.pbxproj中還有沒有改正過來的平臺版本號,改正一下。

5.現(xiàn)在再去更新命令,就會重新生成Podfile.lock文件了,并且可以重新啟動

情況2:

[!] No podspec found for `device_info_plus` in `../hmc_flutter_module/.ios/.symlinks/plugins/device_info_plus/ios`

解決辦法:

如圖:

以上就是解決Flutter出現(xiàn)CocoaPods報錯情況(Mac和IOS)的詳細(xì)內(nèi)容,更多關(guān)于Flutter CocoaPods報錯解決的資料請關(guān)注腳本之家其它相關(guān)文章!

相關(guān)文章

  • Objective-C處理空字符串和頁面?zhèn)髦导白远x拷貝

    Objective-C處理空字符串和頁面?zhèn)髦导白远x拷貝

    這篇文章主要介紹了Objective-C處理空字符串和頁面?zhèn)髦导白远x拷貝的相關(guān)方法,在iOS應(yīng)用項目開發(fā)中經(jīng)常會用到,需要的朋友可以參考下
    2016-01-01
  • IOS 獲取網(wǎng)絡(luò)圖片大小實例詳解

    IOS 獲取網(wǎng)絡(luò)圖片大小實例詳解

    這篇文章主要介紹了IOS 獲取網(wǎng)絡(luò)圖片大小實例詳解的相關(guān)資料,需要的朋友可以參考下
    2017-06-06
  • iphone的safari瀏覽器中實現(xiàn)全屏瀏覽的方法

    iphone的safari瀏覽器中實現(xiàn)全屏瀏覽的方法

    這篇文章主要介紹了iphone的safari瀏覽器中實現(xiàn)全屏瀏覽的方法,同時介紹了Add to Home Screen功能的實現(xiàn)方法,需要的朋友可以參考下
    2014-06-06
  • iOS觸摸事件UITouch應(yīng)用詳解

    iOS觸摸事件UITouch應(yīng)用詳解

    這篇文章主要為大家詳細(xì)介紹了iOS觸摸事件UITouch的應(yīng)用,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2017-08-08
  • iOS利用CALayer實現(xiàn)動畫加載的效果

    iOS利用CALayer實現(xiàn)動畫加載的效果

    網(wǎng)上關(guān)于動畫加載的效果大多每一個圓圈都是使用UIView,因為這種容易控制,但是這里用的是CALayer,文中給出了詳細(xì)的實現(xiàn)示例代碼,相信會對大家的學(xué)習(xí)和理解很有幫助,感興趣的朋友們下面來一起看看吧。
    2016-10-10
  • iOS實現(xiàn)點(diǎn)擊微信頭像(放大、縮放、保存)效果

    iOS實現(xiàn)點(diǎn)擊微信頭像(放大、縮放、保存)效果

    最近公司產(chǎn)品需要實現(xiàn)點(diǎn)擊個人主頁頭像可以放大頭像、縮放頭像、保存頭像效果(和點(diǎn)擊微信個人頭像類似),故找個時間實現(xiàn)一下,記錄下來,供自己查看也給有需要的大家做個參考。下面來一起看看吧。
    2017-03-03
  • iOS開發(fā)之UITableView詳解

    iOS開發(fā)之UITableView詳解

    在iOS開發(fā)中UITableView可以說是使用最廣泛的控件,我們平時使用的軟件中到處都可以看到它的影子,類似于微信、QQ、新浪微博等軟件基本上隨處都是UITableView。當(dāng)然它的廣泛使用自然離不開它強(qiáng)大的功能,今天這篇文章將針對UITableView重點(diǎn)展開討論
    2016-04-04
  • iOS調(diào)試Block引用對象無法被釋放的小技巧分享

    iOS調(diào)試Block引用對象無法被釋放的小技巧分享

    這篇文章主要給大家分享介紹了關(guān)于iOS調(diào)試Block引用對象無法被釋放的小技巧,文中通過示例代碼介紹的非常詳細(xì),對各位iOS開發(fā)者們具有一定的參考學(xué)習(xí)價值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-09-09
  • 移動端固定輸入框在底部會被鍵盤遮擋的解決方法(必看篇)

    移動端固定輸入框在底部會被鍵盤遮擋的解決方法(必看篇)

    下面小編就為大家分享關(guān)于移動端固定輸入框在底部會被鍵盤遮擋的解決方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2017-12-12
  • IOS中對Url進(jìn)行編碼和解碼示例

    IOS中對Url進(jìn)行編碼和解碼示例

    本篇文章主要介紹了IOS中對Url進(jìn)行編碼和解碼示例,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2016-11-11

最新評論

含山县| 宁乡县| 阆中市| 略阳县| 杂多县| 且末县| 东兰县| 云安县| 平舆县| 德保县| 威宁| 开江县| 宝丰县| 巨野县| 左贡县| 任丘市| 明水县| 商洛市| 忻州市| 肇庆市| 常山县| 诏安县| 清原| 湖州市| 湾仔区| 云龙县| 遵化市| 凤阳县| 余江县| 九龙坡区| 双城市| 仙桃市| 普陀区| 巴塘县| 潼关县| 镇安县| 海城市| 遂溪县| 盱眙县| 乌海市| 察雅县|