Command CodeSign failed with a nonzero exit code

Hello everyone, thanks for reading my questions :slight_smile:
I am beginner building a flutter project on Cursor AI.

I made some code and run on the android emulator, it run well.
However when I try running on iOS simulator such as iPhone 16, I failed like the image attached.

Launching lib/main.dart on iPhone 16 in debug mode…
Xcode build done. 12.6s
Failed to build iOS app
Uncategorized (Xcode): Command CodeSign failed with a nonzero exit code

Could not build the application for the simulator.
Error launching application on iPhone 16.

Exited (1).

When I tried running on Xcode by the way, it run well without any problem, so that I guess it might be necessary to connect signing information between Xcode and the Cursor AI (VScode). But I am not sure and I don’t know how and what to do.

Once I read solution for same issue, moving the present flutter project folder into another location not synced with iCloud. So I did but not solved yet…

Please let me go through this obstacle…

Thanks!

can you try Uncategorized (Xcode): Command CodeSign failed with a nonzero exit code · Issue #136131 · flutter/flutter · GitHub