[英]Why can' t I run ./toolchain.py while building my kivy app on MacOS?
I've been following this tutorial about building app for iOS.我一直在关注这个关于为 iOS 构建应用程序的教程。 I'm currently stuck on this moment of video: https://youtu.be/UAi3PG-qN2k?t=414
我目前停留在视频的这一刻: https://youtu.be/UAi3PG-qN2k?t=414
When I input: sudo./toolchain.py build python3 openssl kivy当我输入: sudo./toolchain.py build python3 openssl kivy
My terminal returns:我的终端返回:
sudo: ./toolchain.py: command not found or ./toolchain.py: Permission denied when I don't add sudo at the beginning sudo: ./toolchain.py: command not found or ./toolchain.py: Permission denied当我没有在开头添加 sudo
I don't know what to do.我不知道该怎么办。 Could you guys help me?
你们能帮帮我吗? I'm new with MacOS My MacOS is High Sierra and I downloaded Xcode 10.1
我是 MacOS 新手 我的 MacOS 是High Sierra ,我下载了 Xcode 10.1
Thank you for help!谢谢你的帮助!
I'm currently following the same tutorial.我目前正在遵循相同的教程。 In newer versions of macOS/Xcode, you can just use
$ toolchain
rather than the full $./toolchain.py
so long as you have the Xcode Command Line Tools installed.在较新版本的 macOS/Xcode 中,只要安装了 Xcode 命令行工具,就可以只使用
$ toolchain
而不是完整的$./toolchain.py
。 The rest of the build
command that follows is the same.后面的
build
命令的rest是一样的。
Follow this page for the updated guide:请关注此页面以获取更新的指南:
https://github.com/kivy/kivy-ios https://github.com/kivy/kivy-ios
EDIT: I came across the same error when rebuilding python3 kivy.编辑:我在重建 python3 kivy 时遇到了同样的错误。 Check to make sure that you've installed
kivy-ios==master
and NOT the pip3 version (it's very outdated):检查以确保您已安装
kivy-ios==master
而不是 pip3 版本(它非常过时):
$ pip3 uninstall kivy-ios
$ git clone git://github.com/kivy/kivy-ios
Then you should be able to run: $ sudo python./toolchain.py build python3 kivy
然后你应该能够运行:
$ sudo python./toolchain.py build python3 kivy
Let me know if you're still having issues.如果您仍有问题,请告诉我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.