Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for linking error with IDESourceCodeDocument private class #41

Merged

Conversation

bubski
Copy link
Contributor

@bubski bubski commented May 20, 2015

This is a fix for #40

Be careful with [IDESourceCodeDocument class], use NSClassFromString(@"IDESourceCodeDocument") instead. The reason is IDESourceCodeDocument is a private class residing in some dylib loaded after launching Xcode. However, since Xcode 6.3.2 plugins are loaded before loading the dylib with IDESourceCodeDocument, and so linker freaks out. NSClassFromString(@"IDESourceCodeDocument"), though not perfect, is safer because will return nil until appropriate dylib is loaded.
@bubski bubski force-pushed the bugfix/fix-for-linking-error-with-IDESourceCodeDocument branch from f0dac99 to bd5820d Compare May 27, 2015 18:14
@bubski
Copy link
Contributor Author

bubski commented May 27, 2015

@pendowski PR udpated. Much better I suppose

pendowski pushed a commit that referenced this pull request May 28, 2015
…th-IDESourceCodeDocument

Fix for linking error with IDESourceCodeDocument private class
@pendowski pendowski merged commit 0bc7046 into master May 28, 2015
@bubski bubski deleted the bugfix/fix-for-linking-error-with-IDESourceCodeDocument branch May 30, 2016 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants