【发布时间】:2019-03-22 17:50:15
【问题描述】:
在我将 shared_preferences 添加到 pubspec.yaml 后,iOS sumulator 从未成功构建。
我试过了
- 扑干净
- 升级 cocoapods
- pod 安装
- pod 卸载
- 吊舱解体
但他们都没有解决这个问题。
版本
~/i/fissus ❯❯❯ flutter --version master ✱
Flutter 0.10.1-pre.45 • channel master • https://github.com/flutter/flutter.git
Framework • revision bdc3dda5f2 (2 days ago) • 2018-10-15 15:03:02 -0700
Engine • revision 32f417db0d
Tools • Dart 2.1.0-dev.7.1.flutter-b99bcfd309
~/i/fissus ❯❯❯ dart --version master ✱
Dart VM version: 2.0.0 (Fri Aug 3 10:53:23 2018 +0200) on "macos_x64"
~/i/fissus ❯❯❯ pod --version master ✱
1.5.3
pubspec.yaml
name: fproject
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
rxdart: ^0.19.0
cupertino_icons: ^0.1.2
font_awesome_flutter: ^8.1.0
http: ^0.12.0
shared_preferences: ^0.4.3
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
fonts:
- family: Noto
fonts:
- asset: fonts/NotoSansCJKjp-Regular.otf
- asset: fonts/NotoSansCJKjp-Bold.otf
错误信息
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
ERROR: Invalid version /Users/ryu.ishikawa/issus/fissus/ios/./Podfile.lock
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
Could not build the application for the simulator.
Error launching application on iPhone XS Max.
Exited (sigterm)
备忘录
我已阅读此问题,但无法解决此问题。
【问题讨论】: