Verify with wallet run in simulator

I am fallowing the steps mention here https://developer.apple.com/wallet/get-started-with-verify-with-wallet/ and https://developer.apple.com/documentation/passkit/requesting-identity-data-from-a-wallet-pass to run a POC in simulator but I am getting a crash

DigitalPresentmentSession requestDocument fatal error from xpc: This app has crashed because it called an API it is not entitled to use. <unknown>:0: Fatal error: This app has crashed because it called an API it is not entitled to use.

<dict> <key>com.apple.developer.in-app-identity-presentment</key> <dict> <key>document-elements</key> <array> <string>given-name</string> <string>family-name</string> <string>portrait</string> <string>age</string> <string>address</string> <string>date-of-birth</string> <string>issuing-authority</string> <string>driving-privileges</string> <string>document-number</string> <string>document-issue-date</string> <string>document-expiration-date</string> </array> <key>document-types</key> <array> <string>us-drivers-license</string> </array> </dict> <key>com.apple.developer.in-app-identity-presentment.merchant-identifiers</key> <array> <string>PassKit_Identity_Test_Team_ID</string> </array>

Answered by DTS Engineer in 855937022

Hi @PraneethK,

You wrote:

I am fallowing the steps mention here https://developer.apple.com/wallet/get-started-with-verify-with-wallet/ and https://developer.apple.com/documentation/passkit/requesting-identity-data-from-a-wallet-pass to run a POC in simulator but I am getting a crash [...]

To use Verify with Wallet, you need to submit an entitlement request. Please review the "Request the entitlement" section of the following page to learn if you app is eligible for this entitlement:

Get started with Verify with Wallet API

https://developer.apple.com/wallet/get-started-with-verify-with-wallet/

Note: Building an app with this entitlement requires macOS 13 or later.

Once you have been approved for the entitlement, review the following documentation as a guide to your implementation:

Requesting identity data from a Wallet pass

https://developer.apple.com/documentation/passkit/requesting-identity-data-from-a-wallet-pass

Lastly, read the section titled "Test the implementation" for the expected behavior on a physical iPhone or Simulator running iOS 16 and later.

Requesting identity data from a Wallet pass: Test the implementation

https://developer.apple.com/documentation/passkit/requesting-identity-data-from-a-wallet-pass#Test-the-implementation

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

whole error is: DigitalPresentmentSession requestDocument fatal error from xpc: This app has crashed because it called an API it is not entitled to use. <unknown>:0: Fatal error: This app has crashed because it called an API it is not entitled to use.

Hi @PraneethK,

You wrote:

I am fallowing the steps mention here https://developer.apple.com/wallet/get-started-with-verify-with-wallet/ and https://developer.apple.com/documentation/passkit/requesting-identity-data-from-a-wallet-pass to run a POC in simulator but I am getting a crash [...]

To use Verify with Wallet, you need to submit an entitlement request. Please review the "Request the entitlement" section of the following page to learn if you app is eligible for this entitlement:

Get started with Verify with Wallet API

https://developer.apple.com/wallet/get-started-with-verify-with-wallet/

Note: Building an app with this entitlement requires macOS 13 or later.

Once you have been approved for the entitlement, review the following documentation as a guide to your implementation:

Requesting identity data from a Wallet pass

https://developer.apple.com/documentation/passkit/requesting-identity-data-from-a-wallet-pass

Lastly, read the section titled "Test the implementation" for the expected behavior on a physical iPhone or Simulator running iOS 16 and later.

Requesting identity data from a Wallet pass: Test the implementation

https://developer.apple.com/documentation/passkit/requesting-identity-data-from-a-wallet-pass#Test-the-implementation

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

@DTS Engineer is this accurate information? Apple's docs elsewhere (https://developer.apple.com/wallet/get-started-with-verify-with-wallet/) claim that we can use the app in simulator, and give us entitlements to add to the application. Thread title is specifically about running in simulator.

Hi @kevcube,

Yes, the information is accurate for the error initially provided (quoted below):

DigitalPresentmentSession requestDocument fatal error from xpc: This app has crashed because it called an API it is not entitled to use. <unknown>:0: Fatal error: This app has crashed because it called an API it is not entitled to use.

The Verify with Wallet API does support the display and parsing of mock data as linked in my prior response. However, without an example of the project (including its keys, entitlements and Info.plist), the error is due to a failed eligibility check—which can occur when any of the above are misconfigured or missing entirely.

If you are experiencing a similar error, please attach the Xcode project to report, created via Feedback Assistant, and reply here with the Feedback ID so I can begin my investigation into your issue.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Verify with wallet run in simulator
 
 
Q