前提・実現したいこと
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に変更したら、以前に直したエラーに戻ってしまう気がしています。それともこのエラー文は私が考えていることとは違う、、、?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。