【问题标题】:Error UTF-8 pod install & Phared Preferences iOS Flutter错误 UTF-8 pod install & Phred Preferences iOS Flutter
【发布时间】:2022-01-13 22:54:15
【问题描述】:

我跑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

安装包时出现错误Share Preferences

我通过 Mac Terminal get 运行项目

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.

我该如何解决?

【问题讨论】:

  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: ios flutter dart mobile


【解决方案1】:

打开终端(cmd+空格)。

输入这一行:-

~> sudo gem install cocoapods

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

click here

【讨论】:

    猜你喜欢
    • 2021-03-07
    • 2022-08-23
    • 2021-02-26
    • 2021-03-25
    • 1970-01-01
    • 2019-07-21
    • 2022-11-12
    • 1970-01-01
    • 2021-08-25
    相关资源
    最近更新 更多