swift-长途推送-开辟标题

开发者 2024-9-7 10:11:57 110 0 来自 中国
1.标题

错误:Building for iOS Simulator, but the linked and embedded framework '***' was built for iOS + tvOS SimulatorSimulator-x86_64
设置:Build Settings -> Validate Workspace

1.png
先改为YES,举行编译乐成以后,再改为NO,举行编译
参考:
https://blog.csdn.net/guoyongming925/article/details/111320840
2.标题

错误:building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
设置:Build Settings -> Excluded Architectures

2.png
参考:
https://blog.csdn.net/Morris_/article/details/122077251
3.引入插件

3.png 4.MANS报错

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文件中添加
//keyrivacy - 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 删除即可(已删除完的样子)

参考:
https://www.jianshu.com/p/1fc3d0dc9f7a
您需要登录后才可以回帖 登录 | 立即注册

Powered by CangBaoKu v1.0 小黑屋藏宝库It社区( 冀ICP备14008649号 )

GMT+8, 2024-11-22 04:30, Processed in 0.166320 second(s), 35 queries.© 2003-2025 cbk Team.

快速回复 返回顶部 返回列表