If I'll run my app, this 3 errors comes up.
Does someone knows why?
Here is how I import GPUImage:
Step1 (added the GPUImage.xcodeproj file into my project):
Step2 (added the GPUImage Objects to "Target Dependencies"):
Step3 (added the libGPUImage.a file to "Link Binary With Libraries"):
Step4 (added in the Header Search Path the Source folder from GPUImage):
All in all I followed this tutorial:
You need to add this #import "CPUImagePicture.h" in your .m file
Related
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 a project that requires a local framework.
The project has the frameworks set up in a frameworks folder.
The new local framework is placed in it as well. The result folder structure is like that:
project
-- frameworks
---- theFramework.framework
------Headers
--------TheFramework.h
--------file1.h
--------file2.h
--------subfolder
----------Subfolder.h
----------Another.h
In the Bridging header the TheFramework.h and the Subfolder.h need to be imported.
It looks like that:
#ifndef Bridging_Header_h
#define Bridging_Header_h
#import <TheFramework/TheFramework.h> //This one is working just fine
#import <subfolder/Subfolder.h> //This one fails with File not found
#endif /* Bridging_Header_h */
If I change #import <subfolder/Subfolder.h> to #import <TheFramework/subfolder/Subfolder.h> then it seems that the file is found because then it fails in Subfolder.h where it tries to do #import <subfolder/Another.h> and fails again with a Not found
If I change subfolder/Another.h to TheFramework/subfolder/Another.h then it works here as well.
Now in my real life scenario I have 4 header files in different subfolders all importing around 50 other files so changing all of the imports will be... annoying.
Also if later we want to update to a newer version of the framework, all the changed imports will be lost.
Does someone know how I can solve that issue? Either by having the project find the imports as already defined or by for example defining a value somewhere that makes the compiler understand that subfolder/file.h equals to TheFramework/subfolder/file.h ?
Thank you!
Found the solution I had to add
"$(SRCROOT)/frameworks/theFramework.framework/Headers"
to my targets User Header Search Paths (Target -> Build Settings -> User header search paths.
This seems to let the compiler know where additionally search for header files including subfolders.
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.
I am creating a static library for my project. Is all the classes created inside static library has to copy files in build phases? I have added only some of the files in build phase ->copy files. Now i am using this static library in my project. I got file not found error in static class file.
For Example:
Static Library - > It has 2 Classes.
1. One.h One.m
2. Two.h Two.m
In Two.h header file it has #import "One.h"
In build phase-> Copy files added only Two.h(As i don't want to show One.h to everyone)
MYProject - >
I am using Static library in this project.
I have added StaticLibrary.a file and the header paths.
Now i imported Two.h in my Project.
#import <StaticLibrary/Two.h>
Error:Cannot find the class One.h -> Inside Two.h
Could anyone help me to resolve this issue?
Even if you have a static library, if you don't have the "One.h" file then the other headers can't have it as an import.
Sorry, but you'll have to show One.h to everyone, or else rearrange your code. What is it that you don't want to expose? Does it have to go into a header file?
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