Xcode 11.5 not installing app on iPhone running iOS13.5 - ios

An app I was developing was running fine on my iPhone then after updating iOS, the app builds but does not install to the phone but works in the simulator. A message pops up saying unable to install "app name".
What I have tried
-Reinstalling Xcode
-Deleting and adding provisioning profiles
-restarting Mac and iPhone
-Create a new blank app
It still fails to install after all that I've done
Below is the details of why it fails:
Details
Unable to install "CharliNote" Domain:
com.apple.dt.MobileDeviceErrorDomain Code: -402653081
-- There was an internal API error. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402653081 User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE8000067)";
"com.apple.dtdevicekit.stacktrace" = ( 0 DTDeviceKitBase 0x000000012830881a DTDKCreateNSErrorFromAMDErrorCode + 233 1
DTDeviceKitBase 0x0000000128349f70
90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke
+ 155 2 DVTFoundation 0x000000010ef11155 DVTInvokeWithStrongOwnership + 73 3 DTDeviceKitBase
0x0000000128349ca8 -[DTDKMobileDeviceToken
installApplicationBundleAtPath:withOptions:andError:withCallback:] +
1654 4 IDEiOSSupportCore 0x00000001281c0e91
__118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352
+ 4165 5 DVTFoundation 0x000000010f0447f4 __DVT_CALLING_CLIENT_BLOCK + 7 6 DVTFoundation 0x000000010f046436 __DVTDispatchAsync_block_invoke + 1194 7
libdispatch.dylib 0x00007fff67c226c4
_dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x00007fff67c23658 _dispatch_client_callout + 8 9 libdispatch.dylib
0x00007fff67c28c44 _dispatch_lane_serial_drain + 597 10
libdispatch.dylib 0x00007fff67c295d6
_dispatch_lane_invoke + 363 11 libdispatch.dylib 0x00007fff67c32c09 _dispatch_workloop_worker_thread + 596 12
libsystem_pthread.dylib 0x00007fff67e7da3d
_pthread_wqthread + 290 13 libsystem_pthread.dylib 0x00007fff67e7cb77 start_wqthread + 15 ); }
System Information
macOS Version 10.15.4 (Build 19E287) Xcode 11.5 (16139)

I had the same issue and I solved it. In my case, I wanted to re-use a NotificationContentExtension between various projects and went one step too far, removing basically every file from the extension. I fixed that by placing one file in the extension that simply inherited from the class that I wanted to reuse but had no further content.
The reason I could figure out that this was the problem was that I tried to install to the simulator instead of my device, and it clearly stated it could not find NotificationExtension. So definitely try to install it to the Simulator in this case, to see if it yields a more detailed error message.

Related

Failed to install the requested application ios xcode

So I had a fully working app, on which I was doing some updates, I was working on the last things, and testing on a real device, I run the app and test it, there was a UILabel text value I had to update, I did and ran the app again on the device to find an error stating "Unable to install iosApp" details below
Details
Unable to install "iosApp"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
--
Could not inspect the application package.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
User Info: {
DVTRadarComponentKey = 282703;
MobileDeviceErrorCode = "(0xE8000051)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000011a39b3b8 DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x000000011a3d9ae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x0000000104f4fbac DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x000000011a3d9822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4 IDEiOSSupportCore 0x00000001146d1999 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.294 + 3534
5 DVTFoundation 0x0000000105082921 __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x000000010508454b __DVTDispatchAsync_block_invoke + 1191
7 libdispatch.dylib 0x00007fff201635dd _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff201647c7 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff2016a5fe _dispatch_lane_serial_drain + 606
10 libdispatch.dylib 0x00007fff2016b0cb _dispatch_lane_invoke + 375
11 libdispatch.dylib 0x00007fff20174c5d _dispatch_workloop_worker_thread + 819
12 libsystem_pthread.dylib 0x00007fff2030c499 _pthread_wqthread + 314
13 libsystem_pthread.dylib 0x00007fff2030b467 start_wqthread + 15
);
}
--
System Information
macOS Version 11.0.1 (Build 20B29)
Xcode 12.5.1 (18212) (Build 12E507)
Timestamp: 2021-07-25T19:23:09-07:00
Out of nowhere the app can't be installed any longer. I restarted xcode, rebooted the computer, rebooted the ipod, uninstalled the app, un-paired the ipod, re-paired the ipod, clean build, deleted cache and still same problem.
So I thought, maybe the ipod has a problem so I attempted to run this on an iphone and the same, in the simulator it acts a bit different, it then gives me this error details
Failed to install the requested application
Domain: NSPOSIXErrorDomain
Code: 22
Failure Reason: The bundle identifier of the application could not be determined.
Recovery Suggestion: Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
User Info: {
bundleURL = "file:///Users/tlacaelel-ramon-luis/Library/Developer/Xcode/DerivedData/iosApp-bgzddjaiahuysehfxtamviqbsuph/Build/Products/Debug-iphonesimulator/iosApp.app/";
}
--
System Information
macOS Version 11.0.1 (Build 20B29)
Xcode 12.5.1 (18212) (Build 12E507)
Timestamp: 2021-07-25T19:30:10-07:00
So I went to check the build info.plist and the CFBundleIdentifier is there. I really don't know where to go from here as I can't test the app.
Has anyone any ideas of what can be causing this issue and how to fix it?

