Post

Replies

Boosts

Views

Activity

Comment on Why are there no recent device logs
I'm currently on iOS 15.4 and Xcode 13.2.1. I did sort by date. I also have some processes and types that say "Unknown" for both at the same time. I mean when there is an Unknown process or an Unknown Type, the other is also Unknown on the same row. All the logs appearing are for iOS 15.1. I also found a couple of processes that say "Hardware Model: iPhone10,4" in the details. I don't know what that means. The device is an iPhone 8.
Mar ’22
Comment on CloudKit: CREATE operation not permitted
The Simulator won't let me sign out of iCloud. The button that says "Sign Out" when I go to Settings then to the very top cell that shows my Apple ID is grayed out. Clicking on "Password & Security" gives me a message box saying "Account Details Unavailable" and gives me a button that says "Get Verification Code" and another that says "OK".
Apr ’22
Comment on NSCoding error messages using NSKeyedUnarchiver.unarchivedObject(ofClass:from:)
I found this old post of mine. NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(_:) has been deprecated. I still need a solution for this. What is _NSInlineData? When I run the following code I get the following in debug window: print(type(of: FileManager.default.ubiquityIdentityToken)) print(type(of: FileManager.default.ubiquityIdentityToken!)) Optional<NSCoding & NSCopying & NSObject> _NSInlineData
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’22
Comment on Why does the intent property not show for NSExtensionContext?
No. There are three functions that don't show up either. I think it's because I haven't enabled certain capabilities in Signing & Capabilities for the main target in the project. The three functions are interfaceParametersDescription() which is used by SiriKit, and dismissNotificationContentExtension() and performNotificationDefaultAction() which I presume are used by User Notification or Remote Notification.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’22
Comment on When will type Error not cast to type NSError?
What do you think about the following part of answer to my post on stackoverflow asking this same question? Short Answer Yes, there could be a need to cast to an NSError conformance. NSError has attributes that the Swift Error does not. If you're working with older codebases, or you want what an NSError has to offer, you may be dealing with them from time to time.
Topic: App & System Services SubTopic: General Tags:
Aug ’22
Comment on Is there a way to cause my app or a background task start running automatically when the iOS device is turned back on after being turned off?
It doesn't sound like there is any way to do what I want to do without requiring either the user to do further setup, namely use Guided Access, or requiring an administrator to do further setup. That's what I suspect from your answer here.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Keep App alive.
Have you figured out how to do what you want to do and keep tracking the user even when the app is shut down or the device is shut down and turned back on again?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Keep App alive.
Ok. Thank you.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Why are there no recent device logs
I'm currently on iOS 15.4 and Xcode 13.2.1. I did sort by date. I also have some processes and types that say "Unknown" for both at the same time. I mean when there is an Unknown process or an Unknown Type, the other is also Unknown on the same row. All the logs appearing are for iOS 15.1. I also found a couple of processes that say "Hardware Model: iPhone10,4" in the details. I don't know what that means. The device is an iPhone 8.
Replies
Boosts
Views
Activity
Mar ’22
Comment on "Failed to prepare device for development." with Xcode 13.2.1 and iOS 15.4 device
Yeah. I assumed my Xcode was up to date since I had checked the check boxes for both "Automatically keep my Mac up to date" in System Preferences->Software Update and "Install app updates from the App Store" in Advanced? I am updating Xcode from App Store now. Thank you.
Replies
Boosts
Views
Activity
Mar ’22
Comment on CloudKit: CREATE operation not permitted
What do you mean reauthinticate? Sign out and sign back in? Or put password in again?
Replies
Boosts
Views
Activity
Apr ’22
Comment on CloudKit: CREATE operation not permitted
The Simulator won't let me sign out of iCloud. The button that says "Sign Out" when I go to Settings then to the very top cell that shows my Apple ID is grayed out. Clicking on "Password & Security" gives me a message box saying "Account Details Unavailable" and gives me a button that says "Get Verification Code" and another that says "OK".
Replies
Boosts
Views
Activity
Apr ’22
Comment on Blank project page in Xcode
I mean I clicked that button and the targets and other things show again.
Replies
Boosts
Views
Activity
Apr ’22
Comment on Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
Is there anytime when DispatchQueue.main.sync { // code } is run, that doesn't cause a one of these errors also? I get the exact message when I run that code even when I don't put any code in the execution block: Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on NSCoding error messages using NSKeyedUnarchiver.unarchivedObject(ofClass:from:)
I found this old post of mine. NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(_:) has been deprecated. I still need a solution for this. What is _NSInlineData? When I run the following code I get the following in debug window: print(type(of: FileManager.default.ubiquityIdentityToken)) print(type(of: FileManager.default.ubiquityIdentityToken!)) Optional<NSCoding & NSCopying & NSObject> _NSInlineData
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Why does the intent property not show for NSExtensionContext?
No. There are three functions that don't show up either. I think it's because I haven't enabled certain capabilities in Signing & Capabilities for the main target in the project. The three functions are interfaceParametersDescription() which is used by SiriKit, and dismissNotificationContentExtension() and performNotificationDefaultAction() which I presume are used by User Notification or Remote Notification.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Is this self-initializing variable initialized at app launch, or initialized when it is first called upon by an executing code?
Yes. That's a good idea. I would like to know correct terminology and where I can find the official documentation. I guess it would be under variables. That's the most obvious conclusion. Thanks for the answer.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Why and how any ErrorType can always be casted to NSError?
Where can I find documentation to the ErrorType protocol. I do find the documentation for Error as a protocol. Is ErrorType a typealias to Error?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on When will type Error not cast to type NSError?
Ok. That's a good technique. That prevents the programmer from having to make sure the argument to error as Error? is not a nil. I think that's the idea, do you think?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on When will type Error not cast to type NSError?
What do you think about the following part of answer to my post on stackoverflow asking this same question? Short Answer Yes, there could be a need to cast to an NSError conformance. NSError has attributes that the Swift Error does not. If you're working with older codebases, or you want what an NSError has to offer, you may be dealing with them from time to time.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’22