Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Device build fails after upgrading to Xcode 8

Since upgrading to Xcode 8 I cannot run any app on my iPhone. The build fails with error:

error: Task failed with exit 0 signal 11

I can run the apps on the simulators, just not on a device. The full error message:

error: Task failed with exit 0 signal 11 { /usr/bin/codesign '--force' '--sign' '7F49C2A625C8976762BDEA351F8DA88E4F6FED22' '--verbose' '/Users/reshef/Library/Developer/Xcode/DerivedData/testXcode-eltpwhxdshmmlygolxcnsroevmoo/Build/Products/Debug-iphoneos/testXcode.app/Frameworks/libswiftCore.dylib' }

like image 224
Jacob Reshef Avatar asked Oct 08 '16 12:10

Jacob Reshef


5 Answers

Damn Xcode...

After upgrading to High Sierra and Xcode 9, I have spend a lot of time... After combining all the answers here, I solved it in the following way.

  1. Delete the derived data as others said.
  2. Clean the project as others said.
  3. Restart the OS <-- This was the key. Only after a reboot it showed the password popup.
  4. When the popup shows that says xcode wants password to something, type your login password, and DO NOT PRESS ALLOW, but PRESS ALWAYS ALLOW. <- Important!
like image 150
Damn Vegetables Avatar answered Nov 19 '22 07:11

Damn Vegetables


Use automatically manage signing:

Go to Target --> General --> Signing, check the Automatically manage siging.

like image 26
Yahoho Avatar answered Nov 19 '22 09:11

Yahoho


cd /Users/xxx/Library/Developer/Xcode/DerivedData

clean ~

like image 1
Phil Avatar answered Nov 19 '22 07:11

Phil


Had the exact same issue. First cleaned the Product then restarted the computer. Worked for me!

like image 1
Bulent Keles Avatar answered Nov 19 '22 09:11

Bulent Keles


I found that by deleting my account under preferences and re-adding it, I can usually solve this problem.

  1. Click the Xcode menu and select Preferences...
  2. Select the Accounts tab.
  3. Select your developer account under "Apple IDs"
  4. Click the "-" button at the bottom to remove it.
  5. Add your developer account back with the "+" button.
like image 1
Chuck Wolber Avatar answered Nov 19 '22 08:11

Chuck Wolber