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

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.

Related

Failing to install my flutter app to my iPad

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.

Flutter (iOS) app start and stops with crash

I have developed a Flutter Android app and that is working fine. Now I am working on the iOS side. I have configured Firebase and notification APN etc. When I run the app by attaching the real device the app got installed but it just crashes and closes. There are no logs in the console of Android studio.
It just prints below logs.
Launching lib/main.dart on sign's iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode
project: ABCD7AUXYZ
Running Xcode build...
Xcode build done. 78.0s
Installing and launching...
Where can I find more logs about the crash?
When I build the project using the Xcode (Thanks to #Blasanka & #Kevin Renskers) I was able to find out the issue. Actually I was missing the Admob id in the plist file and the internet permission (thanks to #Stephen J).
thanks you for your time and help.

iPhone has denied the launch request Xcode 10 + Cordova

I have built a Cordova app, I've recently been able to build the app and run it on my phone prior to adding a new paid Apple Developer account to Xcode (not a Personal Team account).
Since adding this account, I am encountering the issue where the app will successfully build, but won't launch on the iPhone, it will continuously close every time I tap the app icon, in addition the error I get in Xcode is:
iPhone has denied the launch request.
Internal launch error: process launch failed: Unspecified
I'm running Xcode 10.2.1, building to an iPhone 6S Plus running iOS 12.4 (the latest), and am using Cordova 8.0.0
I've tried deleting the Apple Worldwide certificate, adding a new account, adding a new user to the system, restarting the machine, changing the Bundle Identifier.
Inside of the signing tab in general I have:
Team: [name of team]
Provisioning Profile: Xcode Managed Profile
Signing Certificate: iPhone Developer: [name of person] ([some ID])
In addition, I have currently got the following command: cordova run ios --buildFlag='-UseModernBuildSystem=0'
But the build system shouldn't matter here.
EDIT
Updating to Xcode 10.3 doesn't solve the issue.

Ionic V1 Xcode IOS run error Blank page at launch / Cordova, Ionic run ios : Build Failed

I have a problem for my IOS running Ionic V1 project.
I use last version of Xcode : V8.3.3
My Ionic CLI is V2.0.0
My Ionic Project is V1.0
My Device Iphone 6 IOS 10.3.2
My app is running fine on browser, and is running fine on emulator ios. Also my app is running fine on android device. Problem comes when I run on IOS device.
Through Xcode, I had many erros with provisionning profiles but now I don't have anymore and I use the Iphone Developer for signing certificate. I have no warning. But when I lanch "Run" command on device through Xcode, the app installs without any warnings and launch a blank screen with no error or output on the output console log of xcode.
So Xcode running devices gives me a blank app screen with no error.
Through "Ionic Run IOS" or "Ionic Run Ios --device" or "Ionic run ios -l -s --device" I have an error 65 Xcode : build failed with this error :
Check dependencies
signing for "MyApp" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'IOS 10.3'.
I have been looking on the web for days without any issue.
Please would someone help me to make this app working as I can publish it then with no blank screen..
Regards

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