Posts

Post not yet marked as solved
6 Replies
I haven't been able to fix this, but I tried a workaround:- Choose to localize the intentdefinition file.- Select a second language for the intentdefinition file, and let XCode crash- Reopen XCode- Open Finder and locate the newly created intentdefinitoon file for the additional language- Drag this file into the app extention folder in XCode. The intentdefinition file now has an arrow next to it, when expanding it, it will show the 2 versions of the file, one for each language. At this stage it's possible to localize the file for the 2nd language in XCode.Visually, all appears to be in order. However I now get a compiler error:Multiple commands produce '/Users/ronald/Library/Developer/Xcode/DerivedData/ZPanel-drelfkjiknijavarocdeprkhoclp/Build/Intermediates.noindex/ZPanel.build/Debug-iphonesimulator/HWShortcuts.build/DerivedSources/IntentDefinitionGenerated/HWShortcuts/FlipSwitchIntent.m':1) Target 'HWShortcuts' (project 'ZPanel'): IntentDefinitionCodegen /Users/ronald/Documents/Projects/ZPanel/HWShortcuts/en.lproj/HWShortcuts.intentdefinition2) Target 'HWShortcuts' (project 'ZPanel'): IntentDefinitionCodegen /Users/ronald/Documents/Projects/ZPanel/HWShortcuts/nl.lproj/HWShortcuts.intentdefinitionOther have reported that error as well. Checking this post, it appears that XCode is not supposed to generate a second intentsdefinition file, but instead split off the text into a separate strings file, which is then localized for each language. That's not happening in my case, and I'm not sure at this point how I can make XCode do this.
Post not yet marked as solved
6 Replies
It only happens with intent files. I've tried localizing a xib file and that worked fine, no issues.