Post

Replies

Boosts

Views

Activity

Reply to Auto-generated Intents code contains thousands of warnings in Xcode 13 beta
I was able to eliminate the hundreds of duplicate definition warnings by changing the Intent Class Generation Language build setting (INTENTS_CODEGEN_LANGUAGE) from Swift to Objective-C. I also had to import the auto generated intent headers into my Swift bridging header, since most of my intent usage is in Swift. I suspect this is only an issue in projects that still use Obj-C, since all the errors only originated in Obj-C files that imported my project's Swift header, and as @CannedMango pointed out, the duplicate definitions seem to be due the new async/await functions translating to the same Obj-C method signatures as the earlier completion-based functions.
Oct ’21
Reply to iOS 13 - Attempting to store >= 4194304 bytes of data in CFPreferences/NSUserDefaults on this platform is invalid
Encountered after attempting only 1 MB on watchOS 7, which is very unexpected, considering the docs state the only size limit is on tvOS: Currently, there is only a size limit for data stored to local user defaults on tvOS, which posts a warning notification when user defaults storage reaches 512kB in size, and terminates apps when user defaults storage reaches 1MB in size.  https://developer.apple.com/documentation/foundation/userdefaults/1617187-sizelimitexceedednotification
Sep ’21
Reply to Promotional Offer
It is up to you to implement logic determining when and when subscription offers are provided to a user, so you can choose to only provide a subscription offer after the subscription has expired, if you wish. This logic must be implemented on a server since the offer needs to be signed by a secret token that must be kept secure and not shipped in your app.
Mar ’20