how to integrate ASIHTTPRequest to iphone project - iphone

I am trying to add ASIHTTPRequest library to my iphone project
i followed these lines
Integrating ASIHTTPRequest
ASIHTTPRequest is a powerful open source library written by Ben Copsey from All-Seeing Interactive (and he’s a fellow cocos2d developer too!) It makes it easy to post data and files, and has tons of other great features too like cache support, easy access to HTTP headers, cookie support, and much more.
So let’s add ASIHTTPRequest to our project. Take the following steps:
1. Download the latest version of ASIHTTPRequest.
2. Back in FBFun, right click FBFun under “Groups & Files”, click “Add\New Group”, and name the group “ASIHTTPRequest”.
3. Drag all of the files from the “pokeb-asi-http-request-xxx\Classes” to your new group. Make sure “Copy items into destination group’s folder (if needed)” is checked, and click “Add”.
4. Repeat the above for the 2 files in “pokeb-asi-http-request-xxx\External\Reachability”.
5. Right click the Frameworks folder, and click “Add\Exisitng Frameworks…”. Choose CFNetwork from the list, and click Add.
6. Repeat the above for SystemConfiguration.framework, MobileCoreServices.framework, CoreGraphics.framework and libz.1.2.3.dylib (at the bottom of the list).
7. Compile your project. If it works, you’re integrated!
We’ll explain about how ASIHTTPRequest works when we start to use it. But first, let’s integrate the JSON Framework while we’re at it.
but it not worked for me .while building it showing errors
/Classes/Tests/GHUnitTestMain.m:32:26: error: GHUnit/GHUnit.h: No such file or directory
can anybody help me in this issue
Regards
Thanks
*Edit :
I fixed my problem by following these steps
http://allseeing-i.com/ASIHTTPRequest/Setup-instructions ,
If any one want to integrate ASIHTTPRequest just follow those steps :)*

