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
Avoid "Failed to build gem native extension" installation error by checking xcode-select #1402
Comments
We don't control CocoaPods installation because it is performed by RubyGems. We are investigating solutions to ship a CocoaPods binary by version 1.0 (#400), but we are not there yet. Suggestions in that regard are very appreciated 🍻 A bandaid that we intend to implement is to ship the xcodeproj gem with the native extensions pre-built (CocoaPods/Xcodeproj#88). Any help in that regard would be very welcome as well. You might want to forward this ticket to RubyGems as they might be interested in fine tuning the installation of gems with native extensions in OS X. Closing as not actionable in CocoaPods |
I have never made a gemspec but it sounded like you could embed a script:
But you're right. If the gem installation process is too restrictive then there's not much that can be done besides maybe a note/fix suggestion message. |
A script can be used to create the values of the gemspec. However they provide no hooks and they are later serialized to YAML. Also the note message wouldn't work because it is presented only after a successful installation. |
I see. Then at least if the Cocoapods main page's Install section would have a note I think we would duplicated installation issues. Something like:
|
I was trying to get some time to create a pull request to solve #1108, #1300, #1368, #1371, #1401 (and more to come...).
As I may not be able to do it soon I though a feature request would be better than nothing:
xcode-select --print-path
value./Applications/Xcode.app/Contents/Developer
) and offer to set itxcode-select --switch <xcode_path>
.The text was updated successfully, but these errors were encountered: