I'm using Xcode 7.3.1 and executing XCTest via the command-line on my device, "iPhone 1", which is an iPhone 6 running iOS 9.3.5:
xcodebuild \
-scheme Todo \
-project Todo.xcodeproj \
-destination "platform=iOS,name=iPhone 1"\
clean build test
The build succeeded, however it failed after compiling the test files:
2016-09-13 14:51:32.604 xcodebuild[79689:2064116] DTDeviceKit: Could not start house arrest service for app identifier com.example.Todo [Error Domain=com.apple.dtdevicekit Code=-402653093 "Too many instances of this service are already running." UserInfo={NSLocalizedFailureReason=Too many instances of this service are already running., com.apple.dtdevicekit.stacktrace=(
0 DTDeviceKitBase 0x000000010fead3cb DTDKCreateNSError + 113
1 DTDeviceKitBase 0x000000010feadb09 DTDK_AMDErrorToNSError + 791
2 DTDeviceKitBase 0x000000010febf2f5 __70-[DTDKRemoteDeviceConnection startHouseArrestServiceForAppIdentifier:]_block_invoke + 100
3 DTDeviceKitBase 0x000000010febe1d1 __48-[DTDKRemoteDeviceConnection futureWithSession:]_block_invoke_4 + 22
4 DTDeviceKitBase 0x000000010feb0317 __DTDKExecuteInSession_block_invoke + 38
5 DTDeviceKitBase 0x000000010feaf940 __DTDKExecuteWithConnection_block_invoke_2 + 477
6 DTDeviceKitBase 0x000000010feaf73c __DTDKExecuteWithConnection_block_invoke + 107
7 libdispatch.dylib 0x00007fff99bda40b _dispatch_client_callout + 8
8 libdispatch.dylib 0x00007fff99bdb9f2 _dispatch_barrier_sync_f_invoke + 74
9 DVTFoundation 0x0000000106400bef DVTDispatchBarrierSync + 206
10 DVTFoundation 0x00000001063dd59b -[DVTDispatchLock performLockedBlock:] + 116
11 DTDeviceKitBase 0x000000010feaf646 DTDKExecuteWithConnection + 223
12 DTDeviceKitBase 0x000000010feb02a1 DTDKExecuteInSession + 121
13 DTDeviceKitBase 0x000000010febe108 __48-[DTDKRemoteDeviceConnection futureWithSession:]_block_invoke_3 + 117
14 DVTFoundation 0x00000001063fff4b __DVTDispatchAsync_block_invoke + 827
15 libdispatch.dylib 0x00007fff99be593d _dispatch_call_block_and_release + 12
16 libdispatch.dylib 0x00007fff99bda40b _dispatch_client_callout + 8
17 libdispatch.dylib 0x00007fff99becbd7 _dispatch_async_redirect_invoke + 1733
18 libdispatch.dylib 0x00007fff99bda40b _dispatch_client_callout + 8
19 libdispatch.dylib 0x00007fff99bde29b _dispatch_root_queue_drain + 1890
20 libdispatch.dylib 0x00007fff99bddb00 _dispatch_worker_thread3 + 91
21 libsystem_pthread.dylib 0x00007fff9b5d94de _pthread_wqthread + 1129
22 libsystem_pthread.dylib 0x00007fff9b5d7341 start_wqthread + 13
), NSLocalizedRecoverySuggestion=Too many instances of this service are already running., NSLocalizedDescription=Too many instances of this service are already running.}]
2016-09-13 14:51:32.918 xcodebuild[79689:2063388] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
Running the tests in Xcode did not succeed either. And it always fails with the errors described in these posts:
dyld: could not load inserted library
Xcode 7.0 XCTest dyld: could not load inserted library IDEBundleInjection
I've tried the solutions suggested in the posts (i.e. fix provisioning profile and code signing), but it did not help. Has anyone faced similar problems?
I was trying to find out if DTDeviceKit was running on my machine, but it did not. My next suspicion was that it could be running on the phone.
After rebooting my phone, it works.
I filed a technical support ticket with apple. Turns out it's a bug which affects 32 bit devices. So if you test on a 64 bit device you won't have this issue.
Related
I am using Mac OS 10.14.6 with Xcode 11.3.1 and with flutter when running the command flutter doctor -v everything is correct, the problem is that it does not let me compile because I am using iOS 15.4.1 download the OS version, so that could recognize, also use the following link:
The code signature version is no longer supported
to be able to solve a problem when compiling it that is: --generate-entitlement-der
but when I want to recompile it, it sends me the following error:
An error was encountered while attempting to communicate with this device. (The service is invalid.)
When verifying in more detail, it sends the following errors:
Details
An error was encountered while attempting to communicate with this device. (The service is invalid.)
Domain: com.apple.dtdevicekit
Code: -402653150
Failure Reason: Please try rebooting and reconnecting the device. (0xE8000022).
User Info: {
DVTRadarComponentKey = 487927;
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x00000001270f46e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x00000001270f4de9 DTDK_AMDErrorToNSError + 792
2 DTDeviceKitBase 0x0000000127105d0c __63-[DTDKRemoteDeviceConnection startFirstServiceOf:unlockKeybag:]_block_invoke + 301
3 DTDeviceKitBase 0x00000001271054db __48-[DTDKRemoteDeviceConnection futureWithSession:]_block_invoke_3 + 22
4 DTDeviceKitBase 0x00000001270f715f __DTDKExecuteInSession_block_invoke_2 + 35
5 DTDeviceKitBase 0x00000001270f6593 __DTDKExecuteWithConnection_block_invoke_2 + 473
6 DTDeviceKitBase 0x00000001270f6391 __DTDKExecuteWithConnection_block_invoke + 106
7 libdispatch.dylib 0x00007fff7227963d _dispatch_client_callout + 8
8 libdispatch.dylib 0x00007fff72285129 _dispatch_lane_barrier_sync_invoke_and_complete + 60
9 DVTFoundation 0x000000010c9dc110 DVTDispatchBarrierSync + 208
10 DVTFoundation 0x000000010c9b3538 -[DVTDispatchLock performLockedBlock:] + 64
11 DTDeviceKitBase 0x00000001270f6292 DTDKExecuteWithConnection + 226
12 DTDeviceKitBase 0x00000001270f6fc9 DTDKExecuteInSession + 376
13 DTDeviceKitBase 0x0000000127105410 __48-[DTDKRemoteDeviceConnection futureWithSession:]_block_invoke_2 + 112
14 DVTFoundation 0x000000010c9d9e7a __DVT_CALLING_CLIENT_BLOCK__ + 7
15 DVTFoundation 0x000000010c9db552 __DVTDispatchAsync_block_invoke + 809
16 libdispatch.dylib 0x00007fff722785f8 _dispatch_call_block_and_release + 12
17 libdispatch.dylib 0x00007fff7227963d _dispatch_client_callout + 8
18 libdispatch.dylib 0x00007fff7227f8e0 _dispatch_lane_serial_drain + 602
19 libdispatch.dylib 0x00007fff72280396 _dispatch_lane_invoke + 385
20 libdispatch.dylib 0x00007fff722886ed _dispatch_workloop_worker_thread + 598
21 libsystem_pthread.dylib 0x00007fff724b9611 _pthread_wqthread + 421
22 libsystem_pthread.dylib 0x00007fff724b93fd start_wqthread + 13
);
}
--
In some forums I saw that changing the cable and/or port, I also did it cleaning the project and restarting the equipment but I still have the same error.
In some forums they also mentioned that it was due to trying to compile on a device with an iOS that does not support the version of xcode but I do not know if there is any solution since neither for
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.
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.
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.
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