Build is succeded but Error in real device, 'Unable to install "APP name"' Code: -402620415

My flutter app runs well in Android(device and simulator both)
But in iOS there is an error.
The build and run both are succeded on simulator, but does not run on real device.
Unable to install "APP name"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620415
--
An unknown error has occurred.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620415
User Info: {
DVTRadarComponentKey = 280331;
MobileDeviceErrorCode = "(0xE8008001)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000011da4b3b8 DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x000000011da89ae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x0000000106b23b7c DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x000000011da89822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4 IDEiOSSupportCore 0x0000000115dc7999 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.294 + 3534
5 DVTFoundation 0x0000000106c56931 __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x0000000106c5855b __DVTDispatchAsync_block_invoke + 1191
7 libdispatch.dylib 0x00007fff204425dd _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff204437c7 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff204495fe _dispatch_lane_serial_drain + 606
10 libdispatch.dylib 0x00007fff2044a0cb _dispatch_lane_invoke + 375
11 libdispatch.dylib 0x00007fff20453c5d _dispatch_workloop_worker_thread + 819
12 libsystem_pthread.dylib 0x00007fff205eb499 _pthread_wqthread + 314
13 libsystem_pthread.dylib 0x00007fff205ea467 start_wqthread + 15
);
}
--
System Information
macOS Version 11.2.3 (Build 20D91)
Xcode 12.5 (18205) (Build 12E262)
Timestamp: 2021-05-24T11:58:07+09:00
I searched on google, stack overflow, apple... and tried to figure it out. but I can't
What I tired is
pod install, reinstall
delet # in # platform :ios, '9.0'
update packages..
check singing&Capabilities
using another iPhone
using another usb cable
install lastest Xcode, flutter, dart
.... but still can't fix..
Please help!
setting the build configuration from debug to release and that installed the app again. Changed it back to debug and now it's running again as expected.

xCode install error - Failed to load info.plist from GoogleUtilities.framework

I have this cordova (ionic) project which runs fine on devices. I wanted to add a Widget extension (iOS 14 widgets) to the project, when I started getting errors about Google Ad Mob framework missing, so I manually added them (files on the image below). However this is not isolated to widget extension, the issue is present every time another target is added to xCode.
Now, the app builds successfully, however I get an install error:
On Simulator:
Could not install at this time.
Failed to load Info.plist from bundle at path /Users/[user]/Library/Developer/CoreSimulator/Devices/[device-code]/data/Library/Caches/com.apple.mobile.installd.staging/temp.aGSOBa/extracted/Busko.app/Frameworks/GoogleUtilities.framework;
Extra info about Info.plist: Couldn't stat /Users/[user]/Library/Developer/CoreSimulator/Devices/[device-code]/data/Library/Caches/com.apple.mobile.installd.staging/temp.aGSOBa/extracted/Busko.app/Frameworks/GoogleUtilities.framework/Info.plist: No such file or directory
On actual device:
Unable to install "Busko"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
--
Could not inspect the application package.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
User Info: {
DVTRadarComponentKey = 282703;
MobileDeviceErrorCode = "(0xE8000051)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000011d3f093f DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x000000011d42f124 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x0000000100c0fb53 DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x000000011d42ee65 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4 IDEiOSSupportCore 0x000000011d29fd28 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
5 DVTFoundation 0x0000000100d3e2ba __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x0000000100d3fedc __DVTDispatchAsync_block_invoke + 1191
7 libdispatch.dylib 0x00007fff6dc466c4 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff6dc47658 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff6dc4cc44 _dispatch_lane_serial_drain + 597
10 libdispatch.dylib 0x00007fff6dc4d5d6 _dispatch_lane_invoke + 363
11 libdispatch.dylib 0x00007fff6dc56c09 _dispatch_workloop_worker_thread + 596
12 libsystem_pthread.dylib 0x00007fff6dea1a3d _pthread_wqthread + 290
13 libsystem_pthread.dylib 0x00007fff6dea0b77 start_wqthread + 15
);
}
--
System Information
macOS Version 10.15.6 (Build 19G2021)
Xcode 12.0 (17219)
Some additional info:
I am using latest cordova-plugin-admob-plus for admob.
Cordova version: 6.1.1
xCode version: 12
iOS version: 14.0
I tried everything I could find Google-ing and nothing seemed to work. What am I missing?

