0

i'm getting this error when i try to run my app on real device. Can anyone help me to solve?

PS. provisioning and signing identity are setted correctly.. in fact, until a few hours ago everything worked fine

CodeSign /Users/user/Library/Developer/Xcode/DerivedData/MilitariTest-eckbgmqsefbhupgakvywpmavdthi/Build/Products/Debug-iphoneos/MilitariTest.app
    cd /Users/user/Desktop/MilitariTest/MilitariTest
    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/bin:/bin:/usr/sbin:/sbin"
    Using code signing identity "iPhone Developer" and provisioning profile "iOS Team Provisioning Profile" (XXXXX)
    /usr/bin/codesign --force --sign XXXXX --resource-rules=/Users/user/Library/Developer/Xcode/DerivedData/MilitariTest-eckbgmqsefbhupgakvywpmavdthi/Build/Products/Debug-iphoneos/MilitariTest.app/ResourceRules.plist --entitlements /Users/user/Library/Developer/Xcode/DerivedData/MilitariTest-eckbgmqsefbhupgakvywpmavdthi/Build/Intermediates/MilitariTest.build/Debug-iphoneos/MilitariTest.build/MilitariTest.xcent /Users/user/Library/Developer/Xcode/DerivedData/MilitariTest-eckbgmqsefbhupgakvywpmavdthi/Build/Products/Debug-iphoneos/MilitariTest.app

sh: /usr/bin/codesign: Unknown error: -22

i finally found a solution, i had to reinstall mac os x, now all working well, without any change to the project

1 Answers1

0

Just try to remove your derived data.

  • There are two ways to remove your app derived data.
  • 1) Go to this path press shift+Commmand+G and enter this path
    There you will find your application folder just remove that don't worry.

    ~/Library/Developer/Xcode/DerivedData

  • 2) From Xcode Window>organizer>projects> select your app and press delete.
utkal patel
  • 1,321
  • 1
  • 15
  • 24