Embedded third-party projects should not require explicit team ID and name for signing.
| Originator: | jelly | ||
| Number: | rdar://27264906 | Date Originated: | 10-Jul-2016 12:00 PM |
| Status: | Duplicate of 26892618 | Resolved: | 15-Jul-2016 04:14 PM |
| Product: | Developer Tools | Product Version: | Xcode-beta (8S162m) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: Embedded frameworks set up using an Xcode workspace require the “Signing” section of the framework target to be completed. This causes issues when the libraries are third-party or non-readwrite, because the team name and ID is explicitly set within the project, and can mean that these details need to be worked around when updating the projects. The previous behaviour was that embedded frameworks set up this way were signed using the details of the app or app extension they were bundled in, which meant that they did not require explicit signing details to be set up. The new behaviour is a regression, and is a significant hinderance to using third-party code and libraries within an app. If a framework is embedded as a sub-project of the app’s project (not using a workspace), it is built and signed as expected, inheriting the signing certificate from the parent target. It does, however, display an error on the target’s General tab. Steps to Reproduce: 1. In the included sample code, open the `StaticTables.xcworkspace` file in the Xcode beta. 2. In the linked `StaticTablesExample` project, on the `StaticTablesExample` target, select the development team in the General tab. 2. In the linked `StaticTables` project, on the `StaticTables` target, ensure the development team is set to “None” in the General tab. 4. Build and run on a development device. Expected Results: The framework should inherit the signing certificate from the app it is being embedded into, build successfully, resulting in the app being run on device. Actual Results: The build will not complete, because the team has not been selected for the framework. Configuration: My developer ID is linked to multiple teams, which may or may not have relevance to this issue.
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!