I'm currently taking over someone's else project who was in a different country. He is using MumbleKit in his project, however when i try building the project, these errors occurred.
error: input is not a PCH file: '/Users/kai/Library/Developer/Xcode/DerivedData/TestBuild-bivflkvgwypsqidilllttbdfyjjq/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/70367429320928002/CELT-0.7.pch.gch'
fatal error: file '/Users/kai/Library/Developer/Xcode/DerivedData/TestBuild-bivflkvgwypsqidilllttbdfyjjq/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/70367429320928002/CELT-0.7.pch.gch' is not a valid precompiled PCH file
Now, i have tried fixing the header path file and cleaning the project and deleting derived folder's content, still this error occurred. I believe xcode is trying to find a pch file but this .gch is being created instead. How can i prevent this .gch from being created in the derived folder? Or how do i fix this in general since i don't really deal with 3rd party project dependency before.
EDIT : I believe this error is coming from the 3rd party Mumble kit, CELT-0.7 project
Okay, I've found the solution, Mumble kit's CELT project have a file : Base.xcconfig.
There is a variable, GCC_PRECOMPILE_PREFIX_HEADER, initially it was set to YES, after set it NO, that fixed it. Though it will be nice if someone would explain to me what it does exactly.
Related
I'm now using Enterprise Architect version 15. Recently, whenever I try to create a new project I got the error show that "Not a valid file name":
Although, my file name is not wrong, I've tried many difference names but it's useless. Now, I just able to open the projects which I've create before.
Can anyone help me how to fix this error.
I've just found the answer. That could be the program's fault.
The issue here isn't the way I named the project. It's because the folder where I decided the project located. The folder is named in Vietnamese (which is allowed in Windows) but I guess EA can't read these character when they get the project located link.
In conclusion, It's better for everyone to name not only the project but also the folder the project located in English to prevent this error
I had the same problem with trying to save the file image. I found that when I originally created the Diagram name I unknowingly pasted in as 2 lines.
Once I fixed it as one line it saved fine.
I'm playing around making a Swift CLI tool but I've run into a bit of a problem with bridging headers. I was going to use some c++ scripts, so I made a c++ file in the project in Xcode and agreed to Xcode making a bridging header for me. I realised a few minutes later that I could do the necessary coding in Swift, so I deleted the bridging header and c++ file.
But now, whenever I try to compile the project, I get an error saying
error opening input file '/path/to/project/ProjectName-Bridging-Header.h' (No such file or directory)
Does anyone have any idea how to tell Xcode to stop looking for the header? I've tried the obvious tricks like saving and restarting.
Cheers
I don't really understand what's hapening but I'm not able to see all my Swift files on Xcode project navigator, but when I open my project directory I see them all, it looks like reference problems.
I'm receiving some invalid redeclaration problems.
Are you using the one of the xcode-beta builds? They seem to have some problems with file handling every now and then. Restarting fixes it for me most of the times.
I recently tried installing zxing in xCode 4.2 for my next app. Here is what happened.
I began following the steps, everything was going ok, the first strange thing I noticed is that libZXingWidget.a library showed up red when I added it. I started to get worried because xCode still baffles me. The rest of the steps were followed without issue until I added paths to the header search paths. I tried using an absolute path from /Users to the /cpp/core/src/ and /iphone/ZXingWidget/Classes directories I set up then a relative path and no matter what I get the following error:
clang: error: no such file or directory: '/Users/myusername/Desktop/../../cpp/core/src/zxing/common/GreyscaleLuminanceSource.cpp'
Which .cpp file is causing this seems to rotate around. Funny thing is that do not ever even specify Desktop in my header search paths. Early on I had my folders on my desktop and I was referencing them from there but since then I have deleted that project and have a completely new one. I have no idea what is causing the project to search that location and I would like to know how I can change it.
Thanks!
Try deleting then re-adding the lib. If the problem still occurs, you may want to look into the pbxproj xml file with a text editor to try to see where the wrong path come from.
I had similar problem. Try to move your "cpp" folder to "Users", if it helps then you have problems with your pathes.
I am facing some compilation issues. In my iPhone app I am using some external library which I have placed in my Frameworks folder. But both these ".a" files and ".h" file comes in red color and they are not getting compiled. Any clue what I am doing wrong here.
It gives errors like not able to find classes of these external lib.
If they are red. Then those files are actually missing from your iPhone project. In order to fix this. Re-download the library (.a and .h) files, then add them into your project again.
I would recommend deleting the "RED" files first, and then re-add the files again.
If you're still having problems after following this. Drop a note.
Hope this helps...