I'm trying to use shared web credentials. Domains that use wildcards won't work in a device, in a simulator they do work. Device is running iOS 12.3. Xcode 10.1.
My web app is built around WKWebView and it uses subdomains. The entitlements file in the iOS app contains this:
webcredentials:myapp.app
webcredentials:*.myapp.app
When I go to mydomain.myapp.app
and request shared web credentials, I will get those credentials in a simulator. The device gives the error:
Error Domain=NSOSStatusErrorDomain Code=-34018 "mydomain.myapp.app not found in com.apple.developer.associated-domains entitlement" UserInfo={NSDescription=mydomain.myapp.app not found in com.apple.developer.associated-domains entitlement}
If I enter the whole domain into the entitlements file, then this works in the device as well. But I don't need that whole domain in the simulator in the entitlements file, the wildcard works.
I'm building for target 10.0. I tried building for 12.1 but it didn't help. Note that I had to copy the "device files" from the Internet (somewhere from GitHub) as my version of Xcode didn't have the device files for iOS 12.3.
Any idea why wildcard doesn't work?