While integrating latest robbiehanson's XMPPFramework, I came up with an error : CocoaAsyncSocket/GCDAsyncSocket.h' file not found
and a simliar kind of error:
/Users/Con/Documents/PROJECTS/Cor/Cor/Libraries/XMPP Framework/Core/XMPPLogging.h:62:9: 'CocoaLumberJack/DDLog.h' file not found
Help!
open your Built Setting on your project, then set it like
User Header Search Paths = $(SRCROOT) // recursive.
Always Search User Paths = YES
Related
I'm trying to add an iOS framework called WebPDecoder.framework using CMake. I found that the right way to do this would be:
find_library(IOS_WEBP NAMES WebPDecoder PATHS "${PROJECT_SOURCE_DIR}/lib/ios" NO_DEFAULT_PATH)
The framework folder is in the lib/ios folder, but CMake can't find it. Adding --debug-find I'm getting the following output:
find_library called with the following settings:
VAR: IOS_WEBP
NAMES: "WebPDecoder"
Documentation: Path to a library.
Framework
Only Search Frameworks: 0
Search Frameworks Last: 0
Search Frameworks First: 1
AppBundle
Only Search AppBundle: 0
Search AppBundle Last: 0
Search AppBundle First: 1
NO_DEFAULT_PATH Enabled
find_library considered the following locations:
The item was not found.
Why is CMake ignoring my custom path?
I had the same problem. It turned out that a copypasted CMake setup for iOS was setting CMAKE_FIND_ROOT_PATH_MODE_LIBRARY to ALWAYS. To allow CMake to find the custom path under project source directory, the setting must be BOTH or NEVER.
I accidentally moved some files on my computer and now am getting the following error message:
Umbrella header 'FaveButton-umbrella.h' not found
The error message was displayed to the right of line two in the following code:
framework module FaveButton {
umbrella header "FaveButton-umbrella.h"
export *
module * { export * }
}
Try looking for the h. file that is associated to your project and put it back in the folder where the rest of your .h/.m files live. Try also a scan of the file name on spotlight search to retrieve the file.
I have created an application on angular 7 and ionic 4.
I tried to edit app.routing.ts file, setting path and component. From then on I am getting this error below:
ERROR in ./src/app/department/department.module.ts
[ng] Module build failed (from ./node_modules/#ngtools/webpack/src/index.js):
[ng] Error: ENOENT: no such file or directory, open 'C:\Users\x\department\department.module.ts'
[ng] at Object.openSync (fs.js:436:3)
[ng] at Object.readFileSync (fs.js:341:35)
[ng] at Storage.provideSync (C:\Users\x\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:98:13)
Make sure department component exist, check the templateUrl that corresponds to the file name you are referencing. You may have also modified the path unknowingly during modification of app.routing.ts file.
C:\Users\x\department\department.module.ts
This error occurs when your component can't be found with your app.module settings.
Follow these steps to solve your problem:
Check if the module.ts file exists.
Check the relative path.
The path is case sensitive (maybe the .ts file is Department).
Both answer are useful from #trustidkid and #vinay sharma. If there is someone has been facing the same problem;
1-Go to to the file that the error has occurred in. (To go directly to the file, click the error line shortly [CTRL+Click] (CMD+Click on MacOS):
ERROR in ./src/app/department/department.module.ts
Then check the path address if it is exactly true pointing the file. Most of these problems are having similar solutions. Just be sure about the path address of the file you want to point and the address mentioned in the other file which the error occurred.
This problem happens when you delete a component but forgot to delete its import from module.ts.
For example: TestComponent is deleted so you have to also delete:
import { TestComponent } from './test.component'
If you have a folder mapping on a windows machine like me, do not try to build it from a mapped folder, go to the original folder and build it from there.
Mapped Folder has a small icon like this:
In my case I had prime ng version that did not support a particular module, I simply commented it out and it worked.
Hy, I want to use the QuickDialog library but gives me error.
The step that I made:
download it from github
copy the directory into my project's directory
add QuickDialog.xcodeproject
my project --> Build Phrases:
Target dipendencies: add QuickDialog
link Binary : add libQuickDialog.a
include in mi file Prefix.phc :#import
my project --> Build Settings:
Other linker flags: -ObjC
User header search paths : "${PROJECT_DIR}/QuickDialog" and check the box
always serach user path : YES
run
But give me the error:
QuickDialog/QuickDialog.h file not found
What is wrong???
Please help me!!
If you put this: "${PROJECT_DIR}/QuickDialog"
and you try to import "QuickDialog/QuickDialog.h"
that means that he goes in directory: "${PROJECT_DIR}/QuickDialog/QuickDialog/QuickDialog.h" ?
Did you try to put just: "QuickDialog.h" ?
EDIT: The solution is here: Including QuickDialog into Xcode 4.2 Project
I am working on XNA with XML reading. While I'm debugging the code its shows file not found error, but I added my XML file in Content reference folder. While I'm using this code I got the error.
System.IO.Stream stream = TitleContainer.OpenStream("ProductSchema");
Thanks in advance.
Bharathi.G
Shawn explains this very well in this post: Shawn's blog entry
Try adding the extension:
System.IO.Stream stream = TitleContainer.OpenStream("ProductSchema.xml");
Check whether that file is present in the bin folder where your game .exe file lives (bin\Windows Phone\Debug\Content). If not, then this may be the problem. To solve this :
right click the file >> select property >> change build action to None and copy to output directory to Copy if newer.
This works for me while loading/reading binary files in my game.