'Failed to package flutter xcode

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?



Solution 1:[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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dharman