xcodesirikitwidgetkit

Class prefix in intentdefinition generated code


When adding an .intentdefinition file to Xcode (for my widget configuration) the classes it generates are prefixed with (in my case) HixField which is my company name.

My findings:

<key>INIntentClassPrefix</key>
<string>HixField</string>

changing this to an empty string has no effect...


Solution

  • It comes from the Class Prefix setting on your Xcode project. Select your Xcode project and open the file inspector to change it.

    Class Prefix setting in Xcode