Reputation: 85
If you try to run the app on a real device
The following error appears and cannot be executed.
Why does this happen?
Are there any settings that should be reviewed?
Unable to install "AppName"
Domain: com.apple.dtdevicekit
Code: -402653103
--
App installation failed
Domain: com.apple.dtdevicekit
Code: -402653103
Failure Reason: Could not inspect the application package.
User Info: {
DVTRadarComponentKey = 487927;
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x0000000122d066e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x0000000122d06de9 DTDK_AMDErrorToNSError + 792
2 DTDeviceKitBase 0x0000000122d4656a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164
3 DVTFoundation 0x0000000108a03156 DVTInvokeWithStrongOwnership + 73
4 DTDeviceKitBase 0x0000000122d46301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589
5 IDEiOSSupportCore 0x0000000122bcea25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523
6 DVTFoundation 0x0000000108b343ba __DVT_CALLING_CLIENT_BLOCK__ + 7
7 DVTFoundation 0x0000000108b35a92 __DVTDispatchAsync_block_invoke + 809
8 libdispatch.dylib 0x00007fff588ea5f8 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x00007fff588eb63d _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff588f18e0 _dispatch_lane_serial_drain + 602
11 libdispatch.dylib 0x00007fff588f2396 _dispatch_lane_invoke + 385
12 libdispatch.dylib 0x00007fff588fa6ed _dispatch_workloop_worker_thread + 598
13 libsystem_pthread.dylib 0x00007fff58b2b611 _pthread_wqthread + 421
14 libsystem_pthread.dylib 0x00007fff58b2b3fd start_wqthread + 13
);
}
--
Upvotes: 4
Views: 12462
Reputation: 5075
I face same issue. I checked i was using production professional profile then i select automatically manage sign.
It's work for me.
Upvotes: 1
Reputation: 1262
I also faced this problem at many times:
Best solution: Try to get fresh clone of the project.
Some times below steps will work:
git reset
git checkout .
git clean -fdx
pod cache clean --all
pod install
Upvotes: 0
Reputation: 178
I'm on Apple M1, Device iOS 14.6, xcode 12.5.1
In my case Deleting project, Derived data, clean project, deinit & init pod, Delete project folder & clone it again nothing was worked out. But when I removed SwiftyJSON pod & install pod then install app on Device it was working. Then I add SwiftyJSON pod again & install pod so it was working fine. It's strange.
Before removing SwiftyJSON I had got Firebase/Crashlytics pod error which was suggesting me to run this command pod repo update
.
Upvotes: 0
Reputation: 2778
Try to build for another device, then retry with the first one.
I know this is not a real solution but that was the only what worked for me. Also I made a bug report with Apple feedback Assistant, I will update you if the gave a proper solution or response.
Update #1:
After Apple checked my sysdiagnose it was the following for me:
The app is malformed. The file at "$(PRODUCT_MODULE_NAME).app/Frameworks/SwiftyJSON.framework/Info.plist" is missing. Frameworks must be valid bundles with an Info.plist.
My current fix:
As a 0. element I will insist you to make your coffee and take a snack ...
Update #2:
Now I fell into a hole where nothing above helped. But for me, it looks like the issues framework is SwiftyJSON. I made an issue, maybe someone has a proper solution.
Update #3:
I managed to build my project using Xcode Version 11.0 (11A420a) while using the latest command line tools from Xcode 11.3 (11C29).
Update #4:
I still got this mess after changing branches, this is the latest fix order for me, which works like 90% of the time ... the other 10% is due to a missed step I guess.
Upvotes: 5
Reputation: 85
It was an error that occurred due to a bug in the framework.
If you reinstall the problematic framework correctly
The error has disappeared.
Thank you very much.
Upvotes: -2