DTCoreText file not found - objective-c

I am trying to use DTCoreText and I have followed the setup documentation to the T. Everything seems to be working find and my project builds correctly, however, when I try to import some classes to try them out in my view controller I get a file not found.
I didn't make any changes to this project for simplicity its a Single View bare bones template with DTCoreText configured to work with it after following the setup instructions on DTCoreText's github
I have posted a zipped version of my project here:
Is there something I am missing here?
Any and all help is greatly appreciated-

Related

dynamic image cropping in react-native using React-Native-perspective-image-cropper

I am trying to make dynamic image cropper. I came across this package which seems to be working absolutely as I want.
I am trying to add this in my application. I followed the steps as specified in document
install react-Native-perspective-image-cropper and react-native-svg and link them
Download opencv framework and add that in ios project
but I keep getting the error
"opencv2/opencv.hpp' file not found"
Anyone came across same kind of error and can help?
You may need to add the following to your settings.gradle:
include ':openCVLibrary310'
project(':openCVLibrary310').projectDir =
new File(rootProject.projectDir,
'../node_modules/react-native-perspective-image-cropper/android/openCVLibrary310')
See instructions here

iOS UI Test Project 'MailCore/MailCore.h' file not found

I did a
git clone https://github.com/MailCore/mailcore2.git
I open the
iOS UI Test.xcodeproj
I run the Build
I get the error
'MailCore/MailCore.h' file not found
I cannot understand why that is happening.
What should I do to get this to build?
Some other sources I have found and followed their instructions are below. None of which fixed this problem.
https://github.com/MailCore/mailcore2/issues/316
https://github.com/MailCore/MailCore/issues/19
https://github.com/MailCore/mailcore2/issues/276
I also was able to open the
mailcore2.xcodeproj
and successfully build each of the targets. Which is interesting that I can do that but cannot build the test project independently.
I also followed the video and read me instructions to add to an existing project and was able to build until I added the
#import <MailCore/MailCore.h>
to one of my files.
UPDATE:
The above process I initiated on my iMac.
On my MacBook Pro after I cloned mailcore2 I opened
mailcore2.xcodeproj
first then did the build on each of the targets.
Then I closed that project.
Opened the iOS UI Test.xcodeproj and did a build on that.
This was successful.
However, I still want to know what would cause the problem with the "file not found"
UPDATE 2:
I removed to trash all mailcore2 code from my iMac.
I created different locations in Finder for doing another clone of mailcore2.
I did the git clone.
I opened mailcore2.xcodeproj
I followed the exact same process of building each target like I did on my MacBook
I then opened the iOS UI Test.xcodeproj and did a build.
I get the same problem of
'MailCore/MailCore.h' file not found
Makes no sense to me how it works on macbook but not on iMac.
You can add in target dependency static mailcore ios(mailcore2).
and add the framework libmailcore-ios.a
Its working.
What I finally did was drop mailcore2 into an existing app I already had started.
To do this I did the following:
I removed all traces of mailcore2
I again followed the instructions in the README and the video help.
This time I followed some instructions from
https://github.com/MailCore/mailcore2/issues/276
The instructions in that link says to add the following to Library Search Path:
$(PROJECT_DIR)/mailcore2/Externals/ctemplate-ios/lib
$(PROJECT_DIR)/mailcore2/build-mac/build/Debug-iphonesimulator
And the Header Search Path to
$(PROJECT_DIR)/mailcore2/build-mac/build/Debug-iphonesimulator/include - recursively
But, that did not work for me. I had to add the HARD CODED PATH to each of those 3 folders.
After doing a clean and build I was then able to add the
#import <MailCore/MailCore.h>
Now it BUILDs completely without error for me.
I will go back and try to add proper relative paths to each of those Search Paths.
Hopefully this helps somebody else with same issue.
FWIW
Had same problem, spend hours trying - nothing worked, not ever hardcoding paths.
Then I stumbled on one issue:
if in XCode\Preferences\Locations I go to Derived Data - Advanced and set it to different locations it always reverts it to Unique, when I go back and check it.
Then I went in File\Project Setting to Derived Data - Advanced and there it was set to Unique. I changed it there to Default and now it does not have that issue anymore!
I delete Derived data, clean project and Start build (Ctrl+B) and I can see now how Build is being created in derived data w/o problems. And that what mailcore needs to function.
And, I checked - no need for hardcoded paths either!
Hope it helps somebody.
PS Another feature maybe useful too - XCode\Preferences\Continue building after error though it did not matter in my case

