skip to Main Content

I am trying to run my flutter project on my ios device, but I got an error in the xcode that says "Failed to package /Users/user/StudioProjects/project."

Any solutions?

3

Answers


  1. I got the same error and solved it by running my ios app on Android studio first then after that, I was able to run it on Xcode. It worked for me. It is weird but I don’t know what was wrong. If this does not help, do this:

    run flutter clean,

    then flutter pub get,

    finally pod update.

    Login or Signup to reply.
  2. How I fixed this:
    This is because some of the image is corrupt but if you delete the corrupt image it won’t solve the issue

    Try:

    • Delete the image -> flutter clean -> flutter pub get -> pod install (in iOS folder)

    Note if you don’t know what image is corrupt, try delete multiple of them one time

    Login or Signup to reply.
  3. Try
    Upgrade flutter to latest version it is worked for me

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search