Seeing some surprising behavior when using the new Simulating Remote Notifications feature in the Xcode 11.4 beta.Looks like my payload in my APNS file is correct - it displays the notification correctly in the Simulator on Springboard, and if I click the Notification my app launches. But if I set the content-availble value to "1", and then simulate the notification, the App Delegate's application(_:performFetchWithCompletionHandler:) method is called, and not application(_:didReceiveRemoteNotification:fetchCompletionHandler:). I'd expect the former to be called only when I'm trying to do a Background App Refresh. This a bug or is there a chance that I'm doing something wrong?
Post
Replies
Boosts
Views
Activity
I'm trying to experiment with a Catalyst version of my iPad app. I checked the checkbox, I selected the "My Mac" scheme, I ran... and then, code signing errors! In the "Advanced" WW session, it works like magic with Automatic Signing. Unfortunately, I support CarPlay and thus have to manually sign my app. Not as magical.When I checked the checkbox, the Signing & Capabilties tab added a new macOS platform entry, and a bundle identifier: maccatalyst.com.mycompany.myapp. That maccatalyst.com bundle ID isn't dispalyed in my Certifiicates, Identifiers & Profiles section of the Apple developer site. When I try to add it manually, by adding an App ID, choosing Mac and specifying the explicit bundle ID, I get the following error: An App ID with Identifier 'maccatalyst.com.mycompany.myname' is not available. Please enter a different string.How do I proceed?
I'm using Core Data automatic NSManagedObject subclass generation, with a custom Class Definition. I want to update a non-managed property when a managed property value changes. So, I'm trying to use the override accessor enhancements from iOS 10.0 (https://developer.apple.com/library/archive/releasenotes/General/WhatNewCoreData2016/ReleaseNotes.html):- (void)setDepartment:(Department *)value // invoke the dynamic implementation of setDepartment [self managedObjectOriginal_setDepartment:value]; NSLog(@"invoked %@", NSStringFromSelector(_cmd));Problem is that my custom class is in Swift, so I'm at a loss on how to do this override. I've triedmanagedObjectOriginal_setProperty(property)But it gives me a compiler error. Is there any way to use this in Swift?
In Apple's crash organizer, I'm seeing a handful of crash reports come in. It doesn't appear to be a widespread issue, but keeps happening now and again.Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, Library not loaded: @rpath/libswiftCoreGraphics.dylib | Referenced from: /var/containers/Bundle/Application/7208AD66-5D56-4973-88A9-8D22D7E541DB/myapp.app/myapp | Reason: no suitable image found. Did find: | /private/var/containers/Bundle/Application/7208AD66-5D56-4973-88A9-8D22D7E541DB/myapp.app/Frameworks/libswiftCoreGraphics.dylib: code signature invalid for '/private/var/containers/Bundle/Application/7208AD66-5D56-4973-88A9-8D22D7E541DB/myapp.app/Frameworks/libswiftCoreGraphics.dylib' |
Triggered by Thread: 0
Thread 0 Crashed:
0 dyld 0x00000001004d5cbc __abort_with_payload + 8
1 dyld 0x00000001004d5668 abort_with_payload_wrapper_internal + 100 (terminate_with_reason.c:71)
2 dyld 0x00000001004d5694 abort_with_payload + 12 (terminate_with_reason.c:93)
3 dyld 0x00000001004b4514 dyld::halt(char const*) + 320 (dyld.cpp:4487)
4 dyld 0x00000001004b69a8 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 4072 (dyld.cpp:6110)
5 dyld 0x00000001004b1044 _dyld_start + 68A couple of versions ago, I saw a similar crash with libswiftCoreMedia.dylib instead of Core Graphics.Any thoughts on what I can do to mitigate this or stamp it out?