-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在mac上进行pod install时报错 No such file or directory fijkplayer.podspec.json #63
Comments
@byerman 你好,谢谢关注,fijkplayer 没有 0.1.4 版本,请使用 0.1.5 版本 |
这是具体的运行日志
Error output from CocoaPods:
Finished with error: Error running pod install |
给出的日志是这样的, 这意思是 cocoapod 中报出来的错误. 核心错误是说文件找不到 所以如果你 ios 文件中如果没有进行过修改, 是不是可以尝试删除掉 ios 文件夹 接着执行
如果还不行 把你的 以下是你的日志 Command
Report
Stack
Plugins
Podfile# Uncomment this line to define a global platform for your project
# platform :ios, '9.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 parse_KV_file(file, separator='=')
file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path
return [];
end
pods_ary = []
skip_line_start_symbols = ["#", "/"]
File.foreach(file_abs_path) { |line|
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
plugin = line.split(pattern=separator)
if plugin.length == 2
podname = plugin[0].strip()
path = plugin[1].strip()
podpath = File.expand_path("#{path}", file_abs_path)
pods_ary.push({:name => podname, :path => podpath});
else
puts "Invalid plugin specification: #{line}"
end
}
return pods_ary
end
target 'Runner' do
use_frameworks!
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system('rm -rf .symlinks')
system('mkdir -p .symlinks/plugins')
# Flutter Pods
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
if generated_xcode_build_settings.empty?
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first."
end
generated_xcode_build_settings.map { |p|
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
symlink = File.join('.symlinks', 'flutter')
File.symlink(File.dirname(p[:path]), symlink)
pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
end
}
# Plugin Pods
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods.map { |p|
symlink = File.join('.symlinks', 'plugins', p[:name])
File.symlink(p[:path], symlink)
pod p[:name], :path => File.join(symlink, 'ios')
}
end
# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
install! 'cocoapods', :disable_input_output_paths => true
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end Error
|
你好,谢谢你的回复 |
This comment has been minimized.
This comment has been minimized.
在这个issue查到了问题所在,是因为cocoapods版本导致,我目前的版本是1.8.1,将其降级为1.7.5就可以了。 然后重新pod install 就可以了,不过由于依赖下载慢,所以如果公司wifi不是很好建议有条件的用4G or 在家里下, |
@all-contributors please add @jinsong5 for question |
I've put up a pull request to add @jinsong5! 🎉 |
@befovy curl: (22) The requested URL returned error: 404 Not Found 问下这个是什么原因 FIJKPlayer.tar.gz地址不存在 pod install 报这个错了 |
@befovy |
@eleanors 我也没遇到或这个问题,建议清空 flutter 缓存,清空 pub 缓存,清空 pod 缓存。清空缓存后重试看看 |
@befovy |
但我的建议是, 你如果确实不知道如何去完成这一步的依赖方式, 可以下载库后, 将本库作为一个本地的package来引入 flutter 项目. |
@all-contributors please add @CaiJingLong for question |
I've put up a pull request to add @CaiJingLong! 🎉 |
报错信息如下
The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/apple/code/IH_MT/IH_MT/ios/Pods/FIJKPlayer/IJKPlayer.framework)
然后看了一下别人的解决方案
在spec文档中添加s.static_framework=true时
报了另外一个错误
no file found Fijkplayer. json
我使用的版本是0.1.4
The text was updated successfully, but these errors were encountered: