AppIntents not working in xcode 14

Getting an error when import AppIntents framework to project.

Command ExtractAppIntentsMetadata failed with a nonzero exit code

Same from here :(

Still happening in Xcode 14.0.1 RC when using the latest macOS Ventura Beta 😩

In Xcode 14.0.1 through Xcode Cloud is working.

Was anyone able to find a work around to this?

I am getting this as well. Xcode 14.0.1, running on Monterey 12.6 release (21G115)

Does anyone know of a workaround?

(Filed this as FB11602587)

App Shortcuts working for me in Simulator just fine, but unable to archive...

Just got this from Xcode 14.0.1 and Xcode 14.1 beta 3:

code-block
2022-10-07 18:44:36.743 appintentsmetadataprocessor[61515:24985498] Starting appintentsmetadataprocessor export

2022-10-07 18:44:38.645 appintentsmetadataprocessor[61515:24985498] Writing Metadata.appintents

2022-10-07 18:44:38.645 appintentsmetadataprocessor[61515:24985498] Metadata root: /Users/XXXXX/Metadata.appintents

2022-10-07 18:44:38.661 appintentsmetadataprocessor[61515:24985498] Writing ExtractedAppShortcutsMetadata.stringsdata file

2022-10-07 18:44:38.662 appintentsmetadataprocessor[61515:24985498] Writing ExtractedParameterSummaryMetadata.stringsdata file

2022-10-07 18:44:38.664 appintentsmetadataprocessor[61515:24985498] Warning: error: could not determine type for property: PetMonitor.StartPetMonitorIntent.cameras from binary

Command ExtractAppIntentsMetadata emitted errors but did not return a nonzero exit code to indicate failure

I think in my case I found a workaround, and I'm posting it here in case it works for others too - I had SWIFT_REFLECTION_METADATA_LEVEL set to "None" for release builds. Setting this back to the default (All) seemed to do the trick and let appintentsmetadataprocessor extract the info during the archiving step. There's probably a more elegant solution, like telling the compiler to emit reflection data only for the file containing the app intents definition, so if anyone finds this workaround helpful and has a better way to do it, please shout :)

AppIntents not working in xcode 14
 
 
Q