Xcode - library project with file template asset - objective-c

I'm creating a library project in xcode. The library will rely heavily on a specific pattern for which I've created a file template. This works fine when I copy the template catalog to the "File Templates" catalog.
The question is:
Can I add this template to my library project? The way I imagine it the file template would automagically be added to xcode when user drags my library project into his/hers project.

Related

Reference from assembly to DLL in Visual Studio solution

Say, that we have .NET application App along with additional assembly ClassLibrary, which, in turn, uses native DLL called Library. All these are in single solution, so I may set up the dependencies etc.
The catch is, that I want the Library to be automatically "attached" to ClassLibrary, such that when my App references it, Visual Studio will automatically copy the Library to target bin folder.
Usually I did that by using pre-build or post-build events and adding custom scripts. But hey, all these are in the same solution. Is there simpler way to keep such native-dll-reference for .NET assembly?
You have to add the native library to your project. If the native library is in the Solution (not in the project) than it is there only for your reference. You have to add the native library to the Project because the project file describe the build behaviour.
Than add native assembly to the ClassLibrary project and then in properties set: Copy To Output Directory to Copy if newer or Copy always.

include Cocos2d extensions in existing project

How can I add cocos2d-iphone-extensions into an existing cocos2d (2.X) project?
When I drag and drop the "/Extensions" folder (fetched from GitHub) into my project, numerous ARC-related errors are displayed.

Windows Phone class library localized resources not working

I have a Windows Phone class library with a resources (.resx) file. I have a reference to the class library from an actual Windows Phone Application project. Everything works well when I reference the library project in the solution, but when I add a reference to the actual assembly (.dll) file then localization stops working and the Windows Phone Application just uses the default locale when navigating to the pages declared in the library assembly. Does anyone know why?
Found the solution. When you reference a Windows Phone library assembly (the .dll file itself, not its project within the same solution), you have to make sure that its resource folders are in the same directory as the assembly. That is, if your library is localized in Spanish for example, besides copying the .dll file from your bin folder, you must also copy the 'es' folder to the same directory.

How to import custom framework in projects?

I'm a novice in this field, so my question may seem a bit foolish :( I've developed a custom framework which I want to import in other different projects. But when I import that framework into my project that always throws error (say framework name is example1.framework) file not found. Can anybody tell me how to do it? I added the framework from the build phase of my project's target. What other steps I need to do?
If you are importing a framework you have to add it in your project file.
Go to you main project file (the root of your project)
Go to tab "Build Phases"
Open the section "Link Binary With Libraries"
Now add the framework to the project
Last but not the least: build and run your app :].

Linking the new Google Api To Xcode 4

I am fairly new to xcode and objective C in general, but have done a fair share in Microsoft.Net and visual studio.
I have just check out the latest google api objective c project. I am looking to add this as a static library to my xcode 4 project.
What i have done:
Add the project file to my existing project.
Link up the dependency on my project build phases
Under Build settings, I have enter -ObjC -lxml2 -all_load
I have build it without error. By running Shift + B.
But my issue is that when i try to enter #import "GTLTasks.h" i get an error no such file or directory.
Do i have to add the respective Service by itself? If so where should i add the files to the GTLxcode.project or my own project?
The service i am talking about is located in the following path source/services/
Sorry if i doesn't make sense as I am still exploring around in xcode and objective c.
Just for the record, I have managed to resolved this issue.
Under the Build Settings of the xcode project, Other linker flags
-ObjC -all_load
Followed by Header Search Paths
$(SRCROOT)/YourFolder/
Where your project folder is located this is where you will place your source files from google.