Failed to package flutter xcode

Viewed 1508

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?

2 Answers

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.

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

Related