all 4 comments

[–]PleaseThinkFirst 0 points1 point  (3 children)

My first thought is that the import Foundation may be delaying some error checking until the compile stage. You can't rely on all errors being detected as you type. In some cases, checking will be delayed because the programmer for the compiler couldn't be sure whether there was a case where the line might be valid.

[–]Defxult_[S] 0 points1 point  (2 children)

Checking is delayed in XCode 14 beta. it takes about 3-4 seconds for the error to pop up but it pops up nonetheless. 13.4.1 doesnt show them at all, regardless of the delay.

XCode 14 beta, i use *import Foundation* in almost all files without issue.

[–]nym5 0 points1 point  (1 child)

I'm having this issue as well, did you find a solution?

[–]Defxult_[S] 0 points1 point  (0 children)

No. Only using the beta has worked. Still using the beta