אהרן אדלמן
אהרן אדלמן

Reputation: 509

Installation error on iPadOS 17 and iOS 17: "Failed to verify code signature"

I have all my Apple devices up-to-date (macOS Sonoma 14.0, iPadOS 17.0.2, iOS 17.0.2, watchOS 10.0.1, Xcode 15.0). I have an app I am working on, Date-O-Rama, and until a few days ago, Xcode installed it on my iPad and iPhone. Now I am getting cryptic errors when I try to install and run a new build of Date-O-Rama on either device:

Error message for the iPad:

לא ניתן להתקין את ״Date-O-Rama״ [Translation from the Hebrew: Could not install “Date-O-Rama”.] Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.cRw8yc/extracted/Payload/Date-O-Rama.app : 0xe8008001 (An unknown error has occurred.) Verify that the Developer App certificate for your account is trusted on your device. Open Settings on the device and navigate to General -> VPN & Device Management, then select your Developer App certificate to trust it.

Error message for the iPhone:

Failed to install the app on the device.

I have tried making sure the developer app certificate is installed on my iPhone and iPad. The devices claim the certificate is not trusted and do not let me make them trusted.

For comparison: I can install and run Date-O-Rama without problems on my MacBook Pro (in Catalyst).

How do I fix this problem?

Upvotes: 8

Views: 8459

Answers (6)

tim-montague
tim-montague

Reputation: 17432

Xcode may have been signed out of the account that is used to code sign the application.

  1. Set Team to your account in Xcode by going to "Show Project Navigator" > Targets > Runner > Signing & Capabilities > All > Team
  2. Clean the build cache in flutter: flutter clean ios
  3. Run again flutter run ios

Upvotes: 0

Fiona Kate
Fiona Kate

Reputation: 173

Delete the app from the phone. Then run it again. It will get installed and work fine.

Upvotes: 16

AnthoPak
AnthoPak

Reputation: 4391

If you already have a version of your app on the App Store or on TestFlight, download it from there (it will overwrite your current dev app). Then, when you run from Xcode, it should start working again normally! And you've kept all the app data.

Upvotes: 4

Lin
Lin

Reputation: 11

Add CODE_SIGNING_ALLOWED=YES in BuildSetting

Upvotes: 0

R DV
R DV

Reputation: 1

Cleaning the build folder fixed this problem for me. For context, I had an earlier error because my login had expired. This login failure was retained in the cache, and clearing the cache solved the problem installing the app on the test device.

Upvotes: 0

Ade Septian
Ade Septian

Reputation: 85

I have just updated my phone to iOS 17.0.2 and encountered this as well, what fixed it for me was:

  • Go to Manage Run Destinations
  • Unpair device
  • Unplug the device then quit Xcode
  • Plug the device back in
  • Launch Xcode
  • Tap trust on the popup, then run again

Upvotes: 7

Related Questions