问题标签 [xcode9-beta]

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.

0 投票
2 回答
618 浏览

ios - Xcode 9.0 Beta:调用 Type.init() 时快速“无法初始化类对象”

我刚刚升级到 Xcode 9.0 Beta,现在我的应用程序在启动时崩溃了。

失败的调用是(简化的):

在哪里MyViewControllerProtocol

失败的实例如下所示:

哪里MyViewController是:

知道出了什么问题,或者还有其他地方可以看的指示吗?Xcode 9.0 测试版 (9M136h),快速 3。

0 投票
1 回答
976 浏览

keras - How to format input data for an conv1d/lstm nn in coreml converted from keras

My keras model with input shape (none, 40 [timesteps], 12 [features]) looks like this:

After converting it to .mlmodel, I add it to my XCodeProject: enter image description here

I then try to do inference and get prediction scores:

But the predictionModel.prediction(input: input) method always fails and throws the following error:

"The model expects input feature lstm_1_h_in to be an array, but the input is of type 0."

So hidden states of the lstm layers need to be initialized. I don't know if this behavior is expected, since I never faced the same problem before. Neither while doing inference in keras itself or with google cloud ml. I also don't know the initial values, which are usually chosen for inference. Maybe just arrays of zeros? Did anyone face a similar problem?

The .mlmodel file could be found here.

0 投票
1 回答
47203 浏览

ios - Xcode 9 中的“此函数声明不是原型”警告

使用 Xcode 9 时,有一些编译器警告说This function declaration is not a prototype. 它建议添加void到方法体中,这将解决它。我遇到的问题是,这些警告也会针对系统 API 引发,例如UIApplication委托方法:

这可以通过以下方式解决:

现在我想知道委托方法是否仍然可以长期工作,或者 Apple 会void在以后的 iOS 11 Beta 版本中插入。我很好奇,因为如果我包含void正文,Xcode 会抱怨方法选择器不匹配(这是有道理的)。到目前为止,有人遇到过同样的问题吗?

0 投票
12 回答
12513 浏览

ios - Xcode 9 没有任何模拟器设备

我刚刚下载了 xcode 9 beta,但里面没有模拟器。尝试添加新的模拟器,但创建按钮不起作用。请帮忙

“其中没有模拟器”是指可以选择使用模拟器进行构建。

在此处输入图像描述

此外,创建按钮不起作用在此处输入图像描述

0 投票
6 回答
15613 浏览

ios - swift 4.0编译的模块不能导入swift 3.1

显然我已经设法在 Xcode 9 beta 中构建我的项目,现在我只得到错误

swift 4.0编译的模块不能导入swift 3.1

当我在 Xcode 8 中运行项目时。我的模块是 Alamofire。我试图重新启动 Xcode 但没有任何想法如何解决这个问题?

0 投票
1 回答
778 浏览

swift-playground - 是否可以在 Xcode 游乐场中使用 Core ML 模型?

现在我正在研究使用CoreML模型来检测一些数据概率的应用程序。

但我想知道是否可以CoreML在 Xcode 游乐场中使用模型,因为它更便于测试。

我尝试将模型添加到 Xcode 9 游乐场,但没有运气。

0 投票
1 回答
228 浏览

swift-playground - Xcode9 beta,无法创建新的游乐场页面

我可以通过“文件->新建”菜单执行此功能,但新的游乐场页面永远不会显示在左侧导航器中。谁知道如何修复这个错误?

0 投票
2 回答
1662 浏览

ios - Xcode 9 Beta 构建系统失败且没有错误

所以,这很奇怪。尝试使用新的 Xcode Beta 构建系统构建我相当大的项目,但失败并出现 0 个错误。旧的构建系统工作正常。

IDE 顶部的状态栏显示以下内容:

计划构建...扫描构建任务...

它以前比这更进一步,但现在似乎很快就失败了。不知道如何调试它。有任何想法吗?

0 投票
1 回答
80 浏览

ios - 为什么我无法在不同的网络上运行应用程序(iOS 11)

嗨,我能够在同一网络上正确运行应用程序,但无法在 xcode 9-Beta 版本的不同网络上运行应用程序,我只是想知道为什么它不能在不同网络上运行?

任何人都可以对此有所了解吗?

0 投票
12 回答
13445 浏览

ios - iOS - 在 Xcode 9 中跳转到定义的快捷方式?

在以前的 Xcode 版本中,我可以通过简单的 Cmd + 单击该方法/变量来跳转到定义。但是在 Xcode 9 中,我觉得跳到定义很不舒服。

有没有人有更好的解决方案来跳转到 Xcode 9 中的定义?

我厌倦了从下拉列表中选择选项。