How to put eng.cube.lm in xcode 5.0.2 - ios

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.

Related

macOS - How can I install a new MacTex (LaTeX) package (a folder containing .sty or .bib files) and use it?

I have been struggling to install a new package and use it for TexShop.
What I have tried is searching for the folder path: /texmf/tex/latex
However, even when enabling to see hidden folders, such a folder does not exist on my system. I therefore went ahead and created the three folder manually. I then placed my folders containing the .sty or .bib files inside. This does not seem to be working because I still receive the error that LaTeX could not find the .sty file.
Another folder that I can find within my Library is not the texmf folder but a TeX folder (see screenshot below)
Do I maybe have to place the packages inside one of these folders instead?

My Framework is Compiling to an Unexpected Build Products Directory

I have a project named 'MyProject'. I added a framework to the project named 'MyFramework'. I use the Realm cocoapod within MyFramework. I linked Realm.framework to MyFramework under the General tab. I also copied the Realm.framework to the MyFramework bundle under the 'Copy Bundle Resources' tab.
When I try to build MyProject I receive the error: "error: /Users/me/Library/Developer/Xcode/DerivedData/MyProject-abc/Build/Products/Debug-iphonesimulator/Realm.framework: No such file or directory".
When I check the 'MyProject.abc' directory I see the Realm.Framework saved at 'Debug-iphonesimulator/Realm/Realm.framework' folder and not 'Debug-iphonesimulator/Realm.framework' as expected in the error. Any suggestions? FYI, a command named 'CpResource' is being executed which leads to the error. I'm not sure how to set where 'CpResource' looks for the Realm.framework.

File not found in Xcode project folder

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.

Invalid Directory Name - Your app contains a directory name that is already reserved

Just submitted my app for review and was then emailed this error message:
Invalid Directory Name - Your app contains a directory name that is already reserved: 'Frameworks'. You must rename this directory.
Anyone have experience with this?
edit for a little more info: The only thing I have changed recently which may have caused this is to use Cocoapods. I'm opening and compiling from the xcworkspace. I do notice that a library called 'QuickDialogs' which I use had a Group called 'Frameworks' which I renamed.
Try following steps:
find and open ${YOUR_PROJECT_ROOT}/Pods/Pods-resources.sh
search ${FRAMEWORKS_FOLDER_PATH} and replace with ${UNLOCALIZED_RESOURCES_FOLDER_PATH}
clean your project and delete derived Data(organizer-projects)
achive your application again
I met this problem when I add extra frameworks by cocoapods. App store's response told me that there was a directory named Frameworks, which is reserved.
This folder is created at Copy Pods Resources step in Build Phases,
I have found that using ShareKit with Cocoapods was adding a Frameworks to my binary. That's why I substituted:
pod "ShareKit"
with:
pod "ShareKit/Facebook"
pod "ShareKit/Twitter"
pod "ShareKit/GooglePlus"
as I only use these services.
In order to see the folder created go to your binary and see the contents of the archive generated in the Applications folder.
Hope that helps!

How to create and check a subdirectory in the Application Bundle

i have create a new subdirectory in my application bundle. This i have done in the xcode environment.
target -> copy bundle resources
now add a new folder
create folder references for any added folders
how can i check that the folder is created in the application bundle
Thank you
To check the folder/directory has been created inside your application bundle (.app), right click on your .app file and select "Show Package Contents". Now check if folder/directory appears in your .app file.
As a side note, an easier way to add a folder/directory to your .app bundle is to add "Folder" instead of "Group" in your Xcode project. For example, lets say you have a bunch of files inside /HTML directory. Drag and Drop this /HTML directory in your Xcode project. Xcode will present a dialog with options like, "Copy items into destination group's folder (if needed)", "Create groups for any added folders", and "Create folder references for any added folders". Choose "Create folder references for any added folders" in this dialog. As a result, you'll see a blue group folder, instead of the usual yellow group folder for your /HTML directory (in your Xcode project), and Building the .app will create /HTML folder inside your .app bundle.
Hope this helps.

Resources