Application could not be verified error when building app for iPhone device

℡╲_俬逩灬. 提交于 2019-11-28 06:10:43

My problem was actually that I already installed the app via a testflight on my phone, after removing the app it worked!

I got it resolved by deleting already installed build from phone and then reinstall the build.

From this thread on ADC:

get-task-allow, when signed into an application, allows other processes (like the debugger) to attach to your app. Distribution profiles require that this value be turned off, while development profiles require this value to be turned on (otherwise Xcode would never be able to launch and attach to your app).

Check if your iPhone properly provisioned. You may connect iPhone and launch Organizer from XCode (Main Menu -> Window -> Organizer) and then check PROVISIONING PROFILES information.

After that you need to match Bundle Identifier (Project -> Info.plist) and your App ID. You may read this Apple Note Mismatch between App ID and Bundle Identifier

I had similar message boxes (two in a row) when my Bundle Identifier was incorrect.

Did you remember to expand Targets on the left of the project window, then right click on your app name > get info, then go to the Build tab and under Code Signing, under Code Signing Identity, change the value of Any iPhone OS Device to what applies in your case? Also in the properties tab you should have your identifier set so that it matches the identifier you chose.

Don't know if that helps, that's the step I found missing in your description though.

I know you've already checked some of this, but just so this answer is complete:

  • Check that the new provisioning profile and certificate is named at the target level for each build setting you want to install on the device.
  • Code Signing Entitlements must also be defined at the target level, not the project.
  • Double check your build log, looking for a line that includes CodeSign. Verify it is there and using the certificate you expect.
  • If all else fails, remove the code signing identity from your target, clean all targets, delete any build directories from your project, quit and restart Xcode, replace the code signing identity, and try your build again.

In addition to verifying the code signing, be sure to go to the Build menu and run "Clean all targets". Xcode gets mixed up from time to time.

Jeff Klein

Problem solved (at least for me!)

Export Developer profile on machine that works, then import on machine with the problem. Done through Preferences/Accounts, Gear icon on the bottom.

Going into Window > Devices and looking at the Installed Apps, I was able to find out that my app was already installed. Select the app and hit '-' to remove it from the device. Try rebuilding your app with that device as the target.

Worked for me, even though from the phone I couldn't find where the app was installed!

"The application could not be verified" , in your device there could be already an app installed with the same bundle identifier.

I got this issue because my had app from App store& I was testing its update Version from Xcode.& with same identifier as in my live app .

So Simple solution Just delete the App & install again.. ....

One important but easy to overlook item: make sure all your provisioning keys & certs are on the login keychain. I ran into this when I tried to create a new "development" keychain and all my profiles became "invalid".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!