Hello,
I'm encountering an issue when trying to build and launch a Flutter app on a physical iOS device using Android Studio.
Here is the full log:
`Launching lib/main.dart on (iPhone Name) in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: (Project ID)
Running Xcode build...
Xcode build done. 19.7s
Failed to build iOS app
Could not build the precompiled application for the device.
Error (Xcode): Target debug_unpack_ios failed: Exception: Failed to codesign (Project Names)/build/ios/Debug-iphoneos/Flutter.framework/Flutter with identity (identity ID).
Error launching application on (iPhone Name).`
This only happens when using Android Studio.
When I build the same project using Xcode, it runs fine on the same device.
Background:
- I accidentally deleted all Apple accounts from Xcode recently.
- In Keychain Access, I had three identical certificates; I deleted the older two and kept the newest one.
- I suspect this may be related to provisioning or code signing, but I’m not sure how to resolve it within Android Studio.
Any advice or steps to fix this would be greatly appreciated.
Thanks in advance!
My general advice here is:
-
In Xcode, create a new test project from the iOS > App template.
-
In Signing & Capabilities, enable automatic code signing and select your team.
-
See if you can get that building and running on a real device.
If that works, it’s confirmation that the Apple side of this is working correctly. If you then have problems with your third-party tooling setup, I recommend that you raise that via the support channel for those tools.
OTOH, if you can’t get that to work then please post here with the details and I’d be happy to help out.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"