question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

post_install.sh fails on `require 'xcodeproj'`

See original GitHub issue

When 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

  1. manually installed the xcodeproj gem that the post_install script was trying to require
  2. 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:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
smisaacscommented, Jan 20, 2018

had the same issue. Installing the gem fixed it. I’m running rbenv with ruby version 2.4.2:

/Users/smisaacs/.rbenv/versions/2.4.2/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj (LoadError)
	from /Users/smisaacs/.rbenv/versions/2.4.2/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from node_modules/tipsi-stripe/scripts/post-link-ios.rb:3:in `<main>'
0reactions
isnifercommented, Apr 22, 2018

@devLaaziz @bwoodlt @smisaacs did you solve your issue?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found