我在我的新Swift 2.0项目中使用谷歌的一些外部代码,在早期版本中需要"libz.dylib".更新到新的XCode /新SDK后.
XCode现在无法导入libz.dylib并抛出一些错误
架构i386的未定义符号:"_ deflate",引用自:+ [GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:]在libGoogleAnalyticsServices.a(GAICompressionUtil.o)"_ deflateEnd"中,引自:+ [GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel: mode:]在libGoogleAnalyticsServices.a(GAICompressionUtil.o)" deflateInit2 "中,引自:+ [GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:]在libGoogleAnalyticsServices.a(GAICompressionUtil.o)"_inflate"中,引自:+ [GAICompressionUtil在libGoogleAnalyticsServices.a(GAICompressionUtil.o)"_inflateEnd"中的gai_dataByInflatingBytes:length:isRawData:],引自:+ [GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:]在libGoogleAnalyticsServices.a(GAICompressionUtil.o)" inflateInit2 "中,引用自:+ libGoogleAnalyticsServices.a中的[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:](GAICompressionUtil.o)ld:symbol(s)找不到架构i386 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
在查看"构建阶段"设置中的可用包时,我可以找到"libz.tbd",它似乎是libz.dylib的替代品.导入此lib时,链接器错误保持不变,但我收到此额外警告:
警告:正在跳过文件'/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/usr/lib/libz.tbd'(意外文件类型'text'in框架和库构建阶段)
知道该怎么办?
我在使用magento connect安装扩展时遇到了一些麻烦.当我开始安装扩展时,outline终端写下这样的东西:
检查包的依赖关系安装包社区/ OrganicInternet_SimpleConfigurableProducts 0.7.4
CONNECT ERROR:无法打开文件/var/www/magento/downloader/.cache/community/OrganicInternet_SimpleConfigurableProducts-0.7.4/app/code/community/OrganicInternet/SimpleConfigurableProducts/Catalog/Model/Product/Type/Configurabl
我检查了路径,找到了所需的文件.正如你所看到的权限应该没问题;-)
drwxrwxrwx 2 www-data www-data 4.0K 11月3日11:10 Configurabl
我不知道该怎么做.我正在使用PHP 5.5.4-1 - 所以应该没问题.
你知道该怎么办吗?
我目前正在重写部分Swift 1.2代码,以便与Swift 2.0兼容.实际上我无法弄清楚对"sendAsynchronousRequest"做了哪些更改 - 目前我的所有请求都失败了
NSURLConnection.sendAsynchronousRequest(request, queue: queue, completionHandler:{ (response: NSURLResponse!, data: NSData!, error: NSError!) -> Void in})
Run Code Online (Sandbox Code Playgroud)
无法使用类型'的参数列表调用'sendAsynchronousRequest'(NSURLRequest,queue:NSOperationQueue,completionHandler:(NSURLResponse!,NSData!,NSError!) - > Void)'
你有什么想法有什么不对吗?