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

Resolve Package Graph warnings when using Swift Package Manager #1158

Closed
pierceglennie opened this issue Apr 10, 2021 · 4 comments
Closed

Resolve Package Graph warnings when using Swift Package Manager #1158

pierceglennie opened this issue Apr 10, 2021 · 4 comments
Assignees
Labels
build Issues related to build and CI/CD

Comments

@pierceglennie
Copy link

Describe the bug

After integrating Amplify using Swift Package Manager I get 8 Resolve Package Graph warnings with messages like "found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target".

The first of these refers to a file "~/Library/Developer/Xcode/DerivedData/test-app-ghaxlhcelpjhlaebcjryqedbfrpv/SourcePackages/checkouts/amplify-ios/Amplify/Info.plist"

The rest are shown in the attached screenshot.

To Reproduce

  1. Create a new iOS app project in Xcode. I'm using SwiftUI
  2. Install Amplify using Swift Package Manager, following the instructions here. I've chosen the Amplify, AWSPluginsCore and AWSCognitoAuthPlugin packages
  3. Build the project
  4. The warnings will be shown

Expected behaviour

No warnings

Screenshots

Screenshot 2021-04-10 at 21 05 05

Environment(please complete the following information):

  • Amplify Framework Version: 1.8.0
  • Dependency Manager: Swift Package Manager
  • Swift Version: 5.3.2
  • CLI Version: 4.47.1

Device Information (please complete the following information):

  • Device: MacBook Pro (Intel)
@palpatim palpatim added build Issues related to build and CI/CD pending-triage Issue is pending triage labels Apr 12, 2021
@royjit
Copy link
Contributor

royjit commented Apr 13, 2021

Hi @pierceglennie Thank you for reaching out, I was able to reproduce the issue. Here is a PR for the fix - #1163

@royjit royjit added pending-release Code has been merged but pending release Code has been merged but pending release and removed pending-triage Issue is pending triage labels Apr 13, 2021
@pierceglennie
Copy link
Author

Thanks for looking into it so quickly

@royjit
Copy link
Contributor

royjit commented Apr 16, 2021

Closing this issue since the PR has been released.

@royjit royjit closed this as completed Apr 16, 2021
@nmccann
Copy link

nmccann commented Apr 23, 2021

Thank you for the quick fixes! However, with the latest stable version (1.8.1) there appears to be one file that is still unhandled:

package-issue

@royjit royjit self-assigned this Apr 23, 2021
@atierian atierian removed the pending-release Code has been merged but pending release Code has been merged but pending release label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to build and CI/CD
Projects
None yet
Development

No branches or pull requests

5 participants