我正在尝试用SDK Developer编译一个应用程序,在完全重新安装OSX (10.10.5)而没有备份后,我不得不重新安装所有的应用程序,所以我下载了TideSDK Developer的最新版本(1.4.2),并下载了我一直在这个应用程序上使用的TideSDK (1.1.0)。
但是每次我编译的时候,我都会得到这个错误:
Preparing to package and launch desktop app. One moment...
Traceback (most recent call last):
File "/Users/ricardo/Library/Application Support/TideSDK/sdk/osx/1.1.0/tibuild.py", line 112, in
app.stage(path.join(options.destination, app.name), bundle=bundle)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 73, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 40: ordinal not in range(128)
Done launching!将项目文件夹移动到Application Support/TideSDK后,安装Python 3.5并为两个Python版本设置以下权限:
export LANG="en_EN.UTF-8"
export LC_COLLATE="en_EN.UTF-8"
export LC_CTYPE="en_EN.UTF-8"
export LC_MESSAGES="en_EN.UTF-8"
export LC_MONETARY="en_EN.UTF-8"
export LC_NUMERIC="en_EN.UTF-8"
export LC_TIME="en_EN.UTF-8"
export LC_ALL=C
export PYTHONIOENCODING=utf8现在,这是输出日志:
Traceback (most recent call last):
File "/Users/ricardo/Library/Application Support/TideSDK/sdk/osx/1.1.0/tibuild.py", line 112, in
app.stage(path.join(options.destination, app.name), bundle=bundle)
File "/Users/ricardo/Library/Application Support/TideSDK/sdk/osx/1.1.0/osx_app.py", line 16, in stage
App.stage(self, stage_dir, bundle=bundle)
File "/Users/ricardo/Library/Application Support/TideSDK/sdk/osx/1.1.0/app.py", line 161, in stage
effess.copy_to_dir(installer_source, contents, exclude=self.env.get_excludes() + ['.dll', '.msm'])
File "/Users/ricardo/Library/Application Support/TideSDK/sdk/osx/1.1.0/effess.py", line 57, in copy_to_dir
copy_to_dir_impl(*args, **kwargs)
File "/Users/ricardo/Library/Application Support/TideSDK/sdk/osx/1.1.0/effess.py", line 109, in copy_to_dir_impl
copy_item(src, dest)
File "/Users/ricardo/Library/Application Support/TideSDK/sdk/osx/1.1.0/effess.py", line 87, in copy_item
copy_items(src, dest)
File "/Users/ricardo/Library/Application Support/TideSDK/sdk/osx/1.1.0/effess.py", line 100, in copy_items
for item in os.listdir(src):
OSError: [Errno 13] Permission denied: '/Library/Application Support/Titanium/sdk/osx/1.1.0/installer'
Done launching!发布于 2016-02-11 01:42:28
您可能遇到了这里描述的问题:UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1
在运行编译之前,尝试在终端中运行以下命令:
export LANG=en_US.UTF-8如果您正在通过另一个程序(Titanium?)运行此编译,那么您可能必须编辑您的导出(在您的主文件夹中),并包含“.bash_profile”行。在终端中运行此命令
nano ~/.bash_profile并将导出文件添加到文件的末尾。您可能需要注销并重新登录,以使此更改在安装程序中生效。
附言:我现在在Windows机器上,所以我还不能测试这个。
https://stackoverflow.com/questions/35320885
复制相似问题