Post

Replies

Boosts

Views

Activity

Reply to Project Won't Build with .h File
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?
Jun ’23
Reply to Project Won't Build with .h File
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.
Jun ’23
Reply to Project Won't Build with .h File
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?
Jun ’23
Reply to Project Won't Build with .h File
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?
Jun ’23
Reply to How Can I Disable Auto Layout?
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.
Mar ’23
Reply to Xcode 9 - Can't Update Help Book
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.
Sep ’22
Reply to Xcode 9 - Can't Update 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?
Aug ’22