Re: Indexing broken for one project

2022-02-14 Thread Alex Zavatone via Cocoa-dev
In my work MacBook on Monterey 12.1, /private is read only, but /tmp still is writeable. I just create a folder there as a test. That aside, if there’s anything I’ve learned in the week or two since I’ve been using Xcode, it’s “don’t do what it doesn’t expect you to do”. That includes to usin

Re: Indexing broken for one project

2022-02-14 Thread Gabriel Zachmann via Cocoa-dev
> > In Monterey, /tmp is now only writeable by root. It is? I have been storing temp files in /tmp all my life (output from all kinds of programs), and did not notice a change when upgrading to Monterey. /Users/zach% cd /tmp /private/tmp% ls -ld . drwxrwxrwt 17 root wheel 544 Feb 14 12:00 ./

Re: Indexing broken for one project

2022-02-13 Thread Marco S Hyman via Cocoa-dev
On Feb 13, 2022, at 4:39 PM, Jack Brindle via Cocoa-dev wrote: > > In Monterey, /tmp is now only writeable by root. ??? Does terminal.app have special privs? ~% ls -l /tmp lrwxr-xr-x@ 1 root wheel 11 Feb 6 13:22 /tmp@ -> private/tmp ~% ls -ld /private/tmp drwxrwxrwt 23 root wheel 736 Feb

Re: Indexing broken for one project

2022-02-13 Thread Alex Zavatone via Cocoa-dev
> On Feb 13, 2022, at 4:09 PM, Gabriel Zachmann wrote: > > The Derived Data directory is set to /tmp (i have had that setting for years). Oh, don’t do that. Glad you’ve got it fixed. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Indexing broken for one project

2022-02-13 Thread Jack Brindle via Cocoa-dev
In Monterey, /tmp is now only writeable by root. It is quite possible that Xcode couldn’t write there for the indexing. When you changed to a new account, it probably changed where the derived data went. It used to be that /tmp was writeable by anyone. That change bit me recently as well. Secu

Re: Indexing broken for one project

2022-02-13 Thread Gabriel Zachmann via Cocoa-dev
> This seems to indicate an error somewhere in the Xcode prefs. Oh, wow, maybe I have resolved the issue! The Derived Data directory is set to /tmp (i have had that setting for years). Now, in Xcode / Preferences / Locations / Derived Data / Advanced, I set Custom = Relative to Derived Data. (Be

Re: Indexing broken for one project

2022-02-13 Thread Alex Zavatone via Cocoa-dev
This seems to indicate an error somewhere in the Xcode prefs. Try using it in that new user is aways am option. Or copy the project back into another folder and see if the original user can open the project from the other folder. Just the two guesses I have at the moment. Cheers, Alex Zavatone

Re: Indexing broken for one project

2022-02-13 Thread Ben Kennedy via Cocoa-dev
On 13 Feb 2022, at 1:07 pm, Gabriel Zachmann via Cocoa-dev wrote: > Just now, I have tried a few other things. > I deleted some folders in ~/Library/Deverlopers (caches, log files, devices). > Interestingly, there is no ~/Library/Deverloper/Xcode/DerivedData! (which > should contain the indexin

Re: Indexing broken for one project

2022-02-13 Thread Gabriel Zachmann via Cocoa-dev
> > Sort of straw-grasping I would try with Xcode under these circumstances? > > Try changing the target CPU/OS setting to something else, build, and see if > the indexing works. > > If it does, make the minimal changes needed to appropriately build your > target. > Thanks a lot for the straw ,

Re: Indexing broken for one project

2022-02-13 Thread Gabriel Zachmann via Cocoa-dev
This is, indeed, strange. I tried it, as you suggested, with a new user account on the very same machine. Everything works just fine in a copy of the project under that pristine account. Even when I launch the .xcodeproject in my real home, the indexing works. It just does not work in my home. J

Re: Indexing broken for one project

2022-02-12 Thread Kirk Kerekes via Cocoa-dev
Sort of straw-grasping I would try with Xcode under these circumstances… Try changing the target CPU/OS setting to something else, build, and see if the indexing works. If it does, make the minimal changes needed to appropriately build your target. If it doesn’t, discard straw. Kirk Kerekes

Re: Indexing broken for one project

2022-02-12 Thread Alex Zavatone via Cocoa-dev
Here’s an idea. Create a new user on your Mac. Open the project from that new user and see if it indexes. It worked fine on my Mac Good luck. > On Feb 12, 2022, at 8:24 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Here is another attempt at getting to the root of the indexer problem I a

Re: Indexing broken for one project

2022-02-12 Thread Gabriel Zachmann via Cocoa-dev
Here is another attempt at getting to the root of the indexer problem I am experiencing. First of all, thanks a lot for your helpful hints, albeit they did not resolve the issue. Here is - for recap - the description in a nutshell of my original post: A few weeks ago, indexing in Xco

Re: Indexing broken for one project

2022-02-06 Thread Gabriel Zachmann via Cocoa-dev
> I have come across issues where a code syntax error messes up indexing—are > you able to do a full, successful compilation? Yes, I think so. Have done Product / Clean Build Folder , then quit Xcode, then launched again. The project builds fine, no warnings. But I still have a hunch it's in th

Re: Indexing broken for one project

2022-02-06 Thread Keary Suska via Cocoa-dev
I have come across issues where a code syntax error messes up indexing—are you able to do a full, successful compilation? Other than that, I have heard that some issues might require a system restart, i.e. 1) quitting Xcode; 2) deleting derived data (if you use a shared location you might also w

Re: Indexing broken for one project

2022-02-06 Thread Gabriel Zachmann via Cocoa-dev
Thanks a lot for your response. I had tried that already, to no avail. I am seeing lots of "Crash detected during compilation" in Xcode's indexing log. Best regards, Gabriel > On 6. Feb 2022, at 19:18, Rob Petrovec wrote: > > Quit Xcode, delete the DerivedData directory for your project an

Re: Indexing broken for one project

2022-02-06 Thread Alex Zavatone via Cocoa-dev
Over several weeks, I’ve had the most annoying problem with Xcode and pods with the sandbox always being out of sync. Guess what fixed it? Quitting and restarting Xcode. Sometimes this product just reminds you of Windows 3.1. Best of luck. Gabriel want me to try your project out in Xcode 1

Re: Indexing broken for one project

2022-02-06 Thread Rob Petrovec via Cocoa-dev
Quit Xcode, delete the DerivedData directory for your project and re-open your project. That should trigger a re-index and a full rebuild of your product. The default location for the DerivedData directory is in ~/Library/Developer/Xcode/DerivedData/-. You can also configure it to be in your s