3***@qq.com
3***@qq.com
  • 发布:2022-08-02 19:18
  • 更新:2022-09-14 10:00
  • 阅读:499

iOS版本打包,集成FCM库编译报错(must be used from main thread only)

分类:uni-app

下载最新的iOS项目工程(3.5.3),添加FCM相关模块,编译报错如下:
file:///Users/dcloud/srv/io.dcloud.package/ios/complier/src/libPDRCore/libPDRCore/Managers/PDRCoreAppFrame.m: runtime: UI API called from background thread: -[UIView alpha] must be used from main thread only

file:///Users/dcloud/srv/io.dcloud.package/ios/complier/src/libPDRCore/libPDRCore/Managers/PDRCoreAppFrame.m: runtime: UI API called from background thread: -[UIView frame] must be used from main thread only

file:///Users/dcloud/srv/io.dcloud.package/ios/complier/src/libUI/libUI/PGUi.mm: runtime: UI API called from background thread: -[UIView initWithFrame:] must be used from main thread only

2022-08-02 19:18 负责人:无 分享
已邀请:
s***@hotmail.com

s***@hotmail.com

这个是警告,报错应该是另外的地方。我之前也遇到过,后面换了个库就好了。但忘记具体怎样解决了。下载最新的demo工程试试。

该问题目前已经被锁定, 无法添加新回复