post_install.sh fails on `require 'xcodeproj'`
See original GitHub issueWhen running react-native-link I get the following error:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/scottantipa/dev/GiveCrewNative/node_modules/tipsi-stripe/scripts/post-link-ios.rb:3:in `<main>'
This causes a build failure when running on iOS.
To get around this I
- manually installed the
xcodeproj
gem that the post_install script was trying to require - re-ran the post_install script
This seemed generated a Podfile and seemed to properly install Stripe, although I’m still having issues related to https://github.com/tipsi/tipsi-stripe/issues/29
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Why do I get this error when I run Pod install ... - Stack Overflow
[!] An error occurred while processing the post-install hook of the Podfile. [Xcodeproj] Consistency issue: no parent for object RNPlaceholder.
Read more >PostInstall script not running on MacOS - Apple Developer
I have created a package installer for MacOS with "productbuild" command line and adding the postinstall script in the package through command.
Read more >Ionic iOS build process failing
Hi Everyone So I'm attempting to build out my test Ionic 5.4.15 app to iOS and I'm having a hell of a time...
Read more >react-native-camera - npm
If you do not need it and do not want to install the GMV frameworks, open your app xcode project, on the Project...
Read more >CocoaPods Under The Hood - objc.io
In this article, we will walk through the pod install process, and take a ... post install hooks - Writing Xcode project file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
had the same issue. Installing the gem fixed it. I’m running rbenv with ruby version 2.4.2:
@devLaaziz @bwoodlt @smisaacs did you solve your issue?