Difficult to Understand Error Message With Today Extension That Has No Linked Files

Number:rdar://39974757 Date Originated:May 4 2018
Status:Duplicate/44040377/Open Resolved:
Product:Developer Tools Product Version:Xcode 9.3 (9E145)
Classification:Suggestion Reproducible:Always
Please see bug http://www.openradar.me/radar?id=4983936539164672 which was closed citing that the issue behaves as intended.

I’d like to propose that when a today extension target lacks linked files that Xcode should provide a more helpful error message on Simulator install than "This app could not be installed at this time."

Resolving this error was very difficult and the message could be helpful stating that the today extension target has no linked files and cannot be installed. 

Please see http://www.openradar.me/radar?id=4983936539164672 for the full setup instructions to reproduce the issue. This came up in a real world situation in which a framework was used to provide all of the today extension functionality (shared amongst a few apps), resulting in us adding an empty Swift file to the today extension target in order to get past the error message.

Suggested text: "{TargetName} could not be installed because no source files are linked to this target."


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!