StanfordSpezi / SpeziContact

Spezi module to display contact information
https://swiftpackageindex.com/StanfordSpezi/SpeziContact/documentation/
MIT License
3 stars 1 forks source link

Build error with SpeziContact 1.0.1 and CNMutablePostalAddress #28

Closed vishnuravi closed 2 months ago

vishnuravi commented 2 months ago

Description

When attempting to build a project based on the Spezi Template Application after updating to SpeziContact 1.0.1, the following build error is encountered in Contacts/Contacts.swift.

let address = CNMutablePostalAddress()
/Users/runner/work/LifeSpace/LifeSpace/LifeSpace/Contacts/Contacts.swift:27:31: error: cannot find 'CNMutablePostalAddress' in scope`

It appears that CNMutablePostalAddress is no longer being exposed.

Reproduction

Update a Spezi Template Application based project to SpeziContact 1.0.1 and attempt to build.

Expected behavior

The build should not fail.

Additional context

The following change may be responsible: https://github.com/StanfordSpezi/SpeziContact/pull/27/files#diff-08dd209c2f80749cebfada36a9f87935b96bcc8e9030ef7a085eeaf6955f26d2

cc: @PSchmiedmayer

Code of Conduct