我正在尝试在iOS中打包一个python应用程序。
该应用程序非常简单,只需一行:

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,python3中使用Mojave。
我不知道为什么一切都在“忽略”。
我的应用程序可以在Linux for android中成功打包。
我根本不是Mac用户。请帮助我解决问题。
一切都赞赏。

最佳答案

看起来pycrypto已经从以前的版本进行了编译,因此它什么也没做。

编译新配方后,需要更新您的项目,以使用以下命令将新编译的配方包括到项目中:

./toolchain.py update myproject


另外,请不要使用sudo,我们永远不会要求或不需要管理员权限。

关于ios - 在iO中安装工具链配方时出现问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/57849458/

10-10 21:33