importing Cocoalibspotify

I'm trying to import the cocoalibspotify into my Xcode project. https://github.com/spotify/cocoalibspotify
However I am completly lost to what files need to be imported and how. I'm still a beginner and the sparse info on the spotify website doesn't really help me. I did manage to run the Simple Player sample project though and I tried looking at what files are imported. But I didn't get very far with this.
I tried importing the following files that come with the zip by dragging these into my project:
CocoaLibSpotify iOS Library.xcodeproj
CocoaLibSpotify iOS Library-Prefix.pch
SPLoginResources.bundle
CocoaLibSpotify iOS Test Container (folder)
View Controllers (folder)
after doing that however, my project simply won't compile anymore.
I'm getting all kinds of errors. I'm guessing these are related to setting the wrong target???
the website does mention a couple more instructions for iOS when you scroll down on the page https://github.com/spotify/cocoalibspotify
I did manage to import the frameworks but the other stuff is beyond me.
So if anyone is willing to guide me through this, that would be great!
EDIT:
I think I'm getting closer. I've created a ".a" file by opening the "CocoaLibSpotify iOS Library.xcodeproj " and making a build. then I import the resulting libCocoaLibSpotify.a file and also a folder called "include" which has a lot of header files.
You only need to include the CocoaLibSpotify iOS Library.xcodeproj file in your project.
Once you've done that, make sure CocoaLibSpotify is added in the "Target Dependencies" and "Link Binary with Libraries" build phases of your project by clicking the '+' button in each of those phases and choosing it from the list.
Other than that, make sure you closely follow the instructions in the "Building - iOS" section of CocoaLibSpotify's README.markdown file and you'll be set.

symfony1.4-like symfony2 installation

symfony1.x followed a good standart that the whole framework lies somewhere outside and is available to any project. Today I started to read symfony2 documentation and actually downloaded the 'with vendors' 2.0.1 package which is presented on download page. After opening the package I was a bit surprised of what I've seen. But after looking around the package I found that the only folder I need is 'vendors' one - so I copied its content to my '...\lib\vendor\symfony2' folder (near '...\lib\vendor\symfony' and '...\lib\vendor\ext'). I added it to include path and proceed reading documentation. And then I found a problem - a command listed 'php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml' produced simple questions. Did they miss to explain how to generate a project (structure, preconfiguration, command-line files, etc)? And what about '.bat' and '.sh' files?
Symfony2 is very, very different than symfony 1 - especially when it comes to the directory structure. You can't simply drop in the vendors dir and expect it to work. This page explains how to setup a new Symfony2 project.
I recommend you to forget Symfony... and to think with Symfony2 about another think completely different than S1.
Installation is really simple and you will need some advanced PHP knowledge just to understand how it works... But if you have worked with S1, I expect you will have not much problems :)

Create class diagram from already existent iphone code

does anybody know, how i could create automatically a UML class diagram from an already existent iphone project. Is it possible?
Thanks in advance.
Yes, you can use Doxygen:
Install Doxygen (with MacPorts: sudo port install doxygen).
Get a script like this and change the first lines to match your configuration.
Download these files and edit the Doxygen file so it says HAVE_DOT=YES and UML_LOOK=YES.
It will then generate and install a docset that you can read from the documentation browser, or just right click and show contents from Finder.
Or, if you want a graph of dependencies check: https://github.com/nst/objc_dep It uses graphviz.
See also OmniGraffle of all things. If you open an Xcode project with it, it will generate a full class diagram. It can be fairly overwhelming for a large project.