问题标签 [xcode6]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
xcode6 - Xcode6:操场不工作。产品菜单上的所有选项都显示为灰色
OS X 10.9.3 iMac
今天安装了 Xcode 6 测试版,我立即被卡住了。
在显然成功安装之后,没有错误,我所做的无非是:
- 点击“Xcode 6 Beta”图标运行
- 在“欢迎使用 Xcode”屏幕上,单击“开始使用 Playground”
- 创建了一个新的 Playground 文件
- 抛出错误。“运行 Playground 时出错。未能准备与 Playground 通信”
- “产品”菜单下的所有选项都显示为灰色:运行、构建等。
其他人,还是只有我一个人?
蒂姆·基思
ios - 如何在不使用 Storyboard 的情况下创建新的 Swift 项目?
在 XCode 6 中创建新项目不允许禁用 Storyboard。您只能选择 Swift 或 Objective-C 并使用或不使用 Core Data。
我尝试删除情节提要并从项目中删除主情节提要并从 didFinishLaunching 手动设置窗口
在 AppDelegate 我有这个:
但是,XCode 给了我一个错误:
“AppDelegate”类没有初始化器
有人在这方面取得成功吗?
swift - Xcode 6,Swift - 将标准输入(控制台)读取到字符串
我是 Objective-C 和 XCode 的新手,我正在尝试学习新东西。有没有办法使用 swift 从标准输入读取字符串?C++ 中的 cin 之类的东西?
ios - 游乐场不跟踪 uiimage
我正在使用 xcode 6,并且正在重新创建在会话 401 中演示的图像代码“xcode 6 中的新功能”。我将图像放在我的 Bundle 资源目录中,并创建了一个游乐场文件。Playground 不执行command var sample = UIImage(named: "img") 或之后的任何命令。有什么想法吗?
谢谢你的帮助
ios - Swift:使用字典中 ui 元素的值
我有一个字典参数如下
我可以将 self.name.text 分配给一个变量并查看它的值。
但是当我这样做的时候
我在运行时得到一个 EXC_BAD_ACCESS
我可以用“as String”修复它,如下所示
有谁知道为什么我需要演员来停止 EXC_BAD_ACCESS?
ios - Swift 协议方法使用
所以我开始学习 Swift,因为它看起来比 ObjC 好得多。但是我一定很累(现在是凌晨 2:37),因为我看不出为什么 Xcode 尖叫我试图调用未定义成员的问题。请看下面的代码:
PeopleStackViewDataSource.swift
PeopleStackView.swift
问题是return self.datasource ? self.datasource.stackViewNumberOfItems(self) : 0
Xcode 说的这一行stackViewNumberOfItems(self)
PeopleStackViewDataSource?没有名为“stackViewNumberOfItems”的成员
那么,问题出在哪里?
ios - Swift Error: Variable used within its own initial value
When I'm initializing an instance of an entity I'm getting the error Variable used within its own initial value
.
Here is the code throwing the error:
The error points at the word
variable.
Here is the WordDefinition class:
What does this error mean ?
objective-c - setHTTPBody in iOS 8 + Swift
I am working on converting a custom Objective-C Networking manager that I wrote for a client into Swift, as a way to learn the language and familiarize myself with the docs.
However, when I open up the apple docs regarding setHTTPBody, it says it is no longer supported past 7.1?
In Swift, I have
I would assume a function along the lines of
However - this does not seem to be the case... am I missing something? Or is there a new function to take the place of this deprecated one?
ios - 苹果 LLVM 6.0 错误
我最近下载并安装了 XCode6-Beta,我收到了这个构建错误。已经采取的步骤:
- 仔细检查了我的前缀头文件。
- 清洁的项目。
- 重新启动 XCode。
- 删除 DerivedData 100 次!
有什么我可能会丢失的吗?
命令 /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang 失败,退出代码为 1
编辑: 临时解决方案。
我删除了 6.0 支持,这是导致问题的领域之一,但是,如果您需要对早期版本的支持,这仍然是一个问题。