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.
Related
I need to add DOJO components to my worklight app. I didn't select the "Dojo toolkit" checkbox while creating the hybrid project. How can I add DOJO toolkit to an existing worklight hybrid project?
Well, if you project is just starting, you might as well just create a new project and application -- using the Dojo wizard -- and simply copy over your JS/CSS/HTML (note the template of the HTML, you'll need to copy snippets, not the whole thing).
I think the above would be infinitely easier.
The other way is to create another project and application - using the Dojo wizard - and do the opposite - copy the JS/HTML template from that project, to yours...
Universal apps allow sharing of common assets in the Shared Project, including XAML pages. However the Hub App (Universal Apps) project template creates two distinct MainPage.xaml files in each platform-specific project.
Is there any reason for this? Am I going to regret putting all of my XAML files in the Shared Project?
If one XAML file can be used for both platforms then put it into the shared project. If the views differ too much between the platforms or the UI performance is bad when sharing XAML code then you should create separate XAML files and put them in both projects.
Putting the XAML file into the shared project is the same as having the same file in both projects. Adding files to the shared project is the same as linking files into a project - just more convenient. (Read this article about file linking and PCL)
I recommend to start with everything UI (e.g. XAML, converters, ...) in the shared project and view models and logic in an external PCL library (with W8 and WP8.1 targets).
If a view/XAML file is different in W8 or WP then you can copy the XAML for this particular view into both platform specific projects.
More detailed information:
http://blog.galasoft.ch/posts/2014/04/about-windows-phone-8-1-and-universal-apps/
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.
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 :].
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.