Need dummy source file in Messages Extension

Originator:hotngui
Number:rdar://29978281 Date Originated:1/11/2017
Status:Open Resolved:
Product:Xcode Product Version:8.2.1
Classification:Serious Bug Reproducible:AlwaysWhen the "+" (plus sign) is used in a query parameter it needs to be percent encoded, but NSURLComponents does not do that. The result is that when sent to a web server the "+" gets erroneously interpreted as a "space" character when decoded.
 
Summary:
We are putting our Messages Extension code in a separate framework since it will be reused between two different apps. We update the MainInterface.storyboard such that the initial VC references our MSMessagesAppViewController in our framework.

If we remove all the code source files from the "iMessageExtension" group as defined in the project the app builds and runs on the simulators, but refuses to install on a real device. The only error message is "App Installation failed. An unknown error has occurred."

If I create a dummy source file (see DummyObject.swift) in said group things work great once again!

Steps to Reproduce:
1. Download the two projects 
2. Build and run the BAD project 
3. Build and run the WORKS project

The only difference between the projects is that DummyObject.swift file.

Expected Results:
Both projects should work...

Actual Results:
BAD project fails to install on real devices.

Version:
Version 8.2.1 (8C1002)
MacOS: 10.2.2

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!