質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
Flutter

Flutterは、iOSとAndroidのアプリを同じコードで開発するためのフレームワークです。オープンソースで開発言語はDart。双方のプラットフォームにおける高度な実行パフォーマンスと開発効率を提供することを目的としています。

ビルド

ソースコードを単体で実行可能なソフトウェアへ変換する過程をビルド(build)と呼びます

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

テスト駆動開発

テスト駆動開発は、 プログラム開発手法の一種で、 プログラムに必要な各機能をテストとして書き、 そのテストが動作する必要最低限な実装を行い コードを洗練させる、といったサイクルを繰り返す手法の事です。

iPhone

iPhoneとは、アップル社が開発・販売しているスマートフォンです。 同社のデジタルオーディオプレーヤーiPodの機能、電話機能、インターネットやメールなどのWeb通信機能の3つをドッキングした機器です。

Q&A

解決済

1回答

4693閲覧

iphoneをつかって実機でビルドしながら開発したい

nk1

総合スコア42

Flutter

Flutterは、iOSとAndroidのアプリを同じコードで開発するためのフレームワークです。オープンソースで開発言語はDart。双方のプラットフォームにおける高度な実行パフォーマンスと開発効率を提供することを目的としています。

ビルド

ソースコードを単体で実行可能なソフトウェアへ変換する過程をビルド(build)と呼びます

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

テスト駆動開発

テスト駆動開発は、 プログラム開発手法の一種で、 プログラムに必要な各機能をテストとして書き、 そのテストが動作する必要最低限な実装を行い コードを洗練させる、といったサイクルを繰り返す手法の事です。

iPhone

iPhoneとは、アップル社が開発・販売しているスマートフォンです。 同社のデジタルオーディオプレーヤーiPodの機能、電話機能、インターネットやメールなどのWeb通信機能の3つをドッキングした機器です。

0グッド

0クリップ

投稿2021/09/20 07:18

前提・実現したいこと

flutterで開発しており、カメラをもちいたいのでiosシミュレーターでなく、実機をつかいたいです。
とりあえず、iphoneXSをMacBookAirにつなぎ、ググりながらすすめると
Failed to register bundle identifier.とNo profiles for 'App名’ were found
というエラーがXcode上ででたので、下記のサイトにしたがい、bundle identifierに2021をつけて固有のものにしました。
https://god48.com/xcode-failed-to-register-bundle-identifier
https://medium.com/front-end-weekly/how-to-test-your-flutter-ios-app-on-your-ios-device-75924bfd75a8
ところが、上記のエラーは解消したのですが、フラッターを走らせると、下記のようなエラーがコンソールにでるようになってしまいました。
実機の方はアプリが立ち上がって真っ白な画面が表示されます。

実現したいことはエラーを解決して実機でビルドできるようにすることです。

発生している問題・エラーメッセージ

Console

1Launching lib/main.dart on iPhone715 in debug mode... 2Automatically signing iOS for device deployment using specified development team in Xcode project: 69WGRHB23R 3Running Xcode build... 4Xcode build done. 9.5s 5Installing and launching... 6(lldb) 2021-09-20 15:54:19.633788+0900 Runner[10704:3233787] 8.6.0 - [Firebase/Core][I-COR000005] No app has been configured yet. 78.6.0 - [Firebase/Core][I-COR000008] The project's Bundle ID is inconsistent with either the Bundle ID in 'GoogleService-Info.plist', or the Bundle ID in the options if you are using a customized options. To ensure that everything can be configured correctly, you may need to make the Bundle IDs consistent. To continue with this plist file, you may change your app's bundle identifier to 'com.example.ocr'. Or you can download a new configuration file that matches your bundle identifier from https://console.firebase.google.com/ and replace the current one. 8[connection] nw_endpoint_handler_set_adaptive_read_handler [C1.1 2404:6800:4004:80c::200a.443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 9[connection] nw_endpoint_handler_set_adaptive_write_handler [C1.1 2404:6800:4004:80c::200a.443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed 10Connecting to the VM Service is taking longer than expected... 11Still attempting to connect to the VM Service... 12If you do NOT see the Flutter application running, it might have crashed. The device logs (e.g. from adb or XCode) might have more details. 13If you do see the Flutter application running on the device, try re-running with --host-vmservice-port to use a specific port known to be available. 14[connection] nw_endpoint_handler_set_adaptive_read_handler [C2.1 2404:6800:4004:821::200a.443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed 15[connection] nw_endpoint_handler_set_adaptive_write_handler [C2.1 2404:6800:4004:821::200a.443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed 16Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 50954 17This was attempt #50. Will retry in 0:00:01.600000. 18Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 51103 19This was attempt #100. Will retry in 0:00:01.600000. 20Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 51202 21This was attempt #150. Will retry in 0:00:01.600000. 22Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 51295 23This was attempt #200. Will retry in 0:00:01.600000. 24Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 51388 25This was attempt #250. Will retry in 0:00:01.600000. 26Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 51517 27This was attempt #300. Will retry in 0:00:01.600000. 28Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 51609 29This was attempt #350. Will retry in 0:00:01.600000. 30Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 51705 31This was attempt #400. Will retry in 0:00:01.600000. 32Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 51795 33This was attempt #450. Will retry in 0:00:01.600000. 34Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 51885 35This was attempt #500. Will retry in 0:00:01.600000. 36Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 51975 37This was attempt #550. Will retry in 0:00:01.600000.

試したこと

試してみたことではないのですが、エラーの文章にあるThe project's Bundle ID is inconsistent with either the Bundle ID in 'GoogleService-Info.plist', or the Bundle ID in the options if you are using a customized options.
にしたがって、xcodeのsigningのBundle IdentifierをGoogleService-Info.plistのBundleIDに変更したら、以前に直したエラーに戻ってしまう気がしています。それともこのエラー文は私が考えていることとは違う、、、?

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

ごちゃごちゃいじっていたら実機で開発できるようになりました。どれが解決の理由になったかはわかりませんが、ためしたことは以下です。
・PCを再起動
・flutterのチャンネルをstableからbetaに変更
・flutter cleanをした
・info.plistのカメラと写真の許可を与えるkeyを再度設定し直した
・AndroidStudioではなく、XcodeからBuildした
以上をこなしたら、AndroidStudioからは実機でBuildすることはできませんでしたが、Xcodeからは実機で開発できるようになりました。(Xcodeのverは12です)

投稿2021/09/21 03:19

nk1

総合スコア42

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問