Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of undeclared identifier 'CNAuthorizationStatusLimited'; did you mean 'PHAuthorizationStatusLimited'? #758

Open
threeinto3 opened this issue Oct 16, 2024 · 5 comments · May be fixed by #764

Comments

@threeinto3
Copy link

threeinto3 commented Oct 16, 2024

I am getting this issue in RCT contacts file while making build for IOS on xcode. I am using current version of react native 0.75.4.
Installation Steps

  1. npm install react-native-contacts --save
  2. Given respective permissions android and IOS.
Screenshot 2024-10-16 at 12 36 01 PM
@Valtory
Copy link

Valtory commented Oct 17, 2024

same issue here :/

@threeinto3
Copy link
Author

Valtory

I fixed this issue by applying patch (patch-package lib.).
Steps to create patch

  1. Open project in xcode
  2. create a build
  3. After getting errors press on it, then you will get option to fix it.
  4. Do same for all errors, after that you will get changes in react-native-contacts library.
  5. Last step just create patch by hitting this command npx patch-package react-native-contacts.

This is cool until we get a new update.

@trizerr
Copy link

trizerr commented Dec 4, 2024

Actually the problem appears because Limited Contacts feature have been added in IOS 18. So just build your app with xcode 16+, which has support for IOS 18.

@Thenlie
Copy link

Thenlie commented Dec 17, 2024

I also faced this problem. I can confirm what @trizerr stated, building on xcode 16+ resolved it.
Since I am unable to use xcode 16 in CI at the moment, I tried out @threeinto3 solution and that also worked for me.

Thank you both!

@Valtory
Copy link

Valtory commented Dec 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants