问题标签 [xcode9]

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 回答
1006 浏览

ios - Xcode 9 本地化不起作用?

我已经在丹麦语的应用程序中进行了一段时间的本地化,当我更新 Xcode 9 并在模拟器中运行它时,一切都开始以丹麦语出现......我不知道为什么?

我确保我的所有设置都是英语并设置为美国,但是当我在模拟器中运行应用程序时,所有内容都以丹麦语显示。有人对这个有了解吗?也许只是一个测试版错误?谢谢!!

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 投票
4 回答
7754 浏览

ios - Xcode 9 错误:找不到 cdtool

安装 Xcode 9 beta 后,Xcode 8 在编译项目时给我一个错误:

在“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/cdtool”中找不到 cdtool:找不到平台的模拟器运行时<DVTPlatform:0x7fd67af0a930:'com.apple.platform.iphonesimulator':<DVTFilePath:0x7fd67af0a7c0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform'>>

我怀疑 Xcode 9 修改了 Xcode 8 的一些共享状态(设置路径、覆盖文件等)。但是我尝试删除两个 Xcode 都无济于事。

该项目使用核心数据,并且在尝试编译 xcdatamodel 时显然失败了。

我仍然可以在 Xcode 9 下编译和运行。

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 投票
3 回答
2632 浏览

swift4 - 为什么会出现错误:解码 CoreML 文档时出现问题?

我在 Xcode 9 Beta 上使用 CoreML 和 Swift 4.0。

如果您VGG16.mlmodel在项目导航器中选择一个文件,我会收到错误消息:There was an problem decoding this document CoreML

此外,作为代码的结果,我得到了错误Use of unresolved identifier 'VGG16'Use of undeclared type 'VGG16'

VGG16.mlmodel从这里下载https://developer.apple.com/machine-learning/

可能是什么问题呢?

模型 Places205-GoogLeNet、ResNet50 和 Inception v3 的 PS 一切正常。

0 投票
5 回答
143640 浏览

ios - Xcode 9 的安全区域

在探索Xcode9 Beta时,在界面构建器视图层次结构查看器上发现了安全区域。很好奇并试图了解 Apple 文档上的安全区域,主要是文档说“与自动布局直接交互的视图区域”但它并不满足我,我想知道这个新事物的实际用途。

有人有线索吗?

在此处输入图像描述

Apple 文档中关于安全区域的结论段落。

UILayoutGuide 类旨在执行以前由虚拟视图执行的所有任务,但以更安全、更有效的方式执行。布局指南不定义新视图。它们不参与视图层次结构。相反,他们只是在自己的视图坐标系中定义一个可以与自动布局交互的矩形区域。

0 投票
1 回答
80 浏览

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

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

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

0 投票
1 回答
301 浏览

ios11 - 避免 xCode 9 中的三引号自动完成

按下空格键后的字符时如何避免xCode中的自动完成三引号'''或三重双引号。"""

在我的开发风格中,多行字符串的使用少于简单字符串,因此我更喜欢硬输入三重字符。

  • 键盘:U.S. International - PC
  • xcode版本:9.0 beta (9M136h)
  • 插图:

在此处输入图像描述

0 投票
2 回答
1747 浏览

ios - Xcode 9 和 Swift 4 - 呈现视图控制器时意外崩溃

我只有在使用 Xcode 9 Beta 1 和 Swift 4 时才会崩溃。我试图呈现一个视图控制器,但抛出了一个异常,即使我有几个断点来捕获所有异常 Xcode 不会在任何地方停止。

使用 lldb 我能够打印异常,因为 Xcode 没有这样做。这是我得到的:

这是堆栈跟踪:

在此处输入图像描述

和回溯:

我知道它与无法识别的选择器有关,但我没有对UIDeviceRGBColoror做任何事情PointSize

不太确定会发生什么,当我切换到 Xcode 8 时,这一切都很好。

如果您想复制,请随时在此处克隆项目并切换到features/ios11分支。您所要做的就是完成介绍屏幕,然后单击+按钮。崩溃将在之后立即发生。使用Xcode 9 Beta 1运行

我知道这可能只是一个 beta 错误,但如果有人对此有更多经验,我将不胜感激,如果没有,至少可以帮助我如何提交 Xcode 错误报告,因为我从未做过。

谢谢!