Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What is going on with this article?
@paul_soundprj

Flutter1.22.1 iOS14.0.1 実機実効エラーが実機再起動で解消した 「Your Xcode version may be too old for your iOS version.」

iPhone11 Pro Max 256GB
iOS14にして、Android Studio4.1にしたら実機ビルドが通らなくなる

Android Studio 4.1は、一度起動したがプラグインやら日本語やら入れてたら起動しなくなる。
Libraryのデータも消したけど駄目だから仕方なく4.01に戻す。

表示されたキーワードで、検索するも起動せず実機の再起動でなぜか治りました。
タイトル以外のエラー内容が原因なのかもしれませんが詳細不明

結局、実機の再起動で解消しました。

エラー内容

Launching lib/main.dart on iPhone 11 Pro Max 256GB Space Gray in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 55XW39K6SQ
Running Xcode build...
Xcode build done.                                           135.5s
Installing and launching...
═══════════════════════════════════════════════════════════════════════════════════
Error launching app. Try launching from within Xcode via:
    open ios/Runner.xcworkspace

Your Xcode version may be too old for your iOS version.
═══════════════════════════════════════════════════════════════════════════════════
2020-10-16 09:18:09.918 ios-deploy[57698:1126648] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, serviceName, NULL, &dbgServiceConnection)
Could not run build/ios/iphoneos/Runner.app on 00008030-00164D202628802E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Error launching application on iPhone 11 Pro Max 256GB Space Gray.

参考に環境を載せておきます。

環境

OS

macOS Catalina
10.15.7(19H2)

image.png

※ 古いMac Miniですが、メモリを16GBにしておいたことと、HDDが使い物にならなくなってきたので外部接続のSSDから起動してますが、それなりに使えてます。

Android Studio

Android Studio 4.0.1
Build #AI-193.6911.18.40.6626763, built on June 25, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.7
GC: ParNew, ConcurrentMarkSweep
Memory: 1246M
Cores: 4
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: Dart, io.flutter

Flutter Doctor

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.1, on Mac OS X 10.15.7 19H2, locale ja-JP)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.50.1)
[✓] Connected device (4 available)
    ! Device emulator-5562 is offline.

• No issues found!

ビルド周りが不安定なのが困りものですね。
自分のバグならまだしも、それ以外だと動かなくなると原因探すのに時間がかかる上になぜ治るのかよくわからない。
iOS SimulatorだけでやってるとAndroidで全然動かなくなってたりするので両方確認しつつ作業する必要がある。

2
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
paul_soundprj
Flutterでの楽器学習アプリ開発アカウントです。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
2
Help us understand the problem. What is going on with this article?