ASIHTTPRequest already works fine on iOS5, I'm not sure who is spreading
the rumour that it doesn't.
ARC is a different matter - but you don't *have* to use ARC on iOS5.
Someone (I forgot who, sorry) already has commit access to the official
ASIHTTPRequest repository, so if you have changes to be merged I believe
you just send github pull requests like normal - though I guess if
you're talking about ARC support then that will probably have to be a
separate branch.
Cheers,
Joseph
> --
> You received this message because you are subscribed to the Google Groups "ASIHTTPRequest" group.
> To post to this group, send email to asihttp...@googlegroups.com.
> To unsubscribe from this group, send email to asihttpreques...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/asihttprequest?hl=en.
>
CLANG_ENABLE_OBJC_ARC = NO
This is found in the target 'Build settings' tab, labelled 'Objective-C
Automatic Reference Counting'.
This is working just fine for me.
Joseph
This is perhaps getting off topic now, but I'm curious: Why do you need ARC?
Joseph
Chris Davis
Sent from my iPhone
I followed these steps:
http://www.daveoncode.com/2011/10/24/migration-to-arc-automatic-reference-counting-using-xcode-4-2-refactor/
Note that when you "select targets to convert", you can expand the
project and uncheck specific files. Uncheck all of the ASI* files.
Then run the precheck, and fix the problems. Then start the process
over again and repeat until there are no problems. I noticed that
sometimes Xcode didn't remember that I had unchecked the ASI* files in
the previous iteration. I had to make sure they were unchecked each
time.
Once the precheck works, run the conversion and examine the code. I
had to make a few adjustments to the generated code. If you are happy
with the changes, save them and then build. At this point I was
presented with a new set of errors/warnings, different from those
fixed during precheck. Once I worked through those issues, the
project built and ran properly on iOS5. It didn't work correctly on
iOS4, but after hunting down another bug it now runs correctly on both
iOS4 and iOS5. There do seem to be some behavioral differences with
ARC on iOS4 and iOS5. Some bugs only manifest themselves on one or
the other.
Note that it is still pretty easy to end up with retain cycles that
the compiler/analyzer won't find. You have to take care to use "weak"
or "unsafe_unretained" properly to break such cycles. In the URL
above, the author states that he replaced the generated
"unsafe_unretained" instances with "strong". Don't do that unless you
really understand what's going on.
In addition to the direct benefit that I now have ARC code, the
conversion process revealed some problems and helped me improve the
code. In a later email you state that you're hoping that converting
to ARC will help sort out some of the problems. I found that was
indeed the case.
Hope this helps. Good luck.
Thanks for sharing that; sounds very interesting!
Joseph
I can certainly understand your motivation - good luck, and let us know
how you get on.
(If you get stuck and decide to go back to trying to fix the memory
handling instead, drop me an email off list as I may be able to help -
it's the sort of project my company has successfully taken on before,
big complex projects with difficult problems are very much our thing.)
Cheers,
Joseph
this is one reason i advise to switch to the new implementation on GitHub for this kind of matter. Simply implement the delegate function
and deal with authentication as you like. If you need some assistance, just give me a shout and ill write a short example on how to achieve
what you are trying to do.
Regards,
Samuel (Lazereth)