【发布时间】:2019-09-09 07:23:38
【问题描述】:
我正在尝试在 iOS 中打包一个 python 应用程序。 该应用程序非常简单,只有 1 行:
from firebase import firebase
我按照此链接的说明进行操作:
https://github.com/kivy/kivy-ios
一切都很好。我使用 Xcode 将应用程序推送到虚拟模拟器。我需要安装一个配方 pycrypto。于是我移到kivy-ios文件夹,按照指示运行以下代码:
sudo ./toolchain.py build pycrypto
失败并出现以下错误(或警告):
hcaos-iMac:kivy-ios hcao$ sudo ./toolchain.py build pycrypto
[INFO ] Building with 4 processes, where supported
[INFO ] Want to build ['pycrypto']
[INFO ] Loaded recipe pycrypto (depends of ['python', 'openssl'], optional are [])
[INFO ] Loaded recipe python (depends of [u'python3'], optional are [])
[INFO ] Loaded recipe openssl (depends of [], optional are [])
[INFO ] Loaded recipe python3 (depends of ['hostpython3', 'libffi', 'openssl'], optional are [])
[INFO ] Loaded recipe hostpython3 (depends of [], optional are ['openssl'])
[INFO ] Loaded recipe libffi (depends of [], optional are [])
[INFO ] Build order is ['libffi', 'openssl', 'hostpython3', u'python3', 'python', 'pycrypto']
[INFO ] Recipe order is ['libffi', 'openssl', 'hostpython3', 'python3', 'pycrypto']
[INFO ] Include dir added: {arch.arch}/ffi
[INFO ] Include dir added: {arch.arch}/openssl
[INFO ] Global: hostpython located at /Users/hcao/Desktop/kivyios-python3/kivy-ios/dist/hostpython3/bin/python
[INFO ] Global: hostpgen located at /Users/hcao/Desktop/kivyios-python3/kivy-ios/dist/hostpython3/bin/pgen
[DEBUG ] Cached result: Download libffi. Ignoring
[DEBUG ] Cached result: Extract libffi. Ignoring
[DEBUG ] Cached result: Build_all libffi. Ignoring
[DEBUG ] Cached result: Download openssl. Ignoring
[DEBUG ] Cached result: Extract openssl. Ignoring
[DEBUG ] Cached result: Build_all openssl. Ignoring
[DEBUG ] Cached result: Download hostpython3. Ignoring
[DEBUG ] Cached result: Extract hostpython3. Ignoring
[DEBUG ] Cached result: Build_all hostpython3. Ignoring
[DEBUG ] Cached result: Download python3. Ignoring
[DEBUG ] Cached result: Extract python3. Ignoring
[DEBUG ] Cached result: Build_all python3. Ignoring
[DEBUG ] Cached result: Download pycrypto. Ignoring
[DEBUG ] Cached result: Extract pycrypto. Ignoring
[DEBUG ] Cached result: Build_all pycrypto. Ignoring
我在 VirtualBox 中使用 Mojave,python3。 我不知道为什么一切都“忽略”。 我的应用程序可以在 Linux for android 中成功打包。 我根本不是 Mac 用户。请帮我解决问题。 任何事情都值得赞赏。
【问题讨论】:
标签: ios python-3.x kivy