CODE_SIGN_ENTITLEMENTS build setting for target 问题

变更了目录路径之后报这个错误。

解决方法:Build Settings -> 搜索entitlements,找到 Code Signing Entitlements
双击修改entitlements文件目录。可以Show in finder 直接把文件拖进去,也可以在文件名前加个(SRCROOT)/xxx.entitlements。这个目录补充在PrefixHeader文件中也可同样适用。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
# -*- mode: python ; coding: utf-8 -*- import os currentUrl = os.path.abspath(os.path.join("__file__")) SETUP_DIR = os.path.dirname(currentUrl)+"\\" def findAllFilesWithSpecifiedSuffix(target_dir, target_suffix="py"): find_res = [] target_suffix_dot = "." + target_suffix walk_generator = os.walk(target_dir) for root_path, dirs, files in walk_generator: if len(files) < 1: continue for file in files: file_name, suffix_name = os.path.splitext(file) if suffix_name == target_suffix_dot: find_res.append(os.path.join(root_path, file)) return find_res py_files = findAllFilesWithSpecifiedSuffix(SETUP_DIR) block_cipher = None a = Analysis(py_files, pathex=[SETUP_DIR], binaries=[], datas=[(SETUP_DIR+'Json_File','Json_File'),(SETUP_DIR+'Remote_file','Remote_file')], hiddenimports=['pyttsx3','pyserial','opencv-python','pillow','openpyxl'], hookspath=[], hooksconfig={}, runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, noarchive=False) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE(pyz, a.scripts, [], exclude_binaries=True, name='host_structure', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, console=False, disable_windowed_traceback=False, target_arch=None, codesign_identity=None, entitlements_file=None) coll = COLLECT(exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=True, upx_exclude=[], name='TCLtester')报错:ValueError: the environment variable is longer than 32767 characters
06-07

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值