Tag: 编译器错误

XCode 4.1致命错误:自编译预编译头之后,修改了stdlib

build立一个iPhone应用程序,使用: XCode 4.1 基础SDK iOS 4.3 苹果LLVM编译器2.1 我已经开始得到以下错误: 致命错误:文件'/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/../lib/clang/2.1/include/stdint.h'已经被修改,因为预编译的头文件被创build 我已经尝试重新安装XCode和OS X – 没有运气。 任何人都知道这是什么原因?

Swift Playground和Simulator Error(ipc / mig)服务器死亡,无法启动iOS模拟器

当我尝试在Playground中做任何事情时,甚至在我敲完一个单词之前就会popup。 运行操场时出错。 无法启动操作系统的iOS存根:操作无法完成。 (Mach错误-308 – (ipc / mig)服务器死亡)。 当我只是尝试运行IOS模拟器,我得到以下错误 无法启动iOS模拟器。 哦,这个错误刚刚popup 运行时遇到错误(域= DTiPhoneSimulatorErrorDomain,代码= 2) 我尝试重新启动,我closures了,再次打开,我取消select文件,并重新select。 只是不断发生。 任何人都有解决scheme?

Swift编译器错误:使用未parsing的标识符“名称”

我试图包含一个名为“名称”的类,我得到一个错误: Swift Compiler Error: Use of unresolved identifier 'name' 该类存在并不包含任何编译错误。

如何解决'NSUnknownKeyException'… setValue:forUndefinedKey:]:…不符合键值编码

好的,我会尽量使这个简短。 我想要一个UIToolbar在我的键盘上面,我花了一段时间才弄清楚,最后我做了,但是当我试着向前一个 * next *button添加函数,并且我的程序很快就不能编译了。 整个错误信息可以在这里看到: 2012-06-20 05:36:55.276 KegCop [79460:fb03] *由于未捕获的exception'NSUnknownKeyException',原因:'[setValue:forUndefinedKey:]终止应用程序:此类不是密钥编码兼容的密钥“。 *第一掷调用堆栈:(0x134a022 0x1733cd6 0x1349ee1 0xd31022 0xca2f6b 0xca2edb 0xcbdd50 0x5a571a 0x134bdea 0x12b57f1 0x5a426e 0x7adeef 0x7ae03e 0x382d7a 0x382ff8 0x38217f 0x391183 0x391c38 0x385634 0x1f84ef5 0x131e195 0x1282ff2 0x12818da 0x1280d84 0x1280c9b 0x381c65 0x383626 0x2a8d 0x29f5为0x1)终止叫做抛出exception(LLDB) @Abizernbuild议我应该阅读苹果文档关键值编码指南 。 无论如何,这是超晚,或超早期,但你看看它。 更新的项目可以在这里find: https : //github.com/ipatch/KegCop 只需下载zip文件,然后尝试构build,您将看到我在说的内容。 该错误可能在ViewControllerWelcome.m文件中的某处。

错误在Swift类:属性没有在super.init调用初始化 – 如何初始化需要使用self在他们的初始化参数

我重写了一个UITableViewController在Swift中,其中我有两个必需的variables,这是通过使用self的weak引用初始化,因为这些是用来实现UITableViewDataSource协议,并需要self引用,以使用其tableView属性 class VideosListViewController: UITableViewController { required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) self.datasourceOfflineVideos = ASDataSource(tableViewController: self) self.datasourceOnlineVideos = ASDataSource(tableViewController: self) } // MARK: – Variables var datasourceOnlineVideos:ASDataSource var datasourceOfflineVideos:ASDataSource } 现在的问题是因为它给了我错误Property not initialized at super.init call这是预期的解释在这里: Swift类错误:属性没有在super.init调用初始化 。 Swift的编译器执行四个有用的安全检查,以确保两阶段初始化完成没有错误 安全检查1指定的初始化程序必须确保所有由其类引入的属性在委托给一个超类初始化程序之前进行初始化。 摘录自:苹果公司“Swift编程语言”,iBooks。 https://itunes.apple.com/us/book/swift-programming-language/id881256329?mt=11 所以我的问题是: 如果一个ASDataSource类中的实例variables需要self引用来初始化像ASDataSourcetypes的variables,那我该怎么做? 由于swift不允许我在初始化所有实例variables之前调用super.init()在调用super.init()之前也不允许我在init()的初始化程序中使用self , 目前我正在使用可选variables来解决问题。 但为了学习的目的,我想知道如何做到这一点。 提前致谢 :)

6架构i386的重复符号

