MMKV icon indicating copy to clipboard operation
MMKV copied to clipboard

pod异常

Open q760440238 opened this issue 1 year ago • 7 comments

CocoaPods' output: ↳

[!] Invalid `Podfile` file: undefined method `exists?' for class File.

 #  from /Users/qianyu/Desktop/event/xxx/xxx/ios/Podfile:10
 #  -------------------------------------------
 #    plugin_deps_file = File.expand_path(File.join(flutter_application_path, '..', '.flutter-plugins-dependencies'))
 >    if not File.exists?(plugin_deps_file)
 #      is_module = true;
 #  -------------------------------------------

q760440238 avatar Aug 12 '24 12:08 q760440238

Upgrade your CocoaPods client.

lingol avatar Aug 12 '24 18:08 lingol

Plus, that CocoaPods plugin is no longer needed for the latest MMKV flutter plugin.

lingol avatar Aug 12 '24 18:08 lingol

请说中文,cocadpods已经是最新了,只有m2和m3芯片的电脑上,遇到了这些问题,无法pod下载依赖库,[email protected] 已经pub get了 [!] Invalid Podfile file: Fail to find any mmkv plugin dependencies. If you're running pod install manually, make sure flutter pub get is executed first.

 #  from /Users/qianyu/Desktop/event/xxx/xxx/ios/Podfile:23
 #  -------------------------------------------
 #    end
 >    raise "Fail to find any mmkv plugin dependencies. If you're running pod install manually, make sure flutter pub get is executed first"
 #  end
 #  -------------------------------------------

q760440238 avatar Aug 13 '24 02:08 q760440238

使用的flutter下载依赖

q760440238 avatar Aug 13 '24 02:08 q760440238

Delete your Podfile.lock and try again.

PS: writing in English is convenient for all users that would possibly face the same problem.

lingol avatar Aug 13 '24 05:08 lingol

Delete your pod file.lock and try again.

PS: writing in English is convenient for all users that would possibly face the same problem. Unfortunately, podfile.lock did not even generate

q760440238 avatar Aug 13 '24 05:08 q760440238

After the Podfile.lock is deleted (or never been generated), you can try pod install --repo-update in your xxx/ios directory.

lingol avatar Aug 13 '24 06:08 lingol