What does the error File type mismatch (~) mean? - cocoa

After upgrading to a newer version of Xcode, when I build my project I get and error:
File type mismatch (~), OutputModelPrefs.nib.
I have tried Googling and the Apple Developer Forum but I can't find out exactly what the problem is. Can anyone shed any light on what the problem might be?

Xcode stores file type information in foo.xcodeproj/project.pbxproj. Maybe you should open that file in a text editor and see if there's anything conspicuous. Look for lastKnownFileType =. If that doesn't help, maybe recreating the project will.
BTW: is that really a . nib file, not a .xib file?

I'm not sure what exactly this means, I got it in a slightly different place. Mine was complaining about a .pbxindex file with the same error message. In my case, I deleted the .pbxindex and rebuilt. After that the file was regenerated an all was fine. More info on my error here: What is Xcode pbxstrings file for?

Related

XCode 12.1 Autocomplete and TextHighliting Bugs?

Has this issue been happening to anyone else?
I haven't changed or updated anything within my configuration files but XCode suddenly just doesn't autocomplete as it did last week or auto-highlight Type Names like UITextViewDelegate.
I'm also on BigSur 11.0.1
I guess that could also be part of the issue?
For Reference, this is what one of my projects looked like last week:
(Normal)
Found the Solution:
My App/Project name contained a \backslash. So something about that messed up the program functions.
I just removed all the "special characters" from project files and it resolved the issues.
Anyone know of a way to use \ in just app display names?

Xcode Quick Help isn't showing up

This is the first time I have been facing this strange issue
Whenever I click on a variable, function name, etc., that is what shows up in the Quick Help section of Xcode:
Error Domain=com.apple.DNTDocumentationSupport Code=0 "disk I/O error" UserInfo={NSLocalizedDescription=disk I/O error}
I have no idea what might be causing this issue, but it seemed to have started to occur when I updated my Xcode to version 9.4.1.
On Stack Overflow, I have only found one Q&A with the same error message, but I have restarted Xcode many times, but to no avail. Does anyone know how to fix this error?
The main reason why this happens is usually because the Xcode documentation is missing or a new version of it is being downloaded in the background for you. For Xcode 9.4.1, you can check if the documentation has been downloaded and is in the correct place. Please do the following:
Open Terminal
Type cd ~/Library/Developer/Xcode/DocumentationCache/
Type ls -al
Find the right directory for your documentation and Xcode versions, in this case v33 and 9.4.1, respectively.
Type cd v33/9.4.1/DeveloperDocumentation.index
Type ls -al
Find file store.db on the generated file list
This database file should have the size of 17960960 bytes or roughly 18 Mb.
If you don't find this, it is because your documentation is missing and/or your connection is too slow to download this database. Thus, you need to be patient and let Xcode download it to your disk.
To quit Xcode and relaunch it usually helps, because it forces the IDE to look for the cache and update its UI.

OBJECTIVEFLICKR: systemconfiguration.h not found

I'm implementing ObjectiveFlickr into my project and I'm very VERY new to all of this (C language and Xcode included).
I managed to fix a few compile errors and I'm down to this one that just popped up after I added some supporting files to get rid of the other errors:
systemconfiguration/systemconfiguration.h file not found
I have no idea what this means and have done much searching online before posting here, but the only resolution to another poster's issue was to re-install Xcode. I'm sort of doubting that will solve this problem as I've had no issue with Xcode up until this error.
Can anyone spare a tip or two in layman's terms to help me get past this? I've been searching for 24 hours and the only link to the Apple Developer forums isn't working, go figure.
Any help is appreciated. Thanks in advance.
XCode can be very picky about where to look at in terms of header files.
If you got yourself a .framework folder, then click in your project, choose "Build Settings", then look for one called "Header Search Paths". Put the framework's path in there, and change the box on the right from "non-recursive" to "recursive". This should get the build going, and works for almost all third-party libraries.
If, on the other hand, you're trying to compile the library with your app, double-check to see if you didn't forgot to include some file in your XCode project, or if it is not marked for compilation in the project settings (.h files do not count, but maybe the source of your problem are some extra .c or .m that shouldn't be there).
If all else fails, since XCode projects compile into a "flat" directory tree, you could try removing the folder indicator from the #include: from "systemconfiguration/systemconfiguration.h" to "systemconfiguration.h", from the files where the .h is called. This worked in some cases of mine.
There is a framework in iOS called "Systemconfiguration.framework". Add it may help a lot.
Hope this may help you.
I had blanks for some reason in my code around the header decaration
#import < SystemConfiguration/SystemConfiguration.h >
I removed them and it worked.

MonoTouch .xcodeproj cannot be opened because the project file cannot be parsed

I'm trying to update my storyboard file and it doesn't open correctly due to the following error:
".xcodeproj cannot be opened because the project file cannot be parsed.".
I'm on the latest version of MonoTouch, so I don't think a previous bug can be attributed to this. Does anyone have any ideas?
Cheers,
Davoc
It looks like this bug, which has already been fixed (but is not in a released version yet).
Comment 2 has a possible workaround (but if it doesn't work you should file another bug, since it's not the same issue).

The template is broken -OpenAL.framework--UPDATE--How to create new mac project manually?

EDIT: It seems like no one knows the answer. New question: can anyone post a step by step tutorial how to create a mac project manually?? The answer to that question will of course get the "tick" as accepted answer..
I have the latest cocos2d version installed.
I made a new mac template and without changing anything I just build it. But I get 26 errors and 7 warnings.
The most important one (I think) is this one:
ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks//OpenAL.framework/OpenAL, file was built for unsupported file format which is not the architecture being linked (x86_64)
I get lots of CDSoundEngine and audio stuff errors.
In the warning I copied above...before the "OpenAL.framework" is a double backslash..strange.
I tried to re-add the OpenAL framework but I get the same error.
I also tried to make a new one but I get the same errors..
I also reinstalled cocos2d..didn't work either.
This only happens with the mac templates...
Does anyone know how to fix this?
Edit: (Added screenshot)
link to screenshot: http://dl.dropbox.com/u/3951219/screenshot_mac_template_error.png
http://dl.dropbox.com/u/3951219/screenshot_mac_template_error.png
A tad late, but I just had the same problem.
For your original question, try this answer here...
My OpenAL Framework is broken
Oh, and btw, the // is normal. It happens when a program opens a directory like {Frameworks}/OpenAL.framework, and "Frameworks" is /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/. The OS takes a // as a /

Resources