Xcode - 检查扩展的类型 [英] Xcode - check the type of extension
本文介绍了Xcode - 检查扩展的类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 iOS 中,
解决方案
我终于发现我可以在每个扩展的 Info.plist 中查看扩展的类型.
例如,这些标识符分别属于通知服务扩展和通知内容扩展.
NSExtension ->NSExtensionPointIdentifier = com.apple.usernotifications.serviceNSExtension ->NSExtensionPointIdentifier = com.apple.usernotifications.content-extension
In iOS there are several app extensions described here and I would like to know how to distinguish each type.
In my current project I have a lot of extensions without a descriptive name. How could i figure out what type of extension is each one of them?
解决方案
I finally I figure out that I can check the type of extension in the Info.plist of each extension.
For example, these identifiers belongs to Notification Service Extension and Notification Content Extension respectively.
NSExtension -> NSExtensionPointIdentifier = com.apple.usernotifications.service
NSExtension -> NSExtensionPointIdentifier = com.apple.usernotifications.content-extension
这篇关于Xcode - 检查扩展的类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文