我已尝试按照此处的说明使用buildozer
为OSX打包Kivy应用程序;
https://kivy.org/docs/guide/packaging-osx.html
有一些问题。首先,它在本地查找Kivy.app
,然后在无法找到它的情况下下载它。
无论我在Kivy.app
还是本地/Applications
目录中都有.
,它仍然说无法找到它并尝试下载它。 (即使我从点子安装中运行kivy)
作为kivy
下载/安装的一部分,它会尝试下载keka
,但这会失败。所以整个过程都失败了。
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for osx
# Check if kivy-sdk-packager exists
# kivy-sdk-packager found at /Users/REDACTED/.buildozer/osx/platform
# check if Kivy.app exists in local dir
# Downloading Keka as dependency (to install Kivy)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 217 100 217 0 0 1394 0 --:--:-- --:--:-- --:--:-- 1391
hdiutil: attach failed - image not recognized
Traceback (most recent call last):
File "/usr/local/bin/buildozer", line 11, in <module>
load_entry_point('buildozer==0.33.dev0', 'console_scripts', 'buildozer')()
File "/usr/local/lib/python2.7/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/usr/local/lib/python2.7/site-packages/buildozer/__init__.py", line 1020, in run_command
self.target.run_commands(args)
File "/usr/local/lib/python2.7/site-packages/buildozer/targets/osx.py", line 237, in run_commands
func(args)
File "/usr/local/lib/python2.7/site-packages/buildozer/targets/osx.py", line 250, in cmd_debug
self.buildozer.prepare_for_build()
File "/usr/local/lib/python2.7/site-packages/buildozer/__init__.py", line 172, in prepare_for_build
self.target.check_requirements()
File "/usr/local/lib/python2.7/site-packages/buildozer/targets/osx.py", line 104, in check_requirements
self.ensure_kivyapp()
File "/usr/local/lib/python2.7/site-packages/buildozer/targets/osx.py", line 98, in ensure_kivyapp
self.download_kivy(kivy_app_dir, py_branch)
File "/usr/local/lib/python2.7/site-packages/buildozer/targets/osx.py", line 74, in download_kivy
check_call(('hdiutil', 'attach', 'Keka-1.0.4-intel.dmg'), cwd=cwd)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('hdiutil', 'attach', 'Keka-1.0.4-intel.dmg')' returned non-zero exit status 1
我从2016年11月开始遇到这个错误 https://github.com/kivy/buildozer/issues/427
这听起来像这个问题,但随后列出了他们遇到的一系列其他问题!
有没有人设法在OSX上使用buildozer
? buildozer
和/或Kivy
尚未准备好生产吗?
我正在为多平台项目评估它,但到目前为止还无法构建任何东西!