简体   繁体   English

如何在iOS或OS X下使用Swift活动跟踪

[英]How to use Activity Trace with Swift under iOS or OS X

I am trying to figure out how to use Activity Tracing with Swift under iOS and OS X. Has anyone managed to do this and if so can you provide details of what the Swift API is and where the documentation would be found. 我试图弄清楚如何在iOS和OS X下使用Swift进行活动跟踪。有没有人设法做到这一点,如果是这样,你能提供Swift API的详细信息以及文档的位置。

Thanks 谢谢

Please refer the following link. 请参考以下链接。 https://www.objc.io/issues/19-debugging/activity-tracing/ https://www.objc.io/issues/19-debugging/activity-tracing/

It is mentioned that "If you want to use it now within a Swift project, you would have to create an Objective-C wrapper around it and make this API accessible in Swift using the bridging header." 有人提到“如果你想在Swift项目中使用它,你必须在它周围创建一个Objective-C包装器,并使用桥接头在Swift中访问这个API。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM