ios other linker flag 问题

veryitman 2016-05-07 11:05:35
请教一个问题.
最近在使用第三方的 SDK, 发现只要在 Build settings 里面设置 other linker flag -all_load , 该 SDK 无法通过链接, 会报 duplicate symbol 的错误.
如果我去掉了-all_load, 会导致另外一个运行时 crash.
具体 crash 的地方是这里:

//使用了分类UIView+Frame代码
self.button.centerX = self.text.centerX;

UIView+Frame.m这个分类中,我写了如下代码
- (CGFloat)centerX
{
//定位这里 crash 了
return self.centerX;
}

- (void)setCenterX:(CGFloat)centerX
{
CGPoint center = self.center;
center.x = centerX;
self.center = center;
}

不知道如何解决这个问题.
...全文
270 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
veryitman 2016-05-09
  • 打赏
  • 举报
回复
该问题已经解决!
This is a shared library for Android, iOS, OSX, Windows, Linux and webGL to decompress 7z (7zip) files and to compress/decompress zip/gzip (.zip/.gz), LZ4 (.lz4), brotli (.br), fastLZ files and buffers. ZIP plugin: iOS/tvOS compilation may require to add the -lz linking flag at Build Settings-> Linking- > Other Linker flags on xcode. webGL for flz,lzma & lz4 supports buffers compression/decompression only. Brotli supports buffer decompression. webGL for zip supports all functions except those that require file system operations. 7ZIP section: The library serves the scope to have fast decompression of 7z files and compress/decompress lzma files and buffers. - The library does 7z decompression and not 7z compression. Compression of lzma alone files is supported. Passwords are not supported. - It is about 2.5x times faster then using a c# implementation for 7z decompression. - You can extract a single file out of the 7z archive. - If you intend to decompress large files it would be better to use the largeFiles flag.(consumes less ram) - You can extract the contents of the 7z file keeping its folder structure. - Ability to get the filenames and file sizes of files in a 7z archive. - get progress of extraction when the 7zip archive has multiple files. - get byte level progress of 7z decompression (single or multiple files). - get byte level progress of lzma compression/decompression. - Ability to encode/decode to/from .lzma alone format. - Ability to decode a specific file in a 7z archive to a byte buffer. - Ability to decode/encode a byte buffer to/from the lzma alone format. - Ability to cancel the decompression when the 7z archive has multiple entries.

29,049

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