Flutter:1.20.2 : Error launching application on iPhone - ios

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.

Related

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.

Cannot build Flutter application for Xcode Simulator using Android Studio Flutter

I would like to ask how to compile my Flutter app for real devices or the simulator. Before these problems occurred, I could compile the Flutter app for iOS, but after the updates of Xcode + Flutter + AS, suddenly it can no longer run any Flutter apps.
Xcode itself can run the apps without any problems, but when I execute the command flutter run I get the following error:
Running Xcode build...
└─Compiling, linking and signing... 9.4s
Xcode build done. 36.5s
Failed to build iOS app
Error output from Xcode build:
↳
2020-12-17 11:10:56.911 xcodebuild[21278:254935] [MT] iPhoneConnect:
πŸ“±<DVTiOSDevice (0x7fbfceca2180), xxx’s iPhone, iPhone, 13.5.1 (17F80),
00008020-000928A82293802E> == Underlying device preparation errors ==
2020-12-17 11:10:56.912 xcodebuild[21278:254935] [MT] iPhoneConnect: Failed
_shouldMakeReadyForDevelopment check even though device is not locked by
passcode.
Domain: com.apple.platform.iphoneos
Code: 5
Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform:
<DVTPlatform:0x7fbfcb11ed40:'com.apple.platform.iphoneos':<DVTFilePath:0x7fb
fcb11eac0:'/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneO
S.platform'>>. DTDKDeviceIdentifierIsIDID: 0
User Info: {
DVTDeviceDescription = "\Ud83d\Udcf1<DVTiOSDevice (0x7fbfceca2180),
xxx\U2019s iPhone, iPhone, 13.5.1 (17F80),
00008020-000928A82293802E>";
}
--
2020-12-17 11:10:56.912 xcodebuild[21278:254935] [MT] iPhoneConnect:
πŸ“±<DVTiOSDevice (0x7fbfceca2180), xxx iPhone, iPhone, 13.5.1 (17F80),
00008020-000928A82293802E> == END: Underlying device preparation errors ==
** BUILD FAILED **
.........
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro.
This is the error I got from running (Flavor / newly created project). Currently, I can't run any flavor using Xcode, I can only run non-flavor projects from Xcode.
So far, I have tried:
https://github.com/flutter/flutter/issues/20685#issuecomment-421511890
Android Studio cannot run the Xcode Simulator
flutter clean && flutter run
Logging out of Xcode
Closing and reopening Xcode
Killing Xcode in the terminal.
If you have any ideas please let me know. I really am stuck with this kind of error using emulator or real device, thx!
Ok, I got fixed my issue after I tried to uninstall the second XCode, so this problems occurred because when previously I tried using my MAC I install the XCode beta version, then tried to publish my apps into playstore, because of XCode version I downloaded from AppsStore another XCode version, this somehow make clash for android studio to detect and occured this kind of error, hope this help when someone has this kind of issue

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 failed to build sample iOS app on VS Code

I'm trying to build the Flutter sample project on VS code, but got this messages... The sample is building and running fine on Android device, and I also tried running the sample with Android Studio on iOS simulator which is also fine. It just doesn't work on VS Code. Has anyone meet the same issue?
Flutter: v0.2.2
Launching lib/main.dart on iPhone 8 in debug mode...
Xcode build done
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/Sean/Documents/myapp/build/ios/Debug-iphonesimulator/Runner.app:resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1
Could not build the application for the simulator.
Error launching application on iPhone 8.
Exited (sigterm)
This is a new security measure in the Xcode build system.
You can go into details here : https://stackoverflow.com/a/39667628/6622328
For a quick fix, just clean the app before rebuilding it (flutter clean).
I suspect you don't have XCode installed, or have enabled your Runner project for your developer ID.

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

Resources