-
Notifications
You must be signed in to change notification settings - Fork 829
Closed
Labels
Description
Describe the bug
When importing AppAuth as a Swift package, the PrivacyInfo.xcprivacy
is not picked up by Xcode, it is not copied into my app bundle. For other Swift packages, Xcode generates a Foo.bundle
inside the app package with an Info.plist
and the PrivacyInfo.xcprivacy
.
To Reproduce
Steps to reproduce the behavior:
- Add appauth-ios 1.7.2 as a Swift Package to a test project.
- Build the application.
- Inspect the contents of the app's package in Finder.
PrivacyInfo.xcprivacy
is not copied to app package (unlike e.g. Kingfisher):
% ls -1R PrivacyManifestTestApp.app
Info.plist
Kingfisher_Kingfisher.bundle
PkgInfo
PrivacyManifestTestApp
_CodeSignature
PrivacyManifestTestApp.app/Kingfisher_Kingfisher.bundle:
Info.plist
PrivacyInfo.xcprivacy
_CodeSignature
...
Expected behavior
PrivacyInfo.xcprivacy
is copied to app package
Environment
- Xcode 15.3, macOS 14.4
- Building for iOS
Additional context
I works when
- I rename
Source
toSources
and change the paths inPackage.swift
accordingly. - Each
Sources
subdirectory has its own copy ofPrivacyInfo.xcprivacy
and the path to it inPackage.swift
does not contain any parent directories:resources: [.copy("PrivacyInfo.xcprivacy")],
- Note: When testing with a local package path to AppAuth I have to keep using "Resolve Package Versions" for Xcode to pick up the changes correctly.
AppAuth_AppAuth.bundle
AppAuth_AppAuthCore.bundle
AppAuth_AppAuthTV.bundle
Info.plist
Kingfisher_Kingfisher.bundle
PkgInfo
PrivacyManifestTestApp
_CodeSignature
PrivacyManifestTestApp.app/AppAuth_AppAuth.bundle:
Info.plist
PrivacyInfo.xcprivacy
_CodeSignature
PrivacyManifestTestApp.app/AppAuth_AppAuthCore.bundle:
Info.plist
PrivacyInfo.xcprivacy
_CodeSignature
PrivacyManifestTestApp.app/AppAuth_AppAuthTV.bundle:
Info.plist
PrivacyInfo.xcprivacy
_CodeSignature
PrivacyManifestTestApp.app/Kingfisher_Kingfisher.bundle:
Info.plist
PrivacyInfo.xcprivacy
_CodeSignature
...
Ideally there should be only one AppAuth_AppAuth.bundle
but this may not be possible.