duplicate symbol _OBJC_METACLASS_$_SBJsonParser in: /Users/Gaditek/Library/Developer/Xcode/DerivedData/DietBet-gyhoyhmdrobtqregldjyixtgmize/Build/Intermediates/DietBet.build/Debug-iphonesimulator/DietBet.build/Objects-normal/i386/SBJsonParser.o /Users/Gaditek/Desktop/AliMaisamProjects/Dietbet/DietBet/libfacebook_ios_sdk.a(SBJsonParser.o) duplicate symbol _OBJC_CLASS_$_SBJsonParser in: /Users/Gaditek/Library/Developer/Xcode/DerivedData/DietBet-gyhoyhmdrobtqregldjyixtgmize/Build/Intermediates/DietBet.build/Debug-iphonesimulator/DietBet.build/Objects-normal/i386/SBJsonParser.o /Users/Gaditek/Desktop/AliMaisamProjects/Dietbet/DietBet/libfacebook_ios_sdk.a(SBJsonParser.o) duplicate symbol _OBJC_IVAR_$_SBJsonWriter.sortKeys in: /Users/Gaditek/Library/Developer/Xcode/DerivedData/DietBet-gyhoyhmdrobtqregldjyixtgmize/Build/Intermediates/DietBet.build/Debug-iphonesimulator/DietBet.build/Objects-normal/i386/SBJsonWriter.o /Users/Gaditek/Desktop/AliMaisamProjects/Dietbet/DietBet/libfacebook_ios_sdk.a(SBJsonWriter.o) duplicate symbol _OBJC_IVAR_$_SBJsonWriter.humanReadable in: /Users/Gaditek/Library/Developer/Xcode/DerivedData/DietBet-gyhoyhmdrobtqregldjyixtgmize/Build/Intermediates/DietBet.build/Debug-iphonesimulator/DietBet.build/Objects-normal/i386/SBJsonWriter.o /Users/Gaditek/Desktop/AliMaisamProjects/Dietbet/DietBet/libfacebook_ios_sdk.a(SBJsonWriter.o) duplicate symbol _OBJC_METACLASS_$_SBJsonWriter in: /Users/Gaditek/Library/Developer/Xcode/DerivedData/DietBet-gyhoyhmdrobtqregldjyixtgmize/Build/Intermediates/DietBet.build/Debug-iphonesimulator/DietBet.build/Objects-normal/i386/SBJsonWriter.o /Users/Gaditek/Desktop/AliMaisamProjects/Dietbet/DietBet/libfacebook_ios_sdk.a(SBJsonWriter.o) duplicate symbol _OBJC_CLASS_$_SBJsonWriter in: /Users/Gaditek/Library/Developer/Xcode/DerivedData/DietBet-gyhoyhmdrobtqregldjyixtgmize/Build/Intermediates/DietBet.build/Debug-iphonesimulator/DietBet.build/Objects-normal/i386/SBJsonWriter.o /Users/Gaditek/Desktop/AliMaisamProjects/Dietbet/DietBet/libfacebook_ios_sdk.a(SBJsonWriter.o) ld: 6 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to […]

苹果LLVM 6.0错误:铛失败退出代码-1

我在我的MacBook Air上创build了我的应用程序,并继续在那里工作,这很好。 然后我开始和一个使用另一台Mac的同事一起工作(当然)。 无论如何,我们通过Dropbox共享我们的Xcode项目(我们只是切换到BitBucket,别担心;)),当他试图在他的Mac上打开项目时,出现了一个Apple LLVM 6.0 Error ,同一个项目运行完美: 铿锵:错误:没有这样的文件或目录:'/用户/ linus / Dropbox /应用程序/我的应用程序/ Projekt /我的应用程序/ SlideMenu / SlideMenu-Prefix.pch'铿锵:错误:没有input文件 命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang失败,退出代码1 错误的最后一行对我来说似乎是最重要的,这就是为什么我把它们列在这里。 我知道这个问题现在已经有好几次了,但从来没有一个有用的答案对我有用。 我试图禁用Foundation Assertions因为它在这个主题的另一个答案中说,但是没有奏效。 此外,我重新启动,甚至重新安装Xcode和所有文件都存在,没有一个应该丢失。 我正在运行Xcode 6.0.1和Mac OS X 10.10。 我希望有人能回答这个,我现在有点绝望了…

NSInternalInconsistencyException',原因:'无法在捆绑中加载NIB:'NSBundle

在我的AppDelegate有一个我不明白的问题。 RootViewController最初叫ViewController,我改了它的名字。 应用程序是由许多ViewController组成,然后我引入了一个UINavigationController。 为什么这个错误来了? NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle /Users/XXXXXXXXXXXX/Library/Application Support/iPhone simulator/6.0/Applications/ B7A7D461-1CFE-4B05-AF32-00B65FCFFF49/XXXXXXXXXX.app> (loaded)'with name 'RootViewController'' *** First throw call stack: (0x1992012 0x1357e7e 0x1991deb 0x4bafac 0x37fe37 0x380418 0x380648 0x380882 0 x380b2a 0x397ef5 0x397fdb x398286 0x398381 0x398eab 0x398fc9 0x399055 0x49e3ab 0x2ef92d 0x136b6b0 0x1f12fc0 0x1f0733c 0x1f12eaf 0x38e8cd 0x2d71a6 0x2d5cbf 0x2d5bd9 0x2d4e34 0x2d4c6e 0x2d5a29 […]