简体   繁体   中英

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. When I build and run the code to get the simulation, the building fails and I get this error. I assume that the TypeError is the issue. Inside my code, I have SQL queries, so I've removed the comma and added '%' instead. When a tuple is called to fill in the variables, it doesn't work. Maybe it is not the error after all?? Any ideas?

在此处输入图像描述

It could be a simple case like (or similar):

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

You forgot a comma.

Or, you may have a variable named str .

If you're still unable to solve then try a Trial & Error method to scrutinize where exactly the error may be stemming from, ie delete/comment out code that you think could be the root cause of this and you will eventually locate it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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