当前位置: > > > Swift - 真机调试报 The executable was signed with invalid...错误

Swift - 真机调试报 The executable was signed with invalid...错误

今天将Codova做的ios工程项目编译发布到手机上时报:The executable was signed with invalid entitlements
下面具体信息是:The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016).

解决办法:
1,工程中添加个 Property List 类型的文件,添加后名称为 Entitlements.plist

2,编辑 Entitlements.plist,删除所有Root下的Key,然后添加一个 Boolean 类型,名称为 get-task-allow 的Key,状态为 true
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>get-task-allow</key>
	<true/>
</dict>
</plist>

3,Targets -> Build Settings 选项卡中,将 Code Signing Entitlements 的值设为 Entitlements.plist ,重新Build即可。
评论0