Failing to install my flutter app to my iPad - ios

I fail to install my flutter app to my iPad and I wonder what could cause this.
I am using automatically signing and is kind of lost what is actually needed to get this to work.
I.e. I can't see that I have added my iPhone device anywhere, where I also should add my iPad.
Installing to my iPhone works
Launching lib/main.dart on Gunnars iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: HZ4ZKW97SC
Running pod install... 9,5s
Running Xcode build...
Xcode build done. 32,1s
Installing and launching... 24,2s
Debug service listening on ws://localhost:1024/ws
Syncing files to device Gunnars iPhone...
Installing to my iPad fails
Launching lib/main.dart on Gunnars iPad in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: HZ4ZKW97SC
Running Xcode build...
Xcode build done. 29,6s
Installing and launching...
Installing and launching... 17,7s
════════════════════════════════════════════════════════════════════════════════
No Provisioning Profile was found for your project's Bundle Identifier or your
device. You can create a new Provisioning Profile for your project in Xcode for
your team by:
1- Open the Flutter project's Xcode target with
open ios/Runner.xcworkspace
2- Select the 'Runner' project in the navigator then the 'Runner' target
in the project settings
3- Make sure a 'Development Team' is selected.
- For Xcode 10, look under General > Signing > Team.
- For Xcode 11 and newer, look under Signing & Capabilities > Team.
You may need to:
- Log in with your Apple ID in Xcode first
- Ensure you have a valid unique Bundle ID
- Register your device with your Apple Developer Account
- Let Xcode automatically provision a profile for your app
4- Build or run your project again
It's also possible that a previously installed app with the same Bundle
Identifier was signed with a different certificate.
For more information, please visit:
https://flutter.dev/setup/#deploy-to-ios-devices
Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════
2020-07-04 10:38:32.180 ios-deploy[93017:5221164] [ !! ] Error 0xe8008015: A valid provisioning profile for this executable was not found. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Could not run build/ios/iphoneos/Runner.app on 00008027-001D098C0A87002E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Error launching application on Gunnars iPad.
Managed to install to iPad from xcode
I followed th advice to try to run from with in xcode and then I managed to install the app to my iPad.
But when efter that trying from flutter/intellij I get the following ...
Launching lib/main.dart on Gunnars iPad in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: HZ4ZKW97SC
Running pod install... 9,0s
Running Xcode build...
Xcode build done. 142,2s
Installing and launching...
Installing and launching... 16,3s
═══════════════════════════════════════════════════════════════════════════════════
Error launching app. Try launching from within Xcode via:
open ios/Runner.xcworkspace
Your Xcode version may be too old for your iOS version.
═══════════════════════════════════════════════════════════════════════════════════
2020-07-04 12:20:06.647 ios-deploy[68752:5425107] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)
Could not run build/ios/iphoneos/Runner.app on 00008027-001D098C0A87002E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Error launching application on Gunnars iPad.

Related

I just can't get App Check to work on my iOS deployment

I have been trying and trying to enable App Check for the iOS version of my app. The Android version is working fine.
I have followed the instructions at: https://firebase.google.com/docs/app-check
Here is my build output:
flutter build ipa
💪 Building with sound null safety 💪
Archiving [bundle ID]...
Updating project for Xcode compatibility.
Upgrading Runner.xcscheme
Automatically signing iOS for device deployment using specified development team in Xcode project: [team ID]
Running pod install... 10.6s
Running Xcode build...
└─Compiling, linking and signing... 10.8s
Xcode archive done. 358.4s
Built .../build/ios/archive/Runner.xcarchive.
Building App Store IPA... 4.2s
Encountered error while creating the IPA:
error: exportArchive: "Runner.app" requires a provisioning profile with the Push Notifications and App Attest features.
Try distributing the app in Xcode: "open .../build/ios/archive/Runner.xcarchive"
My provisioning profile looks like:
My XCode Signing & Capabilities:
I used Xcode to distribute the app archive to App Store Connect, which was successful.
When my son loads the app via TestFlight on his iPhone, he cannot use any function that reads/writes to Firebase (in enforcement mode). I can see in the Firebase console that the requests from his iPhone are invalid and are being rejected.
Anyone got any suggestions? I feel like I've tried everything.
Thanks,
Luke

Could not run build/ios/iphoneos/Runner.app on

I was running the app on my iPhone using Xcode and android studio. It worked fine. But I downloaded the same app through the app store on the same phone. And now when I run it on android studio, it shows the following error:
Launching lib/main.dart on iPhone in debug mode... Automatically
signing iOS for device deployment using specified development team in
Xcode project: 59HZQ7G7DK Running Xcode build... Xcode build done.
29.2s Installing and launching... Could not run build/ios/iphoneos/Runner.app on
5bde4016fc......5f1439d5ef0. Try launching Xcode and
selecting "Product > Run" to fix the problem: open
ios/Runner.xcworkspace
Error launching application on iPhone.
Running on Xcode shows the following error message
I tried deleting the app and rerunning it using android studio but the same error still appears.
Any idea how to resolve this?
-------------------Edit Below----------------------
I then followed this and deleted "Iphone Developer" and "Apple Worldwide Developer Relations Certification Authority".
However, after deleting, another error message appears when running on xcode as shown:
Command PhaseScriptExecution failed with a nonzero exit code
I then went over to the Member Center on the Apple Developer website to download the apple development cert but now it shows the same error message as the first error message shown above.
I then deleted all my provisioning profiles following this. Restarted the phone and rerun and the problem is resolved.

Flutter:1.20.2 : Error launching application on iPhone

Launching lib/main.dart on iPhone in debug mode...
Signing iOS app for device deployment using developer identity: "Apple Development: siangztang#gmail.com (APHJCKJCD5)"
Xcode build done. 4.8s
Failed to build iOS app
Error output from Xcode build:
↳
Exited (sigterm)
Could not build the precompiled application for the device.
It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
open ios/Runner.xcworkspace
Error launching application on iPhone.
It seems that for me the flutter_svg package was causing the issue.
Bumping its version to flutter_svg: ^0.18.0 solved the issue.

Cannot deploy to device using Ionic cli (but succeed with Xcode)

I followed all the steps mentioned in the Ionic deployment documentation and successfully deployed my Ionic app to my iPhone using Xcode's "play" button, using the free "Personal team" provisioning profile. However, I cannot deploy from the command line; running ionic cordova run iOS --device fails and outputs:
=== BUILD TARGET MyApp OF PROJECT MyApp WITH CONFIGURATION Debug ===
Check dependencies
No profiles for 'eu.empain.apps' were found: Xcode couldn't find a provisioning profile matching
'eu.empain.apps'.
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
In Xcode, the team is set correctly in "Build settings > Signing", and the provisioning profile exists in ~/Library/MobileDevice/Provisioning\ Profiles/.
Not being able to launch through the command line prevents me from using live reload and console logs with -c and -l options. Hence, I cannot debug errors that occur on app launch.
I'm using:
Cordova 7.0.1
OS X 10.12.5
Xcode 8.3.3
Ionic 3.4.0
I found a possible duplicate, but the solution does not apply to me since all my versions are equal or greater to those mentioned in that thread.

xcode 6.1.1 App installation failed Could not inspect the application package

I'm install app to iPad 3 (iOS 8.1.1, debug mode, provision profile and certificate is correct).
I get error in xcode "App installation failed. Could not inspect the application package." See screenshots.

Resources