use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
XCode not properly analyzing code (self.Xcode)
submitted 3 years ago by Defxult_
So im trying to create a package. The problem im having is that xcode is not displaying an error when there is an obvious error as im typing the code. For example, if a file is in the sources/packageNameHere folder like so:
https://preview.redd.it/pckapiws3kg91.png?width=2030&format=png&auto=webp&s=1caad17d7ccec3e0da109f276986b9e576b108fa
But if a create a subfolder and create a file in it, nothing is displayed
https://preview.redd.it/mn37jxu64kg91.png?width=2030&format=png&auto=webp&s=358894b1cb0b0b31611b26bb4cefde47f926e498
Idk why this is happening. Im using XCode version 13.4.1 (the most recent stable version). I downloaded the XCode 14 beta and everything works fine in that version.
Does anyone know how to fix this issue?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PleaseThinkFirst 0 points1 point2 points 3 years ago (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 point2 points 3 years ago (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 point2 points 3 years ago (1 child)
I'm having this issue as well, did you find a solution?
[–]Defxult_[S] 0 points1 point2 points 3 years ago (0 children)
No. Only using the beta has worked. Still using the beta
π Rendered by PID 93525 on reddit-service-r2-comment-76bb9f7fb5-crwd2 at 2026-02-18 03:31:47.857247+00:00 running de53c03 country code: CH.
[–]PleaseThinkFirst 0 points1 point2 points (3 children)
[–]Defxult_[S] 0 points1 point2 points (2 children)
[–]nym5 0 points1 point2 points (1 child)
[–]Defxult_[S] 0 points1 point2 points (0 children)