跳至主要內容
蒼葉森林

蒼葉森林

月份: 2020 年 10 月

發佈於 4 10 月, 2020

執行開發中 APP 時顯示「尚未信任開發者」

Problem

您的裝置管理設定不允許在此 iPAD 上使用開發者「Apple Development: [email protected] (XXXXXXXXXX)」的 APP。您可以在「設定」中允許使用這些 APP

Solution

設定 > 一般 > 裝置管理 > 開發者 APP > Apple Development: [email protected] > 信任 Apple Development: [email protected] > 信任

發佈於 4 10 月, 2020

Got error "Unhandled Exception: Bad state: No element…" when call "cameras.first" run on iOS Simulator

Reason

iOS Simulator CANNOT use Camera

Reference

  • flutter – availableCameras is empty in IOS but no problem in Android – Stack Overflow
  • How to access iOS simulator camera – Stack Overflow

發佈於 4 10 月, 2020

The await expression can only be used in an async function.

Wrong

void main() {
  final cameras = await availableCameras();
  runApp(MyApp());
}

Correct

Future<void> main() async {
  final cameras = await availableCameras();
  runApp(MyApp());
}
發佈於 4 10 月, 2020

Target of URI doesn't exist: 'package:camera/camera.dart'.

  • 確認 pubspec.yaml 的 dependencies 是否已加入 camera
dependencies:
  flutter:
    sdk: flutter
  camera:
  • 在專案資料夾下執行
flutter pub get
發佈於 2 10 月, 2020

AWS CLI

Install

sudo pip3 install awscl
aws configure

If you don’t have an access key, you can create one at IAM Management Console

AWS Access Key ID [None]: <YOUR ACCESS KEY>
AWS Secret Access Key [None]: <YOUR SECRET ACCESS KEY>
Default region name [None]: ap-northeast-1
Default output format [None]:

Use

S3

Sync all file from bucket to local

aws s3 sync s3://litawardab/ . --delete

Reference

  • Using high-level (s3) commands with the AWS CLI
  • IAM Management Console

近期文章

  • Hello world!
  • 執行開發中 APP 時顯示「尚未信任開發者」
  • Got error "Unhandled Exception: Bad state: No element…" when call "cameras.first" run on iOS Simulator
  • The await expression can only be used in an async function.
  • Target of URI doesn't exist: 'package:camera/camera.dart'.

近期留言

  • 「A WordPress Commenter」在〈Hello world!〉發佈留言

彙整

  • 2021 年 1 月
  • 2020 年 10 月
  • 2020 年 9 月
  • 2017 年 9 月
  • 2017 年 8 月
  • 2013 年 5 月
  • 2012 年 11 月
  • 2012 年 2 月
  • 2011 年 11 月
  • 2011 年 10 月
  • 2011 年 9 月
  • 2011 年 2 月

分類

  • Bitnami
  • Flutter
  • Laravel
  • MySQL
  • Programming
  • Uncategorized

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
本站採用 WordPress 建置