Айфон сломался

Started by Любитель apple, Jun 18, 2020, 02:55 pm

Previous topic - Next topic

Любитель apple

There is a description of problem below. I have allready sent it about week ago, but have not got any answers.
We use the latest versions of xcode and iOS.
Please help us with solving this issue.
Thanks a lot.
 I updated two certificates, for development and for distribution. All other certificates were deleted
 
Profiles were recreated based on these two certificates and device for tests
 
After that, I added certificates to the keystore
 

Then I deleted all saved profiles in Xcode and uploaded new ones
 
 

xCode version 11.3.1
 
The build of the application and its signing are successful, but when I try to install it on the device, I get an error
 
Unable to install "YaMobileClient"
Domain: com.apple.dtdevicekit
Code: -402620394
--
The executable was signed with invalid entitlements.
Domain: com.apple.dtdevicekit
Code: -402620394
Failure Reason: The entitlements specified in your application's Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile. (0xE8008016).
User Info: {
DVTRadarComponentKey = 487927;
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x00000001271266e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x0000000127126de9 DTDK_AMDErrorToNSError + 792
2 DTDeviceKitBase 0x000000012716656a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164
3 DVTFoundation 0x000000010d2ffc12 DVTInvokeWithStrongOwnership + 73
4 DTDeviceKitBase 0x0000000127166301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback + 1589
5 IDEiOSSupportCore 0x0000000126feea25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523
6 DVTFoundation 0x000000010d430e7a __DVT_CALLING_CLIENT_BLOCK__ + 7
7 DVTFoundation 0x000000010d432552 __DVTDispatchAsync_block_invoke + 809
8 libdispatch.dylib 0x00007fff603855f8 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x00007fff6038663d _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff6038c8e0 _dispatch_lane_serial_drain + 602
11 libdispatch.dylib 0x00007fff6038d396 _dispatch_lane_invoke + 385
12 libdispatch.dylib 0x00007fff603956ed _dispatch_workloop_worker_thread + 598
13 libsystem_pthread.dylib 0x00007fff605c6611 _pthread_wqthread + 421
14 libsystem_pthread.dylib 0x00007fff605c63fd start_wqthread + 13
);
}

Саппорты посоветовали использовать вот эту инфу
https://help.apple.com/xcode/mac/current/#/dev298d7b2cb

I try to check entitlements for build with this commands
codesign -d --entitlements - ../Products/Release-iphoneos/YaMobileClient.app

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">;
<plist version="1.0">
<dict>
<key>application-identifier</key>
<string>3332XC82VC.com.yaclient</string>
<key>com.apple.developer.team-identifier</key>
<string>3332XC82VC</string>
<key>get-task-allow</key>
<false/>
<key>keychain-access-groups</key>
<array/>
</dict>
</plist>

And check security
securitycms -D -i../Products/Release-iphoneos/YaMobileClient.app/embedded.mobileprovision

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">;
<plist version="1.0">
<dict>
<key>AppIDName</key>
<string>Ya Client Application</string>
<key>ApplicationIdentifierPrefix</key>
<array>
<string>3332XC82VC</string>
</array>
<key>CreationDate</key>
<date>2020-06-01T09:08:17Z</date>
<key>Platform</key>
<array>
<string>iOS</string>
</array>
<key>IsXcodeManaged</key>
<false/>
<key>DeveloperCertificates</key>
<array>
<data>MIIFtTCCBJ2gAwIBAgIIPOw5op02zFswDQYJKoZIhvcNAQELBQAwgZYxCzAJBgNVBAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3JsZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3aWRlIERldmVsb3BlciBSZWxhdGlvbn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GUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0YXRlbWVudHMuMDYGCCsGAQUFBwIBFipodHRwOi8vd3d3LmFwcGxlLmNvbS9jZXJ0aWZpY2F0ZWF1dGhvcml0eS8wFgYDVR0lAQH/BAwwCgYIKwYBBQUHAwMwHQYDVR0OBBYEFI+3b2r/Yx2Hxe3tDY8xwZczSCd7MA4GA1UdDwEB/wQEAwIHgDATBgoqhkiG92NkBgEHAQH/BAIFADATBgoqhkiG92NkBgEEAQH/BAIFADANBgkqhkiG9w0BAQsFAAOCAQEAP4jEzSbh2JF4PUv8/Gr49Um65HskSh28f23oPn/7sKR8+IaiWmpFOGBF6r20duHm+sc8zYsz1taoTCHFg7kBLLRKDa5gmF4elaVr8kQ4iPWIyNWCZP8wweWI2tNoXcfyqoxP+b/j5r0qJQIMtJO2c+ygXV+fUNfT0BwpER3WyR4fzYuyB5rqw0Vrkm5suIkw59K4xGWIC8OlvljPTWKcAqKy5JWqV45YQDI3UAQuB060GrL2IFxoisAzfq+tgEIsqFIHvEJsV0VnynMUB/KJBVY6fA9ZLL5FXsVkhL7yj6IH3KDleyiDlcm9Dg5RtQs7YlfX35ba0WHt0LD63OGPYA==</data>
</array>


<key>Entitlements</key>
<dict>

<key>application-identifier</key>
<string>3332XC82VC.com.yaclient</string>

<key>keychain-access-groups</key>
<array>
<string>3332XC82VC.*</string>
</array>

<key>get-task-allow</key>
<false/>

<key>com.apple.developer.team-identifier</key>
<string>3332XC82VC</string>

</dict>
<key>ExpirationDate</key>
<date>2021-04-24T10:53:45Z</date>
<key>Name</key>
<string>Ya Client Canada Distribution</string>
<key>ProvisionedDevices</key>
<array>
<string>adfded64cce390aee8e862dd698ec1c6bc8080f1</string>
</array>
<key>TeamIdentifier</key>
<array>
<string>3332XC82VC</string>
</array>
<key>TeamName</key>
<string>Sergey Trufanov</string>
<key>TimeToLive</key>
<integer>327</integer>
<key>UUID</key>
<string>cab0fcfb-4409-4e17-9729-5433ddc2c3b8</string>
<key>Version</key>
<integer>1</integer>
</dict>

Could you help me to understand what is wrong with it? I see only strange keychain-access-groups but I don't understand how it should looks.