Flutter diff: /../Podfile.lock: No such file or directory AndroidStudio上的解决
Flutter項目在Xcode上運行的時候出現(xiàn)了 diff: /…/Podfile.lock: No such file or directory
解決方案
方案一:重新pod install
方案二:刪除workspace、podfile.lock、Pods/、~/Library/Developer/Xcode/DerivedData
方案三:
1、運行sudo gem install cocoapods-deintegrate安裝快速解除項目cocopods依賴的庫
2、安裝成功后,cd到你項目的更目錄運行pod deintegrate解除項目cocopods依賴
3、運行pod install,重新安裝cocopods
方法一在執(zhí)行pod install的時候會出現(xiàn)
[!] No `Podfile’ found in the project directory.
下面是解決方法
1.cd ios/
2.vim Podfile(創(chuàng)建Podfile)且輸入內(nèi)容
source’https://github.com/CocoaPods/Specs.git’
platform:ios,‘8.0’
inhibit_all_warnings!
target ‘testDemo’ do
pod ‘AFNetworking’, ‘~> 2.6.0’
end
3.按esc
4.再輸入:wq(走完第三步后無需找位置輸入:wq,輸入就行)
5.pod install
總結(jié)
以上是生活随笔為你收集整理的Flutter diff: /../Podfile.lock: No such file or directory AndroidStudio上的解决的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Cocoapods里Podfile与Po
- 下一篇: 九九乘法表java代码_java怎么实现