ios – 升级到Xcode 7时的SQLITE:Segmentation Fault 11

前端之家收集整理的这篇文章主要介绍了ios – 升级到Xcode 7时的SQLITE:Segmentation Fault 11前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已更新到 Xcode 7.
当我尝试构建时,构建失败并显示“由于信号命令失败:分段错误:11”.
删除sqlite框架,然后重新加载sqlite(清理项目)并发生同样的错误.

同时删除foder / library / developer / xcode

在Xcode 6上完美运行.

有些人可以帮忙

错误

CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
cd /Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -whole-module-optimization -module-name sqlite -Onone -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -target arm64-apple-ios8.0 -g -module-cache-path /Users/Jose/Library/Developer/Xcode/DerivedData/ModuleCache -Xfrontend -serialize-debugging-options -application-extension -embed-bitcode-marker -enable-testing -I /Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Products/Debug-iphoneos -F /Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Products/Debug-iphoneos -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks -c -num-threads 8 /Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite/sqlite/Database.swift /Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite/sqlite/Statement.swift /Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite/sqlite/Value.swift /Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite/sqlite/Expression.swift /Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite/sqlite/Functions.swift /Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite/sqlite/Query.swift /Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite/sqlite/FTS.swift /Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite/sqlite/RTree.swift /Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite/sqlite/Schema.swift -output-file-map /Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/Objects-normal/arm64/sqlite-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/Objects-normal/arm64/sqlite.swiftmodule -Xcc -I/Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/sqlite-generated-files.hmap -Xcc -I/Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/sqlite-own-target-headers.hmap -Xcc -I/Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/sqlite-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/sqlite-project-headers.hmap -Xcc -I/Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Products/Debug-iphoneos/include -Xcc -I/Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/DerivedSources/arm64 -Xcc -I/Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/DerivedSources -Xcc -DDEBUG=1 -emit-objc-header -emit-objc-header-path /Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/Objects-normal/arm64/sqlite-Swift.h -import-underlying-module -Xcc -ivfsoverlay -Xcc /Users/Jose/Library/Developer/Xcode/DerivedData/MoBank-dhjycuvnfedturdcstfvosmlqogn/Build/Intermediates/sqlite.build/Debug-iphoneos/sqlite.build/unextended-module-overlay.yaml -Xcc -working-directory/Users/Jose/Documents/MoBank/MoBank/Dependencies/sqlite

:0:错误:无法执行命令:分段错误:11
:0:错误:swift前端命令因信号失败(使用-v查看调用)

解决方法

>从以下位置下载sqlite项目:
https://github.com/stephencelis/SQLite.swift/tree/swift-2 >删除当前的sqlite.xcodeproject,并从下载中替换. >在链接框架和库以及嵌入式二进制文件添加sqlite.framework >清洁和建造
原文链接:https://www.f2er.com/iOS/331628.html

猜你在找的iOS相关文章