RegexKitLite in IOS5

来源:互联网 发布:c 和java的三大框架 编辑:程序博客网 时间:2024/05/16 04:54

http://stackoverflow.com/questions/7805849/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.

share|edit
 add comment (requires 50 reputation)

3 Answers

activeoldestvotes
up vote18down vote

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"

share|edit

原创粉丝点击