You will need to add the XML library (it's missing in the instructions), and also make reference to it in the project header search paths with the following:
$(SDKROOT)/usr/include/libxml2

Related

Fabric(twitter api) setup issue. Using swift

Hi I am using the Twitter API for the first time and have little experience with APIs in general. I installed the fabric app and am following the documentation to integrate twitter using swift.
When I build my app and install the twitter option on fabric, it asks me to run my code.
When I do that I get a 'Signal SIGABRT' error on the line Fabric.with([Twitter()]) in the AppDelegate.swift file.
Before this I had added the import TwitterKit line to the AppDelegate.
I also tried to add these lines following the API documentation:
Twitter.sharedInstance().startWithConsumerKey("your_key", consumerSecret: "your_secret")
Fabric.with([Twitter.sharedInstance()])
and then the error comes in the Twitter.sharedInstance() line.
I am adding these lines in the func Application method.
From the language I use, it is very evident that I am a newbie to programming and really need good help smiley
Thanks in advance.
To fix the problem, I did the following:
Open XCode Target
Go to the "Build phases" tab
Click the "Copy bundle resources" section
Click the add button
Add TwitterKitResurce.bundle

Create an App within an App

I am being presented with a very interesting project. The task that I must complete is to figure out a way to allow a partner to be involved in an app without giving up their source code. The code will be included in the main bundle of the app so it is not dynamically stored. The partner has a fully functional app that is needed to be ran in a window within the main app at the appropriate time. I know having the partners create a web app would be ideal so it is treated like a webpage but I am more concerned with codes that must be written natively in iOS.
My question is what is the best way to go about solving this? In theory it is like an App within an App. Is there a way if they gave up their .app file I can include this in the bundle and then run it when I catch a certain event? Should I have the partners create their code in a framework and then import into the shell project? What is the best way to approach this problem?
If your 2nd-party doesn't want to provide you with the source code, why doesn't he compile it to object code then let you simply link it to your app?
By the way, at least on official (non-jailbroken) iDevices, apps can't 'embed' or 'open' one another in such a way - you can open an app programmatically if 1. it's a separate app 2. it has a registered special URL associated to its bundle.
Is there a way if they gave up their .app file I can include this in
the bundle and then run it when I catch a certain event?
No, you'll want to have them create a library instead. You can then include that library in your project.
Creating a library is as simple as:
Choose File->New...->Project... in Xcode.
Select the "Cocoa Touch Static Library" project template.
Add your code.
Build.
The result is a static library that you can add to your application(s). The library will contain the compiled code that you added, but doesn't include the source code. The library developer should provide whatever header files are necessary to use the code in the library.
An App within an App is possible however it requires a common data framework that allows one app to reference the same data without confusing the the source of and destination of the data.
Such a framework allows one app to interact with another app referencing the same data.

Getting error in app porting

I am porting an app from HVGA (Bada 2.0.2 device ) to WVGA( Bada 1.2) using ecllipse( version 2.0.2 ).
For this I have done the following changes in my project
Project-> Properties/Bada build
Set Model WVGA and set AutoScaling true(480x800)
I have create a form of Resolution 480x800.
For images I have add a folder in Resouce folder
-> 480x800
->ScreenDensity-High
and place all my resources in these folder .
But my app crashes when I click the button in the app to Select more images as requirement in my app and the log show Output as Shown
Info, Installation completed.
0080.772,EXCEPTION,P32,T00,A125,Osp::Media::__Image::HasAlphaChannels (1547) > [E_UNSUPPORTED_FORMAT]
0080.774,EXCEPTION,P32,T00,A125,Osp::Media::Image::HasAlphaChannels (599) > [E_UNSUPPORTED_FORMAT] Propagated.
0080.851,EXCEPTION,P32,T00,A125,Osp::Media::__Image::HasAlphaChannels (1547) > [E_UNSUPPORTED_FORMAT]
0080.851,EXCEPTION,P32,T00,A125,Osp::Media::Image::HasAlphaChannels (599) > [E_UNSUPPORTED_FORMAT] Propagated.
I had check for this in the Bada Help but unable to find solution.Please give your suggestion to solve this problem
As I see you just moved your Images (optimized for HVGA) to a new folder to use them for WVGA.
If I understand it correctly, I suggest that you with the reference of bada development documentation in your SDK (through bada IDE help system) which specifies that what is the specific images properties for WVGA screens, change your images properties to a compatible ones (re-size them) and rebuild your project.
I think the problem will solve , we like your feedback.
best regards.
I find the reference for you mate: Using Customized and Optimized Resources

How to render SVG images in iphone without uiwebview?

I want to render SVG images in iPhone without using a UIWebView. How can I do that?
I have checked these 2 links:
http://www.splashdust.net/2010/09/svgquartzrenderer-a-basic-iphone-sdk-compatible-svg-renderer/
https://github.com/splashdust/SVGQuartzRenderer
The above project on Github shows 102 errors showing UIKit framework missing and others and I are also not able to add that framework.
I think the application is for MacOS not for iOS.
http://maniacdev.com/2011/05/open-source-library-to-render-svg-graphics-as-core-animation-layers/
https://github.com/mattrajca/SVGKit
The project on the above url shows the error when i build the project.
Target specifies product type 'com.apple.product-type.framework', but there's no such product type for the 'iPhoneOS' platform.
Does anyone know how to solve that? Or other useful working examples that I can use for that? I want to render SVG's on iPhone.
UPDATE: I have got working SVGKit working by reading instructions. But when I tried to make project working which iI downloaded from Github (https://github.com/splashdust/SVGQuartzRenderer
) I got following errors:
1) UIKit/UIKit.h: No such file or directory (I am not able to add it using add existing framework)
2) Libxml/tree.h: No such file or directory
3) Expected specifier-qualifier-listbefore 'xmlParserCtxtPtr'.
Does anyone know that how to resolve it and make it work?
Jason Morrissey, author of the extremely excellent Alien Blue app, the best iOS Reddit client on the store (can you tell I'm a fan? I'm also a beta tester.) recently put up his SVGKit framework, which renders SVG images as Core Animation layers. I haven't used it, but I know it exists.
And then, look... if you're just getting lots of errors when you bring in other people's classes, my strong suspicion is that you're not following their "how to use" instructions. They'll mostly tell you what frameworks are required and what platforms they support. Every time I've tried to use something like this and had a compilation bloodbath, I've gone back and found some installation instruction step I missed.
I just managed to compile SVGFlashRenderer.
For iOS you need to open the project from the directory SVGRendererTouch.
And don't forget to separately download contents of the lib/MROGeometry dir from github (just follow the link in the source tree).
P.S. For me, the best working solution was SVGKit, but not the version from Jason Morissey (mentioned in another answer), but a fork from reklis. It has many bugs fixed and works in a much more correct way.
It's easy.
SVGKImage *svgImg = [SVGKImage imageNamed:#"add-control-panel"];
SVGKFastImageView *imgView = [[SVGKFastImageView alloc] initWithFrame:CGRectMake(10, 100, 420, 280)];
imgView.image = svgImg;
[self.view addSubview:imgView];

How can I embed the OpenEars framework in my application?

How can I embed the OpenEars framework in my application?
When I download the sample project form this website http://www.politepix.com/openears/ it gives me 20 errors and (gcc- exit code 1 error)
If you have any tutorials for this project then please share it with me.
Without any description of what the errors are it's impossible to say what the issue is, but if you look at the first tutorial page for OpenEars here (this is what Jano is referring to):
http://www.politepix.com/openears/gettingstarted
And read onwards from the line "If (and only if) you get multiple build errors, you may have to take one more step of assigning the base SDK for the library and sample app" and follow the instructions and images there step by step, there is a good chance it will help with your problem. I agree with Jano that you should systematically go through the steps in the tutorial starting on the page I've linked and make sure you have downloaded the libraries and run the configuration script just as it says.
Jano, that is odd with the codesigning, I'll look into it.