Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[NSBundle bundleForClass:] gives incorrect bundle path for frameworks #490
The following code fragment demonstrates the issue. It calls the method for NSString and should return the path to Foundation.framework.
Output on macOS:
Output in Darling:
As a result of this issue, Xcode determines a developer path that is two directory levels too deep.
Our implementation should be modified to return the root of a bundle in this case.