Flutter Unresolved Error: Unable to install runner (issue that only physical device)

Before I open the question, i research all of similar questions and try that solution advices but i do not solve it.
My flutter app does work on iOS Simulator and Android Simulator but when i want to launch it on my physical device (iPhone X), i take error massage about maximum numbers of app for free profiles.
I clean all of apps, provisioning profiles but this is not solved.
Error message form Xcode:
Unable to install "Runner"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620383
--
The maximum number of apps for free development profiles has been reached.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620383
User Info: {
DVTRadarComponentKey = 487925;
MobileDeviceErrorCode = "(0xE8008021)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000012771381a DTDKCreateNSErrorFromAMDErrorCode + 233
1 DTDeviceKitBase 0x0000000127754f70 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x000000010e201155 DVTInvokeWithStrongOwnership + 73
3 DTDeviceKitBase 0x0000000127754ca8 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1654
4 IDEiOSSupportCore 0x00000001275cbe91 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4165
5 DVTFoundation 0x000000010e3347f4 __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x000000010e336436 __DVTDispatchAsync_block_invoke + 1194
7 libdispatch.dylib 0x00007fff69e426c4 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff69e43658 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff69e48c44 _dispatch_lane_serial_drain + 597
10 libdispatch.dylib 0x00007fff69e495d6 _dispatch_lane_invoke + 363
11 libdispatch.dylib 0x00007fff69e52c09 _dispatch_workloop_worker_thread + 596
12 libsystem_pthread.dylib 0x00007fff6a09da3d _pthread_wqthread + 290
13 libsystem_pthread.dylib 0x00007fff6a09cb77 start_wqthread + 15
);
}
--
System Information
macOS Version 10.15.4 (Build 19E287)
Xcode 11.5 (16139)
and Flutter message:
2020-06-06 18:05:07.469 ios-deploy[10781:107643] [ !! ] Error 0xe8008021: The maximum number of apps for free development profiles has been reached. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Could not run build/ios/iphoneos/Runner.app on c2e128563bf0d17be5554ecaf3ed00de53b4b2ec.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Installing and launching... 16,3s
Error launching application on Ata Batuhan iPhone’u.
I am waiting for your advices. Thank you.

I am unable to install and run app from Xcode on physical device

I have popup saying "Unable to install [App name]
Details
Unable to install "[App name]"
Domain: com.apple.dtdevicekit
Code: -402620395
--
App installation failed
Domain: com.apple.dtdevicekit
Code: -402620395
Failure Reason: A valid provisioning profile for this executable was not found.
User Info: {
DVTRadarComponentKey = 487927;
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x0000000124af06e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x0000000124af0de9 DTDK_AMDErrorToNSError + 792
2 DTDeviceKitBase 0x0000000124b3056a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164
3 DVTFoundation 0x000000010bfa1c12 DVTInvokeWithStrongOwnership + 73
4 DTDeviceKitBase 0x0000000124b30301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589
5 IDEiOSSupportCore 0x00000001249c9a25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523
6 DVTFoundation 0x000000010c0d2e7a __DVT_CALLING_CLIENT_BLOCK__ + 7
7 DVTFoundation 0x000000010c0d4552 __DVTDispatchAsync_block_invoke + 809
8 libdispatch.dylib 0x00007fff67120583 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x00007fff6712150e _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff67126ace _dispatch_lane_serial_drain + 597
11 libdispatch.dylib 0x00007fff67127452 _dispatch_lane_invoke + 363
12 libdispatch.dylib 0x00007fff67130a9e _dispatch_workloop_worker_thread + 598
13 libsystem_pthread.dylib 0x00007fff6737b6fc _pthread_wqthread + 290
14 libsystem_pthread.dylib 0x00007fff6737a827 start_wqthread + 15
);
}
--
I have provisioning profiles managed by fastlane match and they are installed on my macOS keychain. Xcode project is set to use them in manual mode.
Tried cleaning DerivedData and MobileProvisioning profiles, removed and readded my developer account to Xcode. cleaned all certificates and provisioning profiles from developer portal and recreated them using fastlane match. No change ...
I am using Xcode 11.3.1 and 11.4 beta (no change in behaviour between versions) on Catalina 10.15.3
Help really apreciated
After few hours yesterday and about 1h today I fixed this by setting different provisioning profiles for Debug and Release. I have no idea why both were set to Apple Distribution before. After this it worked.
In my case, If not using same team for all targets clean before and after switching to a build target and different team

Resources