IOS 14 으로 업그레이드 된 이후로 새로운 permission 을 추가해야 하는 것이 생겼다.
자세한 사항은 플러터 공식문서를 참고하자
https://flutter.dev/docs/development/add-to-app/ios/project-setup#local-network-privacy-permissions
에러중 하나는
[VERBOSE-2:FlutterObservatoryPublisher.mm(101)] Failed to register observatory port with mDNS with error -65555.
On iOS 14+, local network broadcast in apps need to be declared in the app's Info.plist. Debug and profile Flutter apps and modules host VM services on the local network to support debugging features such as hot reload and DevTools. To make your Flutter app or module attachable and debuggable, add a '_dartobservatory._tcp' value to the 'NSBonjourServices' key in your Info.plist for the Debug/Profile configurations.
info.list 에 아래와 같이 추가하면 에러 해결이 된다.
<key>NSBonjourServices</key>
<array>
<string>_dartobservatory._tcp</string>
</array>
최근댓글