File not found in Xcode project folder - ios

Why compiler looking for file only in project folder, and no in subfolder.
ERROR: Can't find /Users/kukodajanos/Workspace L/PFB2/crossfeed_connecting.png
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1
This is the project folder: /Users/kukodajanos/Workspace L/PFB2
but file is not in root but in /Users/kukodajanos/Workspace L/PFB2/PFB/
I am after a merge. Why Xcode is not enough smart to look for file in subdirectory? Anyway all class files .h, .m, resources are stored there.

Related

XCode 7.3.1 can't find sqlite3.0 lib despite the file being where it says it can't find it

I have a static lib project that has been working fine and had the libsqlite3.0.tbd dylib linked to it. I moved the static lib project into a new UI project and suddenly that lib, and all other libs actually that could be linked to through the UI as .tbd, can not be found by XCode. I thought, okay I've corrupted my static lib project file I'll just create a new static lib project and move files into it. So I tried to create a brand new static lib and link the sqlite3.0 dylib to that before moving any files into it and it too gives this same error message:
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/lib/libsqlite3.0.tbd (No such file or directory)
Yet I can go to Terminal and cd to that dir and there's the file.
But the projects won't build.
Any help appreciated. Thanks!

Xcode subproject cannot find its own header files

I have an sdk that is added to my project as a subproject in xcode. My main project's classes can import all the header files successfully into the code by using
#import "Filename.h"
because I added the sdk directory to my Header Search paths in the build settings of my main project.
However, the problem is that the classes of my sdk can't successfully import each other unless they are in the same directory. In my case, this is a problem because my sdk has folders within it with header files that the files in the main sdk folder want to import. As a result, I receive the error:
'Filename.h' cannot be found
when files in the main sdk folder try to import header files nested in deeper folders in the sdk. When I tried to move all the files into the main directory (I'm fine with sacrificing organization for functionality), the original error remained and I got two more errors:
clang: error: no such file or directory: '/Users/.../MainProjectFolder/SDKFolder/NestedFolder/Filename.m'
clang: error: no input files
It seems to know where to look for the files but the other files still can't access it.
Does anyone have any ideas to help?
Thanks, any help is appreciated!

Header files are not found while archiving the build in xcode

I have a sub project that has been developed as dynamic lib and included that sub project into my main project and been set as target dependency.
When I run my main project, .a file for my sub project has been created successfully and the corresponding header files are created in the build directory such as (build/release-iphoneos/include). I have mentioned path using MACRO
In my main project, I mentioned header search path as the same that i mentioned above using MACRO.
But when I try to archive the build it throws the run time error file not found in the import statement
#import <subproject/myfile.h>
But it is getting build and run successfully even though it displays the file not found error in the xcode editor in compile time.
My question is
Is this because of the build directory will be empty while archieving?
I solved the problem as below
1. The header files were private so changed them as public so they are exposed to main project. (To build & run successfully)
2. I copied the header files and created a directory and add them into my main project and set the header search path to point that directory (To archive successfully)

How to put eng.cube.lm in xcode 5.0.2

when i add tessdata folder in bundle then generates this error :
/Users/cepl/Desktop/NumberOCR/NumberOCR/tessdata/eng.cube.lm:8: premature EOF
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1
Make sure you select the "Create folder references" option, when adding the tessdata folder to your project.
From the documentation:
NOTE: This library currently requires the tessdata folder to be linked
as a referenced folder instead of a symbolic group. If Tesseract can't
find a language file in your own project, it's probably because you
created the tessdata folder as a symbolic group instead of a
referenced folder. It should look like this if you did it correctly:
Note how the tessdata folder has a blue icon, indicating it was
imported as a referenced folder instead of a symbolic group.
Trashing the current folder and adding it again as a folder reference should solve the problem.

TFS Build fails with "Could not copy file" of file not even in the project

I have TFS Build set up, which worked fine until yesterday. Since then I get the following error from one project:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets
(182): Could not copy the file
"Content\themes\base\images\ui-bg_flat_0_aaaaaa_40x100.png" because it
was not found.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets
(182): Could not copy the file
"Content\themes\base\images\ui-bg_flat_75_ffffff_40x100.png" because
it was not found. C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets
(182): Could not copy the file
"Content\themes\base\images\ui-bg_glass_55_fbf9ee_1x400.png" because
it was not found.
C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets
(182): Could not copy the file
"Content\themes\base\images\ui-bg_glass_65_ffffff_1x400.png" because
it was not found. C:\Program Files
...and about 10 more...
The files mentioned by the error are nowhere to be found, not in the project nor in any folder of the project.
Does anyone know how to get rid of this error?
At Ln 182 of the .target file is the following:
<Copy SourceFiles="#(Content)" Condition="'%(Content.Link)' == ''"
DestinationFolder="$(WebProjectOutputDir)\%(Content.RelativeDir)"
SkipUnchangedFiles="true"
Retries="$(CopyRetryCount)"
RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" />
I also have a second project in the solution which is nearly the same and builds fine.
Grep/Search the entire source tree for those filenames - something must be referencing them.
Adding the missing files to source control solved the problem for me.

Resources