Xcode 9 GM - Export and Upload to App Store crashing

后端 未结 7 1493
野的像风
野的像风 2021-02-14 09:31

I\'m trying to upload my app that uses ARKit (Unity build) to iTunes Connect for TestFlight distribution. While both exporting and uploading to app store processes from Xc

7条回答
  •  无人共我
    2021-02-14 09:55

    I solved my problem following @dangercheng's answer. I upgraded my python to python 3.6 two days ago.And it seems that the xattr command was executed under python3.6 . However, when I execute xattr in terminal. File "/usr/bin/xattr", line 31 continue ^ TabError: inconsistent use of tabs and spaces in indentation Something bad happened! So I edit the source code of xattr. for i in g: vers = vpat.search(i) if vers is None: continue //add 4 space sys.stderr.write("%s (uses python %s)\n" % (i, i[vers.start():vers.end()])) n = 1

    ``` python version 3.6.3 can't run /usr/bin/xattr. Try the alternative(s):

    (Error: no alternatives found)

    Run "man python" for more information about multiple version support in Mac OS X. ``` another error!

    I guess the xattr command should judge the version of python and execute suitable codes and the code of python3 contains some error. Finally I change the default version of python to python2.7 and replace softlink of xattr to xattr-2.7. It works. Attention, when xcodebuild execute xattr command the path of python was "/usr/bin/python". The path "/usr/bin/python" was softlink too. So, I resolved this problem following this step. Step1: cd /usr/bin

    Step2: sudo rm python sudo ln -s python2.7 python

    Step3: sudo rm xattr sudo ln -s xattr-2.7 xattr If you can not found python2.7 under "/usr/bin", please find another suitable python path such as "/Library/Frameworks/Python.framework/Versions/2.7" etc.

提交回复
热议问题