lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
245 stars 17 forks source link

50619960: Linker fails to link open method that was previously internal #21259

Open openradar-mirror opened 5 years ago

openradar-mirror commented 5 years ago

Description

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)

- Product Version: 10.2.1 Created: 2019-05-14T18:05:14.852070 Originated: 2019-05-09T00:00:00 Open Radar Link: http://www.openradar.me/50619960