Comments (4)
不是啊,这里使用了最简单的反引号方式调用了 shell ,然后通过 puts 把执行日志打印出来。
你可以看下这个:https://stackoverflow.com/questions/2232/how-to-call-shell-commands-from-ruby
麻烦改回去再试试,看下具体原因。
from ffmpegtutorial.
环境:
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.
我知道了,是执行脚本时的目录不对,使用下面的步骤安装即可。
git clone https://github.com/debugly/FFmpegTutorial.git
cd FFmpegTutorial/Example/macOS
pod install
open FFmpegTutorial-macOS.xcworkspace
from ffmpegtutorial.
优化了脚本,现在可以 pod install --project-directory=Example/MacOS 了。
from ffmpegtutorial.
Related Issues (18)
- 赶紧写 HOT 1
- 怎么支持https啊? HOT 1
- pod 失败 HOT 3
- https://ifoxdev.hd.sohu.com/ffpods/MRFFmpeg#{FF_VER}.podspec HOT 1
- 不支持rtsp流 HOT 1
- 你好,我现在在做一个金融版本抖音,缺一名Android开发,不知道你是否有兴趣一起做呢 https://github.com/yjjhkyq/doubi HOT 2
- 现在不更新了吗?下载以后无法运行 HOT 1
- 'libavutil/frame.h' file not found HOT 2
- 换了一个别的地址 视频播放特别慢卡 HOT 2
- macos 报错
- 'libswscale/swscale.h' file not found HOT 5
- How to execute ffmpeg commands in ios app? HOT 1
- 链接挂了 HOT 1
- 内存问题 HOT 4
- 下载 MRFFmpegPod 出现报错 HOT 1
- 新人求助,为什么找不到头文件 #import <FFmpegTutorial/FFVersionHelper.h> HOT 2
- I try to use metal render a 4k video use your code. But I got a very slow fps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpegtutorial.