Code Monkey home page Code Monkey logo

Comments (4)

debugly avatar debugly commented on August 17, 2024

不是啊,这里使用了最简单的反引号方式调用了 shell ,然后通过 puts 把执行日志打印出来。
你可以看下这个:https://stackoverflow.com/questions/2232/how-to-call-shell-commands-from-ruby
麻烦改回去再试试,看下具体原因。

from ffmpegtutorial.

zuohuachen avatar zuohuachen commented on August 17, 2024

环境:
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
pod --version 1.13.0

报错原因:(但如果改成正常引号,可以正常执行)

➜ FFmpegTutorial git:(master) ✗ pod install --project-directory=Example/MacOS
Analyzing dependencies
Downloading dependencies
[!] An error occurred while processing the pre-install hook of the Podfile.

No such file or directory - ../../download-vendor.sh

/Users/xxxxx/Documents/GitHub/FFmpegTutorial/Example/MacOS/Podfile:10:in ``'
/Users/xxxxx/Documents/GitHub/FFmpegTutorial/Example/MacOS/Podfile:10:in block (2 levels) in from_ruby' /opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-core-1.13.0/lib/cocoapods-core/podfile.rb:162:in pre_install!'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:958:in `run_podfile_pre_install_hook'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:946:in `block in run_podfile_pre_install_hooks'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods/user_interface.rb:149:in `message'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:945:in `run_podfile_pre_install_hooks'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:259:in `block in download_dependencies'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods/user_interface.rb:64:in `section'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:257:in `download_dependencies'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:163:in `install!'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods/command/install.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods/command.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/gems/cocoapods-1.13.0/bin/pod:55:in `<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/bin/pod:25:in `load'
/opt/homebrew/Cellar/cocoapods/1.13.0/libexec/bin/pod:25:in `

'

from ffmpegtutorial.

debugly avatar debugly commented on August 17, 2024

我知道了,是执行脚本时的目录不对,使用下面的步骤安装即可。

git clone https://github.com/debugly/FFmpegTutorial.git
cd FFmpegTutorial/Example/macOS
pod install
open FFmpegTutorial-macOS.xcworkspace

from ffmpegtutorial.

debugly avatar debugly commented on August 17, 2024

优化了脚本,现在可以 pod install --project-directory=Example/MacOS 了。

from ffmpegtutorial.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.