I ran into the same problem on flutter 3.24.5 using xcode 16.1 (16B40). The problem was solved by switching to flutter beta 3.27.0-0.2.pre.
Additional information can be found here https://github.com/flutter/flutter/issues/153574