Skip to content

pod 失败,需要修改podfile #18

@zuohuachen

Description

@zuohuachen
use_frameworks!

platform :osx, '10.11'

target 'FFmpegTutorial-macOS' do
  pod 'FFmpegTutorial',:path => '../../'
end

pre_install do |installer|
  puts `../../download-vendor.sh macos 0.10.1-230831144049-ijk`
end

如上,PodFile文件只有一个打印puts,没执行 sh文件。把它改成下面这样,就可以执行pod install了。

pre_install do |installer|
  podfile_path = File.dirname(File.realpath(__FILE__))
  script_relative_path = "../../download-vendor.sh"
  script_full_path = File.expand_path(script_relative_path, podfile_path)
  system("sh #{script_full_path} ios 0.10.1-230831144049-ijk")
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions