Decode errors, even on "Hello, world!" - Mac

This wasn't happening until I updated Xcode to 16.2 (I'm using Sequoia 15.2). When I run any Mac app, I get these errors:

Can't find or decode reasons Failed to get or decode unavailable reasons Can't find or decode disabled use cases

I even got these errors running "Hello, world" which tells me that either I need to reinstall or there is a bug.

Thanks for any help, -Ashley

Answered by AshleyB in 821018022

I think I figured it out (ChatGPT helped, but also wasted days of time). We think it is because I have an Intel-based mac and the predictive coding is causing problems. If I'm wrong, I'd like help. I'm using Sequoia 15.2. and Xcode 16.2. Note that this error does NOT happen in Xcode 15. The following errors were from Apple's default Hello World (Mac) code with no changes, using a new install of Xcode. Errors:

Can't find or decode reasons (Type Error Library GenerativeModels PID : TID 6282 : 0x2be49 Subsystem com.apple.GenerativeModels Category availability Call Site 0x60860)

Failed to get or decode unavailable reasons (Type Error Library GenerativeModels PID : TID 6282 : 0x2be49 Subsystem com.apple.GenerativeModels Category availability Call Site 0x5aa42)

Can't find or decode disabled use cases (Type Error Library GenerativeModels PID : TID 6282 : 0x2be49 Subsystem com.apple.GenerativeModels Category availability Call Site 0x60010).

If I turn off App Sandboxing, I only get one error - Can't find or decode disabled use cases

I wated so much time reinstalling Sequioa and Xcode.figured out that it is likely related to predictive code completion and having an Intel-based Mac. ChatGPT says that "the errors do not impact your app directly and can be ignored or mitigated by disabling predictive features in Xcode). Actually, this doesn't fix it.

-Ashley

Could you post the code where the error occurs ?

Do you call some decode (either userDefaults or JSON ?)

Hi, I'm new at this, so I have no idea how to do what you are asking. I'll need details (sorry).

I am running Apple's default New Project (Hello World code) with no changes, including code, schemes, settings, or anywhere else.

I assume the below should show when the app is running. Report Navigator - Launch Showing All Issues Using LLDBRPC. The LLDB framework is from /Applications/Xcode.app/Contents/SharedFrameworks Attached to process with pid 6662

Build and Launc show no issues. Console in the app shows the decode errors. Apps don't crash.

Mac's Console app doesn't show errors that I can tell. I searched for decode.

When I turned off App Sandbox, I only got one error - Can't find or decode disabled use cases.

All I know is that this didn't show up before the update to Sequoia and Xcode. All continue to be the most recent version.

Thanks for helping! -Ashley

Accepted Answer

I think I figured it out (ChatGPT helped, but also wasted days of time). We think it is because I have an Intel-based mac and the predictive coding is causing problems. If I'm wrong, I'd like help. I'm using Sequoia 15.2. and Xcode 16.2. Note that this error does NOT happen in Xcode 15. The following errors were from Apple's default Hello World (Mac) code with no changes, using a new install of Xcode. Errors:

Can't find or decode reasons (Type Error Library GenerativeModels PID : TID 6282 : 0x2be49 Subsystem com.apple.GenerativeModels Category availability Call Site 0x60860)

Failed to get or decode unavailable reasons (Type Error Library GenerativeModels PID : TID 6282 : 0x2be49 Subsystem com.apple.GenerativeModels Category availability Call Site 0x5aa42)

Can't find or decode disabled use cases (Type Error Library GenerativeModels PID : TID 6282 : 0x2be49 Subsystem com.apple.GenerativeModels Category availability Call Site 0x60010).

If I turn off App Sandboxing, I only get one error - Can't find or decode disabled use cases

I wated so much time reinstalling Sequioa and Xcode.figured out that it is likely related to predictive code completion and having an Intel-based Mac. ChatGPT says that "the errors do not impact your app directly and can be ignored or mitigated by disabling predictive features in Xcode). Actually, this doesn't fix it.

-Ashley

I'm running on an Apple Silicon laptop, predictive code completion is off, and I still get these warnings. It's very annoying.

Decode errors, even on "Hello, world!" - Mac
 
 
Q