Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   MacOS: URL für https erlauben (info.plist) (https://www.delphipraxis.net/202106-macos-url-fuer-https-erlauben-info-plist.html)

philipp.hofmann 29. Sep 2019 09:55

MacOS: URL für https erlauben (info.plist)
 
Hi,

ich muss zur Nutzung der FMX-OpenStreetMap-Implementierung von TMSSoftware folgende URL für http erlauben: openstreetmap.org

Dies habe ich gemacht in dem ich in info.plist.TemplateOSX.xml ab Zeile 8 (unterhalb des ersten <dict> Blockes die URL erlaube:

Delphi-Quellcode:
<?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>
<%VersionInfoPListKeys%>
<%ExtraInfoPListKeys%>
</dict>
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>openstreetmap.org</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSExceptionRequiresForwardSecrecy</key>
            <true/>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.2</string>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <false/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <true/>
            <key>NSThirdPartyExceptionMinimumTLSVersion</key>
            <string>TLSv1.2</string>
            <key>NSRequiresCertificateTransparency</key>
            <false/>
        </dict>
    </dict>
</dict>
</plist>
Damit geht es im Normal-Modus. Wenn ich für den Anwendungsstore kompilieren will, bekomme ich folgende Fehlermeldung:

[PAClient Fehler] Fehler: E0264 /Users/philipp/PAServer/scratch-dir/phili-MacPhil2018sAir/icTrainer.app/Contents/Info.plist: Property List error: Encountered unexpected element at line 43 (plist can only include one object) / JSON error: JSON text did not start with array or object and option to allow fragments not set.

Was machte ich falsch? Ich habe schon ein paar Varianten ausprobiert, aber ohne Erfolg. Wie muss ich info.plist.TemplateOSX.xml korrekt befüllen?

Grüße, Philipp

philipp.hofmann 8. Dez 2019 00:12

AW: MacOS: URL für https erlauben (info.plist)
 
Folgendermaßen funktioniert es:

<?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>
<%VersionInfoPListKeys%>
<%ExtraInfoPListKeys%>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>openstreetmap.org</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<false/>
<key>NSExceptionRequiresForwardSecrecy</key>
<true/>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.2</string>
<key>NSThirdPartyExceptionAllowsInsecureHTTPLoad s</key>
<true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy </key>
<true/>
<key>NSThirdPartyExceptionMinimumTLSVersion</key>
<string>TLSv1.2</string>
<key>NSRequiresCertificateTransparency</key>
<false/>
</dict>
</dict>
</dict>
</dict>
</plist>


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:00 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