Swift编译器错误

时间:2014-07-08 12:26:41

标签: ios compiler-errors swift xcode6 homekit

所以我一直在构建一个使用homeKit的应用程序并且它工作得非常棒然后突然间打开它以便在昨天工作我得到编译器错误。

我不知道这意味着什么。我确实向Apple报告了这一点,只是想知道是否有人遇到这个并且有解决方案。

错误。

CompileSwift正常i386 com.apple.xcode.tools.swift.compiler     cd / Users / newsclip / Dropbox / HomeKit     export PATH =" /Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin:/ USR / bin中:/ bin中:/ usr / sbin目录:/ sbin目录"     /Applications/Xcode6-Beta3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -target i386-apple-ios8.0 -module-name HomeKit -O0 -sdk /Applications/Xcode6-Beta3.app /Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -g -module-cache-path / Users / newsclip / Library / Developer / Xcode / DerivedData / ModuleCache -I / Users / newsclip / Library / Developer / Xcode / DerivedData / HomeKit-eciduqavoiltvregqvqtboqgaibf / Build / Products / Debug-iphonesimulator -F / Users / newsclip / Library / Developer / Xcode / DerivedData / HomeKit-eciduqavoiltvregqvqtboqgaibf / Build / Products / Debug-iphonesimulator -c -j4 / Users /newsclip/Dropbox/HomeKit/HomeKit/AccessoryDiscover.swift /Users/newsclip/Dropbox/HomeKit/AccessoryTableViewController.swift /Users/newsclip/Dropbox/HomeKit/HomeKit/CharacristicsViewController.swift / Users / newsclip / Dropbox / HomeKit / HomeKit / AppDelegate .swift /Users/newsclip/Dropbox/HomeKit/HomeKit/ServicesTableViewController.swift -output-file-map / Users / newsclip / Library / Developer / Xcode / DerivedData / HomeKit-eciduqavoiltvregqvqtboqgaibf / Build / Intermediates / HomeKit.build / Debug-iphonesimulator / HomeKit.build / Objects-normal / i386 / HomeKit-OutputFileMap.json -serialize-diagnostics -emit-dependencies -emit- module -emit-module-path /Users/newsclip/Library/Developer/Xcode/DerivedData/HomeKit-eciduqavoiltvregqvqtboqgaibf/Build/Intermediates/HomeKit.build/Debug-iphonesimulator/HomeKit.build/Objects-normal/i386/HomeKit.swiftmodule- Xcc -I / Users / newsclip / Library / Developer / Xcode / DerivedData / HomeKit-eciduqavoiltvregqvqtboqgaibf / Build / Intermediates / HomeKit.build / Debug-iphonesimulator / HomeKit.build / swift-overrides.hmap -Xcc -iquote -Xcc / Users / newsclip / Library / Developer / Xcode / DerivedData / HomeKit-eciduqavoiltvregqvqtboqgaibf / Build / Intermediates / HomeKit.build / Debug-iphonesimulator / HomeKit.build / HomeKit-generated-files.hmap -Xcc -I / Users / newsclip / Library / Developer / Xcode中/ DerivedData / HomeKit-eciduqavoiltvregqvqtboqgaibf /编译/中间体/ HomeKit.build /调试,iphonesim ulator / HomeKit.build / HomeKit-own-target-headers.hmap -Xcc -I / Users / newsclip / Library / Developer / Xcode / DerivedData / HomeKit-eciduqavoiltvregqvqtboqgaibf / Build / Intermediates / HomeKit.build / Debug-iphonesimulator / HomeKit。 build / HomeKit-all-target-headers.hmap -Xcc -iquote -Xcc /Users/newsclip/Library/Developer/Xcode/DerivedData/HomeKit-eciduqavoiltvregqvqtboqgaibf/Build/Intermediates/HomeKit.build/Debug-iphonesimulator/HomeKit.build/ HomeKit-project-headers.hmap -Xcc -I / Users / newsclip / Library / Developer / Xcode / DerivedData / HomeKit-eciduqavoiltvregqvqtboqgaibf / Build / Products / Debug-iphonesimulator / include -Xcc -I / Applications / Xcode6-Beta3.app /目录/开发人员/工具链/ XcodeDefault.xctoolchain / usr / include -Xcc -I / Users / newsclip / Library / Developer / Xcode / DerivedData / HomeKit-eciduqavoiltvregqvqtboqgaibf / Build / Intermediates / HomeKit.build / Debug-iphonesimulator / HomeKit.build / DerivedSources / i386 -Xcc -I / Users / newsclip / Library / Developer / Xcode / DerivedData / HomeKit-eciduqavoiltvregqvqtboqgaibf / Build / Intermedi ates / HomeKit.build / Debug-iphonesimulator / HomeKit.build / DerivedSources -Xcc -DDEBUG = 1 -emit-objc-header -emit-objc-header-path / Users / newsclip / Library / Developer / Xcode / DerivedData / HomeKit- eciduqavoiltvregqvqtboqgaibf /生成/中间体/ HomeKit.build /调试-iphonesimulator / HomeKit.build /对象 - 正常/ I386 / HomeKit-Swift.h

IntToPtr源必须是一个整体   %173 = inttoptr%objc_object *%146到%CSo9HMService *,!dbg!341 LLVM错误:找到破碎的功能,编译中止! 命令/Applications/Xcode6-Beta3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift失败,退出代码为1

1 个答案:

答案 0 :(得分:0)

找到破碎的功能,编译中止 IntToPtr源必须是一个整数%173 = inttoptr%objc_object *%146到%CSo9HMService *

您是否设置了oc头文件? 向我们展示源代码将有所帮助。