Xcode 11.4 not generating custom intent class

Viewed 601

Xcode 11.4 is not generating custom intent class. It works on Xcode 11.3.1. Didn't change any project config. Now getting "Use of undeclared type StartRecordingIntent" compile time error where StartRecording is the name of the intent. Any clue?

enter image description here

enter image description here

enter image description here

2 Answers

Open the File Inspector, make sure to select "Public Intent Classes" of intent file *.intentdefinition.

enter image description here

The issue was resolved by changing the build system from Legacy to New Build System. Can't explain the relation between the errors and the build system, but the errors are gone. To change the build system go to File -> Workspace Settings -> Shared Workspace Settings and change from Legacy Build System to New Build System.

Related