79591622

Date: 2025-04-25 00:24:30
Score: 0.5
Natty:
Report link

✅ SOLVED!

The issue was caused by Swift compiler optimizations.

In Build Settings, under Swift Compiler - Code Generation → Optimization Level,
select No Optimization [-Onone] instead of any optimized level (like -O or -Osize).

It seems that enabling optimization affects the behavior of the Stream APIs.
Once optimizations are disabled, everything works correctly again.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: raxabizze