Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app testing. App installation failed. No code signature found [closed]

I've tried to install my app on several iOS devices. But this thing didn't let me to.

enter image description here

I want to know, what the problem is and how should I solve it.

like image 236
Robert Khaireev Avatar asked Jul 14 '16 09:07

Robert Khaireev


3 Answers

In my case, the problem was unsigned frameworks.

Xcode 11 or above:

Go to Build Phases, expand Embedded Frameworks and select all Code Sign on Copy checkboxes.

Xcode 10 or earlier:

Build Phases > Copy Files > Code Sign on Copy (select all checkboxes)

Code Sign on Copy selected in every row

like image 75
derevo Avatar answered Nov 18 '22 01:11

derevo


I had this problem, this is what I did to resolve it:

  • Run "clean" in Xcode
  • Close Xcode
  • Remove all data in ~/Library/Developer/Xcode/DerivedData
  • Remove all xcuserdata folders in your project (check in your xcodeproj and project.xcworkspace directories)

Only if you have Cocoapods in your project:

  • Run pod deintegrate.
  • Remove your .xcworkspace if it was created by CocoaPods.
  • Run pod install or pod update

Now you can open your fresh Xcode.

Hope this help you.

In my case the problem was created by adding a new cocoa touch framework.

like image 30
ucotta Avatar answered Nov 17 '22 23:11

ucotta


If "code sign on copy" fails, then check if you are modifying the frameworks in a run script after the "Embed Frameworks" phase.

If you are, then move the Run script to a position before the "Embed Frameworks" phase.

like image 19
rockdaswift Avatar answered Nov 17 '22 23:11

rockdaswift