The entitlements specified in your application’s Code Signing Entitlements file do not match those s

错误描述

真机测试过程中,更换Provisioning Profile之后,出现错误:The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile.

解决办法

网上的办法有两种:
1、删除 Build Settings里面的 Code Signing Entitlements的值
2、第二种是自己创建一个plist文件,设置get-task-allow
请参考:
可惜以上两种方式对我都没有用,第一种方法,我的本来就没有值;第二种方法在Xcode6.1中也没能成功。如果你也一样没能解决问题,可以试试我的办法:
打开 Capabilities选项卡,对应App Id中的设置,打开对应服务的开关,这时会自动在工程中生成一个“projectname.entitlements”文件。重新Build即可。


(测试用的,所以打开了所有服务)

运行成功之后,关闭这些开关,并删除.entitlements文件,一样可以Build成功。看到这里是不是觉得Xcode很折腾?
  • 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、付费专栏及课程。

余额充值