Xcode 10.2: build problems with intents when deploy target is iOS 10

Originator:robotspacer
Number:rdar://49274887 Date Originated:March 26 2019
Status:Open Resolved:
Product:Intents Extension Product Version:Xcode 10.2 (10E125)
Classification:Serious Bug Reproducible:Always
 
Summary:
Since updating to Xcode 10.2 I'm getting a bunch of scary warnings when I try to build my app. They all start with "ignoring build task 'ConstructedTask(forTarget: SoupKit, 3 inputs, 1 outputs…" and end with "This warning represents an extremely serious project misconfiguration and will cause some build tasks in your project to be skipped entirely, leading to other build failures or missing files in the build directory."

In all cases, the warnings mention an Intents.strings file, and the error suggests that the conflicting tasks are for the exact same file. I suspect the warnings are not as serious as the message makes them sound, but needless to say I'm not really comfortable ignoring them.

Steps to Reproduce:
1. Create an iOS project
1. Add an intents extension including an .intentdefinition file
2. Add a localization to that file
3. Set the deployment target to iOS 10.3 or earlier

I was able to reproduce this using the "SoupChef" sample app provided by Apple, with some minor modifications. Here's the original demo: https://developer.apple.com/documentation/sirikit/soup_chef_accelerating_app_interactions_with_shortcuts All I did to reproduce the warning was add localizations for Intents.intentdefinition, set the deployment target to iOS 10.3, and then fix some errors so the project would build. This project is attached.

Expected Results:
I should not get any warnings about the .intentsdefinition file.

Actual Results:
There are several warnings like this:
:-1: ignoring build task 'ConstructedTask(forTarget: SoupKit, 3 inputs, 1 outputs, ruleInfo: ["CopyStringsFile", "/Users/username/Library/Developer/Xcode/DerivedData/SoupChef-rojbzdehurmlgakeaipmwucmevgx/Build/Products/Debug-iphoneos/SoupKit.framework/en.lproj/Intents.strings", "/Users/username/Downloads/SoupChefAcceleratingAppInteractionsWithShortcuts/Shared/en.lproj/Intents.strings"])' which produces files already produced by another task:
/Users/username/Library/Developer/Xcode/DerivedData/SoupChef-rojbzdehurmlgakeaipmwucmevgx/Build/Products/Debug-iphoneos/SoupKit.framework/en.lproj/Intents.strings
This warning represents an extremely serious project misconfiguration and will cause some build tasks in your project to be skipped entirely, leading to other build failures or missing files in the build directory. (in target 'SoupKit')

Version/Build:
Xcode 10.2 (10E125)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!