More bad news: It isn't just the one .h file. If I select any .h file and use Product>Perform Action>Compile File I get an error 'headerFileName.h' is not a member of any targets in the current scheme that build for running. So it appears that the target is broken and doesn't know it has any headers. If I delete the target and re-build the project will XCode create a new target? Maybe one that works?
Post
Replies
Boosts
Views
Activity
I filed a DTS technical service request.
After I delete the derived data, XCode will re-index and rebuild the project but it is still dead. I thought about upgrading to the newer version of XCode but it can't be installed on my Intel iMac. Some projects still work but the two really important ones are dead. Unless someone has some idea of how to solve this problem I can't develop software for the Mac.
Searching for XCBBuildService I found several posts on Stack overflow from people with similar problems. They solved them by deleting the derived data in their ~/Library/Developer/DerivedData folder. Would this help?
I can cd the directory to this with the terminal command ~/Library/Developer/XCode but it looks like I can't do anything with the contents of the DerivedData directory: Permission denied.
I could open the DerivedData Directory in the Finder and delete the data. Should I do it?
Booting in safe mode didn't help.
Disk First Aid thinks that everything is OK.
EtreCheckPro found a suspicious problem: Yesterday XCBBuildService, a component of XCode, crashed. My best guess is that when this happened it killed my project. How would I fix this?
Things have gone from horrible to worse. Each time I build my project XCode is randomly deciding that one of the headers has the spurious "Expected identifier or '('" error and that the functions in the .c or .m file are undefined. Each time I build the project a different file is affected and there is a different number of errors.
Also it has decided that it doesn't know what an enum declaration is.
I got really desperate: I cleaned the build folder and closed XCode. I restarted my machine. The project was working yesterday so I restored yesterday's .xcodeproj file with Time Machine. No, XCode has completely failed and it's getting worse. The version of XCode I'm using (14.2 (14C18)) was installed in December. Is there a newer one?
Now XCode has completely lost its mind and is randomly reporting the spurious Expected identifier error all over the place in files that include a header.
Thanks, this seems to fix it. Also locking the field to its parent view and making it un-resizeable with the auto-resizing pane seems to help. I'll try to mark this as solved.
I can add layout constraints using the Editor>Resolve Auto Layout Issues>Add Missing Constraints. This works for SOME NSViews but in others with more interface items it creates a huge list of errors.
Also I should mention that in the build settings "Interface Builder XIB Compiler Options" I can set Show Errors, Show Notices and Show Warnings to NO but XCode still reports these warnings. Also only some NSText fields generate this warning even though they are all configured the same except for their sizes and locations.
1/18/2023 - I submitted a new version of a Mac OS App 19 days ago. It is still waiting for review. Yes, the App Store review system has a problem.
I filed a bug report with apple. They replied that none of those methods for clearing the old help book will work. HV cached are stored in ~/Library/Caches/com.apple.held. The correct way to clear the cached Help Books is to use the terminal command hiutil -P ~/Library/Caches/com.apple.held. Be sure to delete other versions of the app because the OS might index versions in /Applications and ~/Applications. Interestingly man hiutil in the terminal doesn't list the P flag but it does seem to exist because the command hiutil -P ~/Library/Caches/com.apple.held does seem to delete the cached version of the Help Book.
This is happening again with XCode 13.4.1. I have changed the text in my Help Book using the editor in XCode. After clearing the caches, the build folder and jumping through all of the other firey hoops mentioned in this thread it is still building the App with a cached version of the Help Book, so I can't update it. As you can see from this post's history this wound has been festering for at least FOUR YEARS. Does anyone have any ideas of how to fix this?
It's working again this morning. It isn't asking for my user ID and password. I'm going to make a copy of the receipt so if this stops working again as it has in the past I will be able to include it in my project as a build phase.
Feedback ID: FB10211910 this time. Also FB10023318 and FB9760796.