Linker fails to link open method that was previously internal

Originator:cdownie
Number:rdar://50619960 Date Originated:2019-05-09
Status:Open Resolved:
Product:Xcode Product Version:10.2.1
Classification: Reproducible:Yes
 
Summary:
In the attached zip, I have a project that includes a framework. In the framework's class hierarchy, a subclass makes an internal 'initialize' method open. In the app, I subclass that class with an open 'initialize' method and try to build.

In Debug, it builds fine. In Release, the linker fails to find the method descriptor for that method and the build fails.

Steps to Reproduce:
1. Open the attached Project
2. Select the Release scheme
3. Build

Expected Results:
It builds without issue. Or at least, it builds with the exact same result in the Debug scheme.

Actual Results:
It fails to build with a linker error.

Version/Build:
Xcode Version 10.2.1 (10E1001)

Configuration:
macOS 10.14.4 (18E226)

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!