在macOS应用程序中,我使用此代码在Application Support文件夹中创建一个目录。如何在Swift中以编程方式获取应用程序ID?
let directoryURL = appSupportURL.appendingPathComponent("com.myCompany.myApp").appendingPathComponent("Documents")
如何串com.myCompany.myApp斯威夫特编程获得?
我看到了这个问题,但我不知道如何使用它在我的MacOS斯威夫特应用程序:Access App Identifier Prefix programmatically
如果你使用沙盒,那么这是一个没有问题的问题。您的应用程序支持文件夹是您自己的。 – matt