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

iOS build error: Multiple commands produce PrivacyInfo.xcprivacy #74

Open
squio opened this issue Jul 3, 2024 · 0 comments
Open

iOS build error: Multiple commands produce PrivacyInfo.xcprivacy #74

squio opened this issue Jul 3, 2024 · 0 comments

Comments

@squio
Copy link

squio commented Jul 3, 2024

Platform:

  • Xcode Version 15.4 (15F31d)
  • RN version: 0.74.3
  • RN scanner SDK version: 0.4.2
  • Klippa SDK version 1.2.1

The upgrade to RN 0.74 added the local resource ios/Bizcuit/PrivacyInfo.xcprivacy

After upgrading the Klippa Scanner SDK version to 0.4.2, the embedded PrivacyInfo.xcprivacy conflicts with the local version.
screen 2024-07-03 om 14 57 04

This line in the Pod spec triggers the issue:

Pod::Spec.new do |spec|
  spec.name             = 'Klippa-Scanner'
  spec.version          = '1.2.1'
  spec.summary          = 'Klippa OCR SDK'
  spec.description      = 'SDK to do document scanning for iOS.'
  spec.homepage         = 'https://www.klippa.com/en/ocr/ocr-sdk/'
  spec.license          = 'PRIVATE'
// ...
  spec.resources = "KlippaScanner.xcframework/*/KlippaScanner.framework/**/*.{strings,png,xcprivacy}"

Work around

Revert back to Klippa Scanner SDK version to 0.4.1, re-install Pods and clean workspace

This SO comment may point in the direction of a proper fix for this issue: https://stackoverflow.com/a/78344724/885397

This is how Sentry fixed the same issue: getsentry/sentry-cocoa#3651

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

No branches or pull requests

1 participant