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“,这个曾近尝试了很多办法,最后这样解决了。
xcode中点击PROJECT->TRAGET->Build Settings->Code Signing->Code Signing Entitlements,将里面的值清空即可,不如我的就是XXX ios.entitlements,将其删掉,如下图: