Of course! Thanks a lot for this Quinn! π€π
Hi Quinn :)
Great to see an example of how you have save a FormatStyle in variable! I really like the new format but it is sometimes really hard to use it without concrete examples...
So what if I would like to have date.formatted(date: .long, time: .standard) but with TimeZone(secondsFromGMT: 0)?
Is that possible to combine those two easily?
Cheers!
Post not yet marked as solved
Hi :)
I was fiddling with the list of Bonjour Services in Info.plist and couldn't get it to work... But then I used the Console app and was able to see the exact string... turned out that I needed a '.' in the end...
From Console I got: "App Info.plist(NSBonjourServices) does not allow '_myprotocol._http._tcp.' for (My App)"
Then I just pasted that protocol name into Info.plist and it started to work :D
(It might be 'my' protocol name was illformed from the beginning.)
Happy days :)
Post not yet marked as solved
Hi again :)
I'm really sorry; just reran and found that the paths were actually different π
I've added this code piece to show the difference:
NSLog(@"Quinn: NSTemporaryDirectory(): %@", NSTemporaryDirectory());
NSError *error = nil;
NSDictionary *dictionary = [NSFileManager.defaultManager attributesOfItemAtPath:NSTemporaryDirectory() error:&error];
NSLog(@"Quinn: error: %@", error);
NSLog(@"Quinn: dictionary: %@", dictionary);
Debug:
2021-06-23 12:35:30.315 QLICProcessor[71421:3730283] Quinn: NSTemporaryDirectory(): /var/folders/_h/cbm2fp054c9byr188mdyxhw00000gp/T/com.apple.quicklook.qlmanage/
2021-06-23 12:35:30.315 QLICProcessor[71421:3730283] Quinn: error: (null)
2021-06-23 12:35:30.316 QLICProcessor[71421:3730283] Quinn: dictionary: {
NSFileCreationDate = "2021-06-18 20:22:23 +0000";
NSFileExtensionHidden = 0;
NSFileGroupOwnerAccountID = 20;
NSFileGroupOwnerAccountName = staff;
NSFileModificationDate = "2021-06-23 10:30:11 +0000";
NSFileOwnerAccountID = 502;
NSFileOwnerAccountName = jsc;
NSFilePosixPermissions = 448;
NSFileProtectionKey = NSFileProtectionCompleteUntilFirstUserAuthentication;
NSFileReferenceCount = 16;
NSFileSize = 512;
NSFileSystemFileNumber = 32688057;
NSFileSystemNumber = 16777220;
NSFileType = NSFileTypeDirectory;
}
and archive:
2021-06-23 12:28:13.608 QLICProcessor[62356:3702628] Quinn: NSTemporaryDirectory(): /var/folders/_h/cbm2fp054c9byr188mdyxhw00000gp/T/
2021-06-23 12:28:13.608 QLICProcessor[62356:3702628] Quinn: error: (null)
2021-06-23 12:28:13.609 QLICProcessor[62356:3702628] Quinn: dictionary: {
NSFileCreationDate = "2021-05-17 13:09:39 +0000";
NSFileExtendedAttributes = {
"com.apple.rootless" = {length = 7, bytes = 0x666f6c64657273};
};
NSFileExtensionHidden = 0;
NSFileGroupOwnerAccountID = 20;
NSFileGroupOwnerAccountName = staff;
NSFileModificationDate = "2021-06-23 10:20:49 +0000";
NSFileOwnerAccountID = 502;
NSFileOwnerAccountName = jsc;
NSFilePosixPermissions = 448;
NSFileProtectionKey = NSFileProtectionCompleteUntilFirstUserAuthentication;
NSFileReferenceCount = 1958;
NSFileSize = 62656;
NSFileSystemFileNumber = 529943;
NSFileSystemNumber = 16777220;
NSFileType = NSFileTypeDirectory;
}
The command I use to start the app: qlmanage -p -c com.mycompany.myfile -g MyQLGenerator.qlgenerator ~/Desktop/MyFile.xyz
Update: If I enabled the Hardened Runtime exception 'Allow DYLD Environment Variables' I also get the working path /var/folders/_h/cbm2fp054c9byr188mdyxhw00000gp/T/com.apple.quicklook.qlmanage/...
Thanks! :)
Post not yet marked as solved
Hi Quinn! I was almost betting $100 that you - the Forum's one-man army - would reply! :D
Yes, it is the same path in both cases. The only difference is the NSFileExtendedAttributes com.apple.rootless when running the Archive-build.
Thanks!
Best regards,
Jens :)
Great news!
Just tested this on macOS Big Sur Beta 20A5395g and here it works just like on iPhone! Happy days! :D
Thanks a lot for the swift reply Quinn! Great service! :D
Post not yet marked as solved
Hi Apple_Kevin and Mooglus πI have the problem in my case... please check it it out here: https://forums.developer.apple.com/message/377984#377984Cheers!
Great news!After updating to Beta 7 of both Xcode and Catalina the app no longer crashed at start. But still the screen was black!But then I fidled with my app delegate's didFinishLaunchingWithOptions:Before: let window = UIWindow()
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
window = UIWindow()
window.rootViewController = NavigationController(rootViewController: MainViewController())
window.makeKeyAndVisible()
return true
}After: var window: UIWindow? // <-- changed from 'let' to 'var' and made it optional
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
window = UIWindow() // has to create the UIWindow object here!
window!.rootViewController = NavigationController(rootViewController: MainViewController())
window!.makeKeyAndVisible()
return true
}I guess the app delegate has to be 100% aligned with the standard way of setting it up otherwise it will fail...Hmm, that was a weird experience πCheers!
Thanks a lot laskinp π:thumbsup:I have the latter file too.I have tried to Google the first file but couldn't really find anything that sorted it out...I'm wondering if I have to reinstall macOS...Cheers!
Post not yet marked as solved
Hi πI have the same problem...Installed Catalina Beta 5 from and then Xcode 11 Beta 5 ontop of latest non-Beta macOS/Xcode...It seems like we are missing some files at /System/iOSSupport/System/Library/AccessibilityBundles/... I guess that they are missing in the Catalina installation... :SHope they get this sorted out soon!Cheers!