Can't run(debug) App on Device

I working with macos Sierra en xcode 8.0


Creating an objective-c App In the simulator no problems. Running on my Ipad i get the following message:


CodeSign /Users/aad/Library/Developer/Xcode/DerivedData/TestOC-dbkyvbcrpfvbgfghxadarkghjrzf/Build/Products/Debug-iphoneos/TestOC.app

cd /AppStones/Projecten/IosProjecten/TestOC

export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity: "iPhone Developer: Aad Glasbergen (32A254WUH8)"

Provisioning Profile: "iOS Team Provisioning Profile: *"

(20e5defb-711e-493f-921e-380110490e8d)


/usr/bin/codesign --force --sign C2D5A6FB111CBEB2D727B45DBDE260A748C92634 --entitlements /Users/aad/Library/Developer/Xcode/DerivedData/TestOC-dbkyvbcrpfvbgfghxadarkghjrzf/Build/Intermediates/TestOC.build/Debug-iphoneos/TestOC.build/TestOC.app.xcent --timestamp=none /Users/aad/Library/Developer/Xcode/DerivedData/TestOC-dbkyvbcrpfvbgfghxadarkghjrzf/Build/Products/Debug-iphoneos/TestOC.app


Command /usr/bin/codesign failed with exit code 5


When I make a swift app and Xamarin App I get also a error code when try to run on my iPad.


I have trown away all my certificates en profiles and regenerate them using xcode but also Manually nothing works.


Someone with the same problem or can someone help me what is going wrong

Hi Aad,

It's a pretty frustrating one. Only current workaround is if you happen to have a machine still on El Capitan.

Duplicate of this issue:

https://forums.developer.apple.com/thread/64784


If you file an issue directly with apple that might help (as more of us do this):

https://bugreport.apple.com

Can't run(debug) App on Device
 
 
Q