繁体   English   中英

错误 UTF-8 pod 安装和 Phared 首选项 iOS Flutter

[英]Error UTF-8 pod install & Phared Preferences iOS Flutter

我运行pod install

Android Studio中的终端返回

WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.

Consider adding the following to ~/.profile:

export LANG=en_US.UTF-8

安装package时出现错误

我通过 Mac Terminal 运行项目

Xcode's output:
↳
/Users/mac/Desktop/app/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal
error: module 'shared_preferences_ios' not found
@import shared_preferences_ios;
 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
warning: Capabilities for Signing & Capabilities may not function correctly
because its entitlements use a placeholder team ID. To resolve this, select
a development team in the Runner editor. (in target 'Runner' from project
'Runner')

Could not build the application for the simulator.
Error launching application on iPhone 8.

我该如何解决?

打开终端(cmd+空格)。

输入这一行:-

在此处输入图像描述

~> 须藤宝石安装 cocoapods

有关 cocoapods 的更多信息,请访问:-

点击这里

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM