因此,我一直在构建一个使用homeKit的应用程序,它的工作非常棒,然后突然间,当昨天打开它来处理它时,我收到了一个编译器错误。
我不知道这是什么意思。我确实向苹果报告了这件事,只是想知道是否有人在经历这种情况,并且有一个解决方案。
错误。
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 i 386- CompileSwift普通i386 com.apple.xcode.tools.swift.compiler cd /User/newsclip/Dropbox/HomeKit导出模块-名为/Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk HomeKit -O0 -sdk -g -模块-path /Users/newsclip/Library/Developer/Xcode/DerivedData/ModuleCache -I /Users/newsclip/Library/Developer/Xcode/DerivedData/HomeKit-eciduqavoiltvregqvqtboqgaibf/Build/Products/Debug-iphonesimulator /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 -输出-文件-映射/Users/newsclip/Library/Developer/Xcode/DerivedData/HomeKit-eciduqavoiltvregqvqtboqgaibf/Build/Intermediates/HomeKit.build/Debug-iphonesimulator/HomeKit.build/Objects-normal/i386/HomeKit-OutputFileMap.json -序列化-诊断-发射-依赖-发射-模块-发射-模块路径-路径/Users/newsclip/Library/Developer/Xcode/DerivedData/HomeKit-eciduqavoiltvregqvqtboqgaibf/Build/Intermediates/HomeKit.build/Debug-iphonesimulator/HomeKit.build/Objects-normal/i386/HomeKit.swiftmodule -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/Build/Intermediates/HomeKit.build/Debug-iphonesimulator/HomeKit.build/HomeKit-own-target-headers.hmap -Xcc -Xcc -iquote /Users/newsclip/Library/Developer/Xcode/DerivedData/HomeKit-eciduqavoiltvregqvqtboqgaibf/Build/Intermediates/HomeKit.build/Debug-iphonesimulator/HomeKit.build/HomeKit-project-headers.hmap -I/Users/newsclip/Library/Developer/Xcode/DerivedData/HomeKit-eciduqavoiltvregqvqtboqgaibf/Build/Products/Debug-iphonesimulator/include -Xcc -Xcc -I/Applications/Xcode6-Beta3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/newsclip/Library/Developer/Xcode/DerivedData/HomeKit-eciduqavoiltvregqvqtboqgaibf/Build/Intermediates/HomeKit.build/Debug-iphonesimulator/HomeKit.build/DerivedSources/i386 -I/Users/newsclip/Library/Developer/Xcode/DerivedData/HomeKit-eciduqavoiltvregqvqtboqgaibf/Build/Intermediates/HomeKit.build/Debug-iphonesimulator/HomeKit.build/DerivedSources -Xcc -DDEBUG=1 -emit-objc-header -objc-报头-path /Users/newsclip/Library/Developer/Xcode/DerivedData/HomeKit-eciduqavoiltvregqvqtboqgaibf/Build/Intermediates/HomeKit.build/Debug-iphonesimulator/HomeKit.build/Objects-normal/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
发布于 2014-07-19 20:54:36
for service: HMService in detailItem!.services
{
if !services.containsObject(service)
{
println(service)
services.addObject(service)
tableView!.insertRowsAtIndexPaths([NSIndexPath(forRow: 0, inSection: 0)], withRowAnimation: UITableViewRowAnimation.Fade)
}
}这是我崩溃的代码,我所做的就是删除HMService,然后它就起作用了。我不想使用HMservice的属性,但我可以不使用它。
所以我就这样做了。
for service in detailItem!.services
{
if !services.containsObject(service)
{
println(service)
services.addObject(service)
tableView!.insertRowsAtIndexPaths([NSIndexPath(forRow: 0, inSection: 0)], withRowAnimation: UITableViewRowAnimation.Fade)
}
}希望这能帮助人们
发布于 2014-07-08 12:32:10
如果发现函数中断,则编译中止的IntToPtr源必须为整数%173 = inttoptr %objc_object* %146至%CSo9HMService*
您设置了oc头文件吗?向我们展示源代码将有帮助。
https://stackoverflow.com/questions/24631858
复制相似问题