首页 > 其他分享 >Flutter 编译是pod intsall github 资源下载失败

Flutter 编译是pod intsall github 资源下载失败

时间:2023-12-21 16:47:13浏览次数:34  
标签:github end intsall build File path pod flutter

在fluterr 编译报错

  • 然后显示 github.xxxxx 访问超时

处理办法

  • pod install 主要是读取 profile 文件
platform :ios, '9.0'

target 'YourAppName' do
  use_frameworks!
# 这是安装依赖位置
  pod 'SomeDependency'
  # 添加其他依赖项...
end

  • 想办法 下载到github的文件 方法不表述了
  • flutter 的 profile 修改如下
# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!
 
 ### 核心在这里多个依赖一直添加 
  pod 'Mux-Stats-AVPlayer', :path => '/Users/jimogangdan/IdeaProjects/mux-stats-sdk-avplayer'
  pod 'Mux-Stats-Core', :path => '/Users/jimogangdan/IdeaProjects/stats-sdk-objc'

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

标签:github,end,intsall,build,File,path,pod,flutter
From: https://www.cnblogs.com/guanchaoguo/p/17919377.html

相关文章

  • 找到了!GitHub Copilot的最佳免费平替
    在如今这个人工智能高速发展的时代,每个行业都在被AI技术影响而改变。层出不穷的AI辅助工具,让我们看到了机器正在取代一部分基础的日常工作。对于我们开发者而言,当前最炙手可热的就是GitHubCopilot,市面上最好的开发者辅助工具。GitHubCopilot所提供的代码补全、建议、解释等能力......
  • kubernetes 设置 Kubernetes master 可调度 pod
    kubernetes设置节点可调度kubectltaintnodenode01node-role.kubernetes.io/master-kubernetes设置节点不可调度kubectltaintnodenode01node-role.kubernetes.io/master="":NoSchedule......
  • git push -f强制冲掉了Github的远程仓库怎么恢复?
    gitpush-f强制冲掉了Github的远程仓库怎么恢复?背景看到有很多教程说,可以本地仓库回退到之前的commit,恢复GitHub的remote仓库的,但是我遇到的情况是,我本地这个仓库是新建的,只有一次commit记录,我是直接push-f把remote的仓库全冲了。。。本地根本没法恢复。于是在网上......
  • Github Actions - Error: The connection to the server localhost:8080 was refused
     Runkubectlapply-feks/aws-auth.yamlkubectlapply-feks/aws-auth.yamlkubectlapply-feks/deployment.yamlkubectlapply-feks/service.yamlshell:/usr/bin/bash-e{0}env:AWS_DEFAULT_REGION:ap-southeast-1AWS_REGION:ap-southe......
  • GitHub 如何修改 Fork from
    如果你的仓库上面是Forkfrom的话,我们有什么办法能够取消掉这个Forkfrom?  解决办法GitHub上面没有让你取消掉Fork的办法。如果进入设置,在可见设置中也没有办法修改仓库的可见设置选项。  唯一的解决办法就是对你需要修改的仓库先全部克隆到你的本地计算机上,......
  • github加速软件fetch-github-hosts索引
    详细链接进入文件夹E:\github-host_v2.6\fetch-github-hosts.exe-m=clientWindows启动fetch-github-hosts.exe-m=client自定义获取时间间隔Windows(10分钟获取一次)fetch-github-hosts.exe-i=10自定义获取链接Windowsfetch-github-hosts.exe-u=http://127.0.0.1:9898/......
  • Github 工具栏
    漏洞及渗透练习平台:WebGoat漏洞练习环境      github.com/WebGoat/WebGoat       git地址:https://github.com/WebGoat/WebGoat.gitDamnVulnerableWebApplication(漏洞练习平台)数据库注入练习平台 用node编写的漏洞练习平台,likeOWASPN......
  • 个人优化 Github Pages 博客网站访问速度记录
    使用GithubPages可以方便地搭建自己的静态网站,详细过程参考我的这篇文章。使用hugo和GithubPages搭建个人博客但由于众所周知的原因,此方法搭建的博客在国内访问速度不佳。因此考虑采用一些方法来加速访问,主要思路是使用CDN加速网站的静态资源。对于不同的静态资源,......
  • 使用cobra对pod增删改查
    使用Cobra框架完成pod增删改查原创 cilliandevops 希里安 2023-12-1218:52 发表于四川近日见闻AntDesign5.12.2在近日发布,感兴趣的可以去看看更新了那些内容,我这边还只是简单的用了其vue社区版本AtlassianConfluenceDataCenter/Server模板注入漏洞......
  • 软件测试/人工智能|GitHub怎么用,这篇文章告诉你
    前言作为一个刚刚接触代码的程序员,可能我们会听到一个词GitHub,把代码提交到GitHub上,或者从GitHub上克隆项目到本地,在GitHub上查看某个工具的文档等等,我们不禁要问,GitHub究竟是什么,该怎么用,本文就给各位初学者们介绍什么是GitHub,它能帮我们干什么?什么是GitHubGitHub是一个面向......