AppPear / ChartView

ChartView made in SwiftUI
MIT License
5.26k stars 645 forks source link

Package resolution failed? #220

Open mehmet0zen opened 2 years ago

mehmet0zen commented 2 years ago

I am using a Mac book pro M1 and I got the warning that says Package resolution failed!

Description

I don't know why but I selected "add anyways" and now whenever I try to import SwiftUIChart it just gives me the error that No such module 'SwiftUICharts'.

Expected Behavior

In a tutorial the person uses it on iOS 13 device and the guy does not get any warnings at the beginning.

Possible Fix

Maybe the version of Xcode I am using could be the issue, (its the latest version) but probable its because I have M1 (silicon) MacBook.

Your Environment

JOyo246 commented 2 years ago

Just had the same issue.

  1. Go to your project file.
  2. Click on your project on the left sidebar, then click the "Package Dependencies" tab.
  3. Double-Click the ChartView Package.
  4. Verify that the top button is selected, and it's set to Ups to Next Major.
  5. Change the minimum version (left side)from 2.0.0 to 1.0.0 image
KrishnaRLolage commented 2 years ago

If you need beta, the extact version is "2.0.0-beta.2"

romrell4 commented 2 years ago

I got this error once, but it worked either using master as the branch, or 2.0.0-beta.2 as @KrishnaRLolage suggested

leecommamichael commented 1 year ago

You may also see this warning if you added a package-dependency to the app-target and not the widget-extension target in Xcode.

mevluet1968 commented 1 year ago

Anybody who has solved this issue? I've tried the above suggestions without a result. Thanks!