iOS中使用RegexKitLite来试用正则表达式 使用ARC 20个错误解决办法

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".

我还是不理解,不过成功了就行。。。

RegexKitLite下载导入项目之后编译提示错误。错误如下

Undefined symbols for architecture i386:

"_uregex_open", referenced from:

_rkl_getCachedRegex in RegexKitLite.o

"_uregex_groupCount", referenced from:

_rkl_getCachedRegex in RegexKitLite.o

"_uregex_setText", referenced from:

_rkl_setCachedRegexToString in RegexKitLite.o

_rkl_clearCachedRegexSetTo in RegexKitLite.o

-[RKLBlockEnumerationHelper initWithRegex:options:string:range:error:] in RegexKitLite.o

"_uregex_start", referenced from:

_rkl_performRegexOp in RegexKitLite.o

_rkl_search in RegexKitLite.o

_rkl_findRanges in RegexKitLite.o

"_uregex_end", referenced from:

_rkl_performRegexOp in RegexKitLite.o

_rkl_search in RegexKitLite.o

_rkl_findRanges in RegexKitLite.o

"_uregex_find", referenced from:

_rkl_search in RegexKitLite.o

"_uregex_findNext", referenced from:

_rkl_search in RegexKitLite.o

_rkl_replaceAll in RegexKitLite.o

"_uregex_reset", referenced from:

_rkl_replaceAll in RegexKitLite.o

"_uregex_appendReplacement", referenced from:

_rkl_replaceAll in RegexKitLite.o

"_uregex_appendTail", referenced from:

_rkl_replaceAll in RegexKitLite.o

"_uregex_close", referenced from:

_rkl_clearCachedRegex in RegexKitLite.o

"_u_errorName", referenced from:

_rkl_userInfoDictionary in RegexKitLite.o

_rkl_makeNSError in RegexKitLite.o

_rkl_NSExceptionForRegex in RegexKitLite.o

"_u_strlen", referenced from:

_rkl_userInfoDictionary in RegexKitLite.o

"_uregex_clone", referenced from:

-[RKLBlockEnumerationHelper initWithRegex:options:string:range:error:] in RegexKitLite.o

ld: symbol(s) not found for architecture i386

collect2: ld returned 1 exit status

解决办法:

In project setting search "other" at Other Linker Flags put the word "-licucore".

编译设置的Other Linker Flags中添加“-licucore”

引用地址:

http://www.iphonedevsdk.com/forum/iphone-sdk-development/8584-regexkitlite-wouldnt-compile.html

时间: 2024-08-08 05:35:15

iOS中使用RegexKitLite来试用正则表达式 使用ARC 20个错误解决办法的相关文章

iOS中使用RegexKitLite来试用正则表达式

转:http://blog.csdn.net/nullcn/article/details/6338592 准备工作,下载RegexKitLite 软件包,解压后有2个文件,需要加载到project中. 然后还要加载framework libicucore.dylib ,因为RegexKitLite是调用这个里面的API,苹果规定过不能使用私有的api和没有发布的api.实际上RegexKitLite对NSString做了扩展,目前只支持NSString,对我来说也够了... 基本使用的例子(更

IOS开发 ARC forbids explicit message send of 'autorelease'错误解决办法

在ios中经常会遇到:ARC forbids explicit message send of 'autorelease' 或“ARC forbids explicit message send of release”这样的错误.原因可能是项目使用了arc机制而有些文件禁止使用而报错. 解决方法: 1.禁用在Xcode中的特定文件的ARC 点击项目名,在中间一栏选择targets,然后选择build phases选项. 展开Compile Sources,找到你报错的文件名,然后双击添加-fno

.Net中使用response.write('js代码')后css失去效果,解决办法。

net中使用response.write输出js会将js放在源代码的最前面,这样就可能出现破坏网页css的效果,让css失去效果 .net中使用Page.ClientScript.RegisterStartupScript(this.GetType(), "", " <script lanuage=javascript>if(confirm('确定要交卷吗?')==false){history.back()}; </script>"); 可以

IE下iframe中使用滤镜document.selection.createRange().text获取不到值得解决办法

通常的写法是select方法后跟一个blur方法,但是这里我们不能使用blur方法,应该将blur改为window.parent.document.body.focus(); IE下iframe中使用滤镜document.selection.createRange().text获取不到值得解决办法,布布扣,bubuko.com

您在wp-config.php文件中提供的数据库用户名和密码可能不正确 的解决办法

您在wp-config.php文件中提供的数据库用户名和密码可能不正确 的解决办法 (2015-09-18 23:01:40) 标签: it 技术 经验 wordpress 网站 访问wp-admin/install.php出错:数据库连接错误.您在wp-config.php文件中提供的数据库用户名和密码可能不正确 然后看了下百度,都说是数据库没有连接成功造成的. 那么怎么设置?我整了几次没搞成功,最后还是给解决了.下面我把我设置成功的过程记录下来,以后能用到,也能帮到大家. 1.在htdocs

linux中ERROR: The partition with /var/lib/mysql is too full!解决办法

今天在ubuntu上遇见这个问题.应该是我的第一分区太小了. 解决办法: [email protected]:/var$ cd /var [email protected]:/var$ rm -rf log 我们删除日志文件 [email protected]:/var$ /etc/init.d/mysql start 在开启mysql就正常了 linux中ERROR: The partition with /var/lib/mysql is too full!解决办法,布布扣,bubuko.c

向SDE图层中添加大量数据时,出现ORA-00604以及ORA-01000的解决办法

转自原文 向SDE图层中添加大量数据时,出现ORA-00604以及ORA-01000的解决办法 写了一个小程序,从一个列表中读取坐标串,每个坐标串生成一个IPolygon,然后将这些Polygon添加到一个SDE图层中, 向SDE中添加要素的初始代码类似下面: IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)workspace; workspaceEdit.StartEditing(true); workspaceEdit.StartEditOper

ie、firefox、chrome中关于style=&quot;display:block&quot; 引发的页面布局错乱的解决办法

ie.firefox.chrome中关于style="display:block" 引发的页面布局错乱的解决办法: table中tr 添加style="display:block" 导致页面布局错乱 对table中tr 不显示时,添加style="display:none",ie.chrome.firefox等都没有问题.但是如果想要显示某个tr,就不能使用style="display:block"了,因为,在ie下,可以正常

eclipse中加放js文件报js语法错误解决办法

1) eclipse设置         window->preference-> JavaScript -> Validator->Errors/Warnings->Enable Javascript Sematic validation前面的钩号去掉 2) .project文件    下面的代码删除 <buildCommand> <name>org.eclipse.wst.jsdt.core.javascriptValidator</name