Marcel Mendes Filho
Marcel Mendes Filho

Reputation: 47

Xcode 11.4 not generating custom intent class

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

Upvotes: 2

Views: 943

Answers (2)

Tai Le
Tai Le

Reputation: 9286

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

enter image description here

Upvotes: 2

Marcel Mendes Filho
Marcel Mendes Filho

Reputation: 47

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.

Upvotes: 0

Related Questions