我正在使用SUP进行原生iOS应用程序.根据文档; 我已经包含了库并在Xcode中给出了链接路径.在构建获取以下错误时:
Undefined symbols for architecture i386:
"_deflate", referenced from:
PlatCompress(enumCompressOperation, CompressCookie*, void*, long) in libMo.a(tlplatcompress.o)
"_deflateEnd", referenced from:
PlatCompress(enumCompressOperation, CompressCookie*, void*, long) in libMo.a(tlplatcompress.o)
"_deflateInit_", referenced from:
StartCompression(enumCompressOperation, unsigned char, long (*)(void*, void*, long), void*, void**) in libMo.a(tlplatcompress.o)
"_deflateParams", referenced from:
StartCompression(enumCompressOperation, unsigned char, long (*)(void*, void*, long), void*, void**) in libMo.a(tlplatcompress.o)
"_inflate", referenced from:
PlatCompress(enumCompressOperation, CompressCookie*, void*, long) in libMo.a(tlplatcompress.o)
"_inflateEnd", referenced from:
PlatCompress(enumCompressOperation, CompressCookie*, void*, long) in libMo.a(tlplatcompress.o)
"_inflateInit_", referenced from:
StartCompression(enumCompressOperation, unsigned char, long (*)(void*, void*, …Run Code Online (Sandbox Code Playgroud) 尝试" Eric Meyer重置 "我偶然发现了一个关于font-size:100%重置所有合适元素字体大小的声明的问题.font-size:100%意味着元件应该继承font-size父的属性,但是这是不符合的情况下 <sub>和<sup>元素和它们的后代在IE(在6,7,8和第九版测试).
例如(或在操场上的这个实例):
// CSS:
sup,span {font-size:100%;}
// HTML:
if you try this in IE, <sup>this text will be smaller <span>and this even more</span></sup>
Run Code Online (Sandbox Code Playgroud)
它似乎只是另一个实现技巧,IE在webdesigners上播放,因为这不是这些元素的唯一故障.我的猜测是IE在<sub>和<sup>元素上应用了一些自己的硬连线样式,除了上/下标之外,它们使内容更小,但我找不到重置此行为的方法,如果有的话.
//请直接回复此问题,像"使用UA特定样式表"这样的建议可能会满足您的帮助,但不满足主题:-) ..EDIT:好的,这个请求最终反对我,但是我想在这里说出至少一个对这个主题的答案.
编辑:它看起来像IE(所有版本直到IE9)相乘的字体大小<sub>和<sup>以及它们与(之间某物一些可变系数的后代0.6 - 0.8根据字体尺寸).
其理由是以下:当一个固定大小(例如font-size:15px)设置在<sup>标签及其所有后代,它们都具有围绕10px的字体大小(≅ 0.7 ×15像素).但是,当正在设定的相对大小,而不是(例如font-size:100%),将系数效应从传播<sup>元件下降到其后代-所以第一级后代具有大约70%(≅字体大小0.7其的×100%<sup>母体),第二级后代具有的字体大小在50%左右(≅ 0.7 × 0.7其的数×100%<sup> …
目前,我可以通过执行以下操作为本地数据库设置加密密钥:
if(![MyDemo_MyDemoDB databaseExists]){
SUPConnectionProfile* cp = [MyDemo_MyDemoDB
getConnectionProfile];
[cp setEncryptionKey:@"Yourkey"];
[MyDemo_MyDemoDB closeConnection];
}
Run Code Online (Sandbox Code Playgroud)
因此,当我的用户成功登录(通过提供SUPDataVault的正确密码)时,我收到以下错误:
ERROR sup_sqlite_db_ConnectionWrapperImpl.m:62 dynamicStatement: There is an exception file is encrypted or is not a database
2011-12-21 13:32:05.112 MyDemo10389:11603 MBODebugLogger: SUPPersistenceException SUPPersistenceException from find: -- sup_sqlite_db_StatementWrapperImpl: There is an exception null value for sqlite3_stmt
2011-12-21 13:32:05.225 MyDemo10389:11603 *** Terminating app due to uncaught exception 'SUPPersistenceException', reason: 'SUPPersistenceException from find: -- sup_sqlite_db_StatementWrapperImpl: There is an exception null value for sqlite3_stmt'
Run Code Online (Sandbox Code Playgroud)
我认为正在发生的是,尽管数据库已成功创建,但它仍然是加密的.我该如何解密?
我得到了解决方案(它适用于某人)解决了我的问题:
自动生成文件BuildConfig.java出错 - Android
实际上我不知道如何在Sybase无线平台/ eclipse中这样做:
"修复项目属性".右键单击项目 - > android工具.
注意:我已经在Sybase unwired platfrom V2.1.3中为Android设备生成了代码.自动代码生成后,我收到此错误,方法如下:
android.content.Context类型无法解析.它是从所需的.class文件间接引用的
public static synchronized void setApplication(com.sybase.mobile.Application app)
{
com.sybase.sup.client.mbs.RegistryUtil.setApplicationContext(app.getInstance().getApplicationContext());
initialize();
}
Run Code Online (Sandbox Code Playgroud)
怎么解决这个?谢谢.
我的应用程序需要很长时间才能在模拟器上编译和运行大约10分钟.该应用程序最初运行正常但是在添加SUP静态库之后需要很长时间才能构建.
xcode版本:4.6
我试过重置模拟器并重新启动机器
请帮忙.
当我尝试通过MacPorts安装Sup时,我得到: -
>---> Computing dependencies for sup
>---> Dependencies to be installed: rb-fastthread rb-ferret rb-gettext rb-locale rb-highline rb-lockfile >rb-mime-types rb-ncurses-ruby rb-net-ssh rb-rake rb-rmail rb-trollop
>---> Verifying checksum(s) for rb-fastthread
>Error: Checksum (md5) mismatch for fastthread-1.0.7.gem
>Error: Checksum (sha1) mismatch for fastthread-1.0.7.gem
>Error: Checksum (rmd160) mismatch for fastthread-1.0.7.gem
>***
>The non-matching file appears to be HTML. See this page for possible reasons
>for the checksum mismatch:
><http://trac.macports.org/wiki/MisbehavingServers>
>***
>Error: Target org.macports.checksum returned: Unable to verify file checksums
>Error: Failed to install …Run Code Online (Sandbox Code Playgroud)