Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RegexKitLite in IOS5

I need RegexKitlite in my App as a part of String validation. Have also added libicucore.A.dylib . Currently working with xcode 4.2,Base sdk iOS 5.0,Apple LLVM compiler 3.0,architechture armv7. Adding the regexkit folder to my app, causes too many errors like Automatic Reference Counting Errors , Cast of Objective-C pointer type 'NSString *' to C pointer type 'CFStringRef' etc

Please help;where have I gone wrong.

like image 383
ss kurup Avatar asked Oct 18 '11 10:10

ss kurup


1 Answers

You can also disable the ARC for the RegexKitLite only by adding a flag:

select the project -> YOUR Target -> on the Tab the "Build Phases" and open the "Compile Sources" and add for "RegexKitLite.m" the flag "-fno-objc-arc".

Update: If you get:

Undefined symbols: "_uregex_reset", referenced from: _rkl_splitArray in RegexKitLite.o _rkl_replaceAll in RegexKitLite.o "_uregex_appendTail", referenced from:.......

Then you need to add in the Tab "Build Settings" -> "Linking" -> "Other Linker Flags" the "-licucore"

like image 196
Vinh Avatar answered Oct 14 '22 20:10

Vinh