繁体   English   中英

在 Xcode10.1 中构建 Python/Kivy 应用程序时收到此错误“Command PhaseScriptExecution failed with nonzero exit code”

[英]Receiving this error 'Command PhaseScriptExecution failed with nonzero exit code' when building a Python/Kivy app in Xcode10.1

I coded an app in Python and kivy and it works well in PyCharm and I tried to convert it into an actual Mac app through Xcode 10.1. 当我构建并运行代码以获取模拟时,构建失败并出现此错误。 我认为 TypeError 是问题所在。 在我的代码中,我有 SQL 查询,所以我删除了逗号并添加了“%”。 当调用元组填充变量时,它不起作用。 也许这毕竟不是错误? 有任何想法吗?

在此处输入图像描述

这可能是一个简单的案例,例如(或类似):

print ("The area of your shape is: ", (a*b))
#                                   ^

你忘了一个逗号。

或者,您可能有一个名为str的变量。

如果您仍然无法解决问题,请尝试“ Trial & Error法”来仔细检查错误的确切来源,即删除/注释掉您认为可能是其根本原因的代码,您最终会找到它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM