How to use RegexKitLite in Xcode 4.3.1?

I'm having trouble using RegexKitLite to match a string like

NSString *encodedPoints=[apiResponse stringByMatching: @"\\\"([^\\\"]*)\\\"^[^:]*" 
                                              capture: 0];

and apiResponse:

@"http://maps.google.com/maps?output=dragdir&saddr=20.001364,73.749283&daddr=19.991499,73.744095"

So, to do so, I get the following error:

__ NSCFString stringByMatching: capture:]: unrecognized selector sent to instance 0x131fc0

* Application termination due to the uncaught exception "NSInvalidArgumentException", reason: '- [__ NSCFString stringByMatching: capture:]: unrecognized selector sent to instance 0x131fc0' * First throw call stack: (0x3422b8bf 0x3447b1e5 0x342b 0x3422b 0x34xbb 0x342b 0x342b 0x34xbb 0x342b 0x34xbb 0x342b 0x342b 0x342b 0x342b 0x342b 0x342b 0x342b 0x342b 0x3422bc 0x375ef9eb 0x376b53cf 0x34185435 0x375ef9eb 0x375ef9a7 0x375ef985 0x375ef6f5 0x375f002d 0x375ee50f 0x375edf01 0x375d44ed 0x375d3d2d 0x30a06df3 0x341ff553 0x343434x3434343434x3434343434x3434343434x3434343434x3434343434x3434343434x3434343434x343434343434x3434343434x3434343434x34343434343434x3434343434x343434343434x34343434343434x34343434343434x3434343434x343434343434x3434343434x3434343434x3434343434x3434343434x343434x343434343434x3434343434x3434343434x343434343434343434343434343434343434404x343434

I am trying to find a solution with a search engine, but I am not getting the exact solution.

Please, help...

+5
source share
1 answer

Ensure that the correct library is included in the project.

.

"" " " " ".

+ libicucore.A.dylib. .

, , Link Binary With Libraries. + RegexKitLite.m . , RegexKitLite.m. , , RegexKitLite.m , -fno-objc-arc. , , , .

, -fno-objc-arc . , , ARC, .

RegexKitLite, , , .

+8

All Articles