Tencent / MMKV

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, and POSIX.
Other
17.26k stars 1.89k forks source link

pod异常 #1382

Closed q760440238 closed 2 weeks ago

q760440238 commented 1 month ago

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;
 #  -------------------------------------------
lingol commented 1 month ago

Upgrade your CocoaPods client.

lingol commented 1 month ago

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

q760440238 commented 1 month ago

请说中文,cocadpods已经是最新了,只有m2和m3芯片的电脑上,遇到了这些问题,无法pod下载依赖库,ruby@3.0 已经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 commented 1 month ago

使用的flutter下载依赖

lingol commented 1 month ago

Delete your Podfile.lock and try again.

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

q760440238 commented 1 month ago

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

lingol commented 1 month ago

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