bitrise-steplib / steps-cocoapods-install

MIT License
23 stars 18 forks source link

build fails with podfile related to react native #62

Closed sk92129 closed 3 years ago

sk92129 commented 3 years ago

I am new to bitrise and this is my first project to build on bitrise.

I took care of the code signing portion and got past that. Now this podfile failure is happening. I am not sure what is causing this because the react-native app build works locally on my macbook.

$ pod "1.9.1" "install" "--verbose"

[!] Invalid Podfile file: cannot load such file -- /Users/vagrant/git/node_modules/react-native/scripts/react_native_pods.

from /Users/vagrant/git/ios/Podfile:1

-------------------------------------------

require_relative '../node_modules/react-native/scripts/react_native_pods'

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

-------------------------------------------

/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:301:in rescue in block in from_ruby' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:295:inblock in from_ruby' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:50:in instance_eval' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:50:ininitialize' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:293:in new' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:293:infrom_ruby' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:259:in from_file' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/config.rb:200:inpodfile' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command.rb:150:in verify_podfile_exists!' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command/install.rb:46:inrun' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in run' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command.rb:52:inrun' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.1/bin/pod:55:in <top (required)>' /Users/vagrant/.rbenv/versions/2.6.5/bin/pod:23:inload' /Users/vagrant/.rbenv/versions/2.6.5/bin/pod:23:in `

' Command failed, error: exit status 1 | | +---+---------------------------------------------------------------+----------+ | x | cocoapods-install@1 (exit code: 1) | 1.7 min | +---+---------------------------------------------------------------+----------+ | Issue tracker: https://github.com/bitrise-io/steps-cocoapods-install/issues | | Source: https://github.com/bitrise-io/steps-cocoapods-install | +---+---------------------------------------------------------------+----------+

This is a sample react-native project but I was kicking the tires on bitrise to get a RN app fully configured on bitrise.

a0dae8386cd3f5f5.log

pigeon-archive commented 3 years ago

Hi @sk92129,

Can you please provide a link to a build and enable support access?

Additionally, can you provide your Podfile in a gist.github.com?

sk92129 commented 3 years ago

This is the link to the app on my “org” dashboard.

https://app.bitrise.io/app/d786536fcc79416a#/builds

this is the podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '10.0'

target 'eddie2' do config = use_native_modules!

use_react_native!(:path => config["reactNativePath"])

target 'eddie2Tests' do inherit! :complete

Pods for testing

end

Enables Flipper.

#

Note that if you have use_frameworks! enabled, Flipper will not work and

you should disable these next few lines.

use_flipper! post_install do |installer| flipper_post_install(installer) end end

target 'eddie2-tvOS' do

Pods for eddie2-tvOS

target 'eddie2-tvOSTests' do inherit! :search_paths

Pods for testing

end end

From: Luna Graysen notifications@github.com Reply-To: bitrise-steplib/steps-cocoapods-install reply@reply.github.com Date: Tuesday, December 1, 2020 at 9:15 AM To: bitrise-steplib/steps-cocoapods-install steps-cocoapods-install@noreply.github.com Cc: sk92129 sk92129@gmail.com, Mention mention@noreply.github.com Subject: Re: [bitrise-steplib/steps-cocoapods-install] build fails with podfile related to react native (#62)

Hi @sk92129https://github.com/sk92129,

Can you please provide a link to a build and enable support access?

Additionally, can you provide your Podfile in a gist.github.com?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/bitrise-steplib/steps-cocoapods-install/issues/62#issuecomment-736693988, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAM22VG4RDFE3NW26VV2BU3SSUQB7ANCNFSM4UGATUJQ.

pigeon-archive commented 3 years ago

Can you please enable support access?

trisapeace commented 3 years ago

@non-binary , I am having the same issue as @sk92129

I have enabled the Support user on my app: https://app.bitrise.io/app/c31c3ce97661f8d7#/builds

The podfile is https://gist.github.com/trisapeace/704ddf37266d445886734a8e0d5fe715

Thank you!

trisapeace commented 3 years ago

@sk92129 , I got around this issue by adding a script to my workflow before the "Run Cocoapods install" that simply calls npm install. This created the /Users/vagrant/git/node_modules/react-native/scripts/react_native_pods.rb file that it appears to be looking for.

github-actions[bot] commented 3 years ago

Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.

To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.

The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".

If no comment left within 21 days, this issue will be closed.

github-actions[bot] commented 3 years ago

I'll close this issue as it doesn't seem to be relevant anymore. We believe an old issue probably has a bunch of context that's no longer relevant, therefore, if the problem still persists, please open a new issue.