ITADN

LookinServer链接到苹果demo Landmarks编译不过

#191Opentong-zha16 创建于 2025-11-11
T
tong-zha16commented
苹果ios26推出liquid glass后,提供了一个demo app [Landmarks](https://developer.apple.com/documentation/SwiftUI/Landmarks-Building-an-app-with-Liquid-Glass?changes=l_2,l_2&language=objc,objc)。在该项目里我用下面的方法链接里lookinServer ``` pod 'LookinServer', :configurations => ['Debug'] pod 'LookinServer', :subspecs => ['Swift'], :configurations => ['Debug'] ``` 在pod install 之后,进入项目编译报了下面的错 ***/Landmarks/Pods/LookinServer/Src/Swift/LKS_SwiftTraceManager.swift:50:46 Main actor-isolated property 'layer' can not be referenced from a nonisolated context ***/Landmarks/Pods/LookinServer/Src/Swift/LKS_SwiftTraceManager.swift:52:81 Main actor-isolated property 'layer' can not be referenced from a nonisolated context 但如果删除第二行对Swift的优化,则能编译通过。想知道出了什么问题,该怎么解决。谢谢!
0 条评论