Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   iOS Build fails on Signing - XCode 11.5, Rad Studio 10.4.1 (https://www.delphipraxis.net/206583-ios-build-fails-signing-xcode-11-5-rad-studio-10-4-1-a.html)

Alex40 8. Jan 2021 15:12

iOS Build fails on Signing - XCode 11.5, Rad Studio 10.4.1
 
Rad Studio 10.4.1 with all the latest patches for Apple, macOS Catalina, Xcode 11.5, PAServer version 12.1.10.5, iOS version 14.2.

When I try to build my app this is the error my Rad Studio throws on Signing process:

[PAClient Error] Error: E0264 Unable to execute '"/usr/bin/codesign" --entitlements "/Users/MyUser/PAServer/scratch-dir/MyMacName/MyAppName.entitlements" -s "Apple Distribution: MyAppName ({Indentifier})" -f "/Users/MyUser/PAServer/scratch-dir/MyMacName/MyAppName.app"' (Error 1)

[PAClient Error] Error: E0264 Failed to parse entitlements: AMFIUnserializeXML: duplicate dictionary key near line 25

This is the generated entitlements file:

<?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>{Indentifier}.com.MyAppName .app</string>

<key>get-task-allow</key>
<false/>
<key>com.apple.developer.team-identifier</key>
<string>{Indentifier}</string>
<key>aps-environment</key>
<string>production</string>
<key>com.apple.developer.associated-domains</key>
<string>*</string>
<key>keychain-access-groups</key>
<array>
<string>{Indentifier}.com.MyAppName.app</string>
<string>com.apple.token</string>
</array>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:www.MyAppName.com</string>
</array>
</dict>
</plist>

Any help would be highly appresiated ! Thank you in advance !

shebang 8. Jan 2021 15:57

AW: iOS Build fails on Signing - XCode 11.5, Rad Studio 10.4.1
 
As already written in the error message:
Code:
[PAClient Error] Error: E0264 Failed to parse entitlements: AMFIUnserializeXML: duplicate dictionary key near line 25
the key "com.apple.developer.associated-domains" exists two times in your dictionary.

Alex40 8. Jan 2021 16:01

AW: iOS Build fails on Signing - XCode 11.5, Rad Studio 10.4.1
 
That's a good point, do you know how I can make changes on the entitlements file?

Zitat:

Zitat von shebang (Beitrag 1480603)
As already written in the error message:
Code:
[PAClient Error] Error: E0264 Failed to parse entitlements: AMFIUnserializeXML: duplicate dictionary key near line 25
the key "com.apple.developer.associated-domains" exists two times in your dictionary.


Alex40 8. Jan 2021 17:56

AW: iOS Build fails on Signing - XCode 11.5, Rad Studio 10.4.1
 
I managed to fix this with WORK AROUND. As you said the problem appears by the duplicated <key> com .apple.developer.associated-domains </ key>.

A have to figure out how to NOT generate this line anymore:

<key> com .apple.developer.associated-domains </ key>
<string> * </string>

... to be able to add my link at the end of the entitlements template file:

<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:www.MyAppName.com</string>
</array>

Zitat:

Zitat von Alex40 (Beitrag 1480606)
That's a good point, do you know how I can make changes on the entitlements file?

Zitat:

Zitat von shebang (Beitrag 1480603)
As already written in the error message:
Code:
[PAClient Error] Error: E0264 Failed to parse entitlements: AMFIUnserializeXML: duplicate dictionary key near line 25
the key "com.apple.developer.associated-domains" exists two times in your dictionary.




Alle Zeitangaben in WEZ +1. Es ist jetzt 03:22 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz