ios - 如何修复 [!] 在 `flutter_test` 中找不到 `.symlinks/plugins/flutter_test/ios` 的 podspec

标签 ios flutter cocoapods

我一直在用flutter,直到昨天才出现这样的错误。但是当我启动模拟器时,我收到了以下消息。

Error running pod install
Error launching application on iPhone 11.
Exited (sigterm)

所以我在寻找解决方案,然后我修改了iOS文件夹中的pod.file。 在终端中 pod update 后,我可以看到消息“[!] No podspec found for flutter_test in .symlinks/plugins/flutter_test/iOS ".

pod install 不起作用,我不知道为什么会出现此错误。 看来我必须更改 .symlinks/plugins/flutter_test/iOS 中的某些内容,但我仍然找不到相关说明。请任何人告诉我如何修复它。

最佳答案

这可能是因为您手动更改了插件的名称而忘记更改 .podspec 文件的名称。

You should change this name too

您可以从插件的 ios 文件夹中找到 podspec 文件。

不要忘记清理插件缓存并重新获取它。确保缓存中的此文件已重命名。

关于ios - 如何修复 [!] 在 `flutter_test` 中找不到 `.symlinks/plugins/flutter_test/ios` 的 podspec,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61864239/

相关文章:

ios - 如何计算核心数据中的连续天数?

ios - UIViewController presentModalViewController : animated: causes SIGABRT

ios - 你如何阻止 UIWindow 剪裁到旋转边界并显示 'black frame' ?

android - 如何在 Flutter 中为标签栏创建未选中的指示器

ios - `pod install` 之后的空 Pod header 文件夹

git - 我应该将 Pod 添加到 VCS 吗?

ios - 核心蓝牙 : Refreshing local name of an already discovered Peripheral

debugging - 如何从flutter应用程序发送打印日志?

flutter - 驱动程序错误 : Failed to fulfill Tap due to remote error flutter

ios - React Native 0.61 : With autolinking, 还需要在 Podfile 中添加行吗?