错误:Building for iOS Simulator, but the linked and embedded framework '***' was built for iOS + tvOS SimulatorSimulator-x86_64
设置:Build Settings -> Validate Workspace
错误:building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
设置:Build Settings -> Excluded Architectures
Failed to register observatory port with mDNS with error -65555.
(1)将info.plist文件复制并改名为info-Release.plist
(2)将info.plist文件改名为info-Debug.plist
(3)在info-Debug.plist文件中添加
//key:
Privacy - Local Network Usage Description
//value:
Allow Flutter tools on your computer to connect and debug your application.This prompt will not appear on release builds.
//key:
Bonjour services
//value:
_dartobservatory._tcp
(4)将info.plist的路径改为
Runner/Info-$(CONFIGURATION).plist
(5)在 target’s -> Build Settings > Build Phases > Copy Bundle Resources build phase, 如果有Info-Release.plist 删除即可(已删除完的样子)