标签: ios13

iOS 13模拟器中的“找不到MIDI网络驱动程序”崩溃

在Xcode 11 beta 6的iOS 13模拟器中,启用MIDI Network Session时崩溃。

通过didFinishLaunching:WithOptions:在一个新项目中向AppDelegate添加以下行,我能够进行复制:

MIDINetworkSession.default().isEnabled = true
MIDINetworkSession.default().connectionPolicy = .anyone
Run Code Online (Sandbox Code Playgroud)

在iOS 13模拟器中运行时,该应用将在以下第一行崩溃,并在控制台上显示“找不到MIDI网络驱动程序”。iOS 12和更早版本的模拟器不受影响。

奇怪的是,似乎并不是我的所有iOS 13模拟器都受到影响。看来我在Xcode 11 beta 4和更早版本中使用的所有iOS 13模拟器都能正常工作。唯一受影响的模拟器可能是我在Xcode 11 beta 5及以后版本中首次使用的模拟器。

我假设这是一个Beta软件错误,并且已经向Apple提交了该错误。但是我觉得在这里进行记录很聪明,以防其他人遇到它。


更新时间:2019-09-11

对于Xcode 11.0 GM种子(包括新的iPhone 11型号)中的模拟器,这仍然是我的问题。


更新时间:2019-09-30

Xcode 11.1 GM种子中仍然存在问题。我按照Evan的回答中的步骤进行操作,似乎可以解决该问题。

ios coremidi ios-simulator ios13

12
推荐指数
1
解决办法
310
查看次数

SKStoreKitReviewController和Darkmode

有什么办法可以改变SKStoreKitReviewController的颜色/色调吗?当我修改我的应用程序以支持DarkMode时,在黑暗模式下,显示的viewController看起来不太好。

在此处输入图片说明

ios skstorereviewcontroller ios13 ios-darkmode

12
推荐指数
1
解决办法
410
查看次数

当我使用苹果登录时,会弹出选择框。我选择使用密码继续,提示不完整

iOS13(测试版)Apple 登录错误

@available(iOS 13.0, *)
    func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) {
        // Handle error.
        crprint(error.localizedDescription)
    }
Run Code Online (Sandbox Code Playgroud)

无法完成操作。(com.apple.AuthenticationServices.AuthorizationError 错误 1000。)

ios ios13

12
推荐指数
2
解决办法
7029
查看次数

“使用 Apple 登录”是否允许应用向后兼容 iOS 12 及更低版本?

实施新Sign in With Apple功能是否会使应用与 iOS 12 及以下版本不兼容,类似于 SwiftUI?是否有可能编译一个应用程序,它必须import AuthenticationServices像这样的东西XCode 10

ios xcode10 ios13 xcode11

12
推荐指数
1
解决办法
4216
查看次数

带有 iOS 13 的手机上的通用链接错误

尝试设置具有通用链接的应用程序时,我在 iOS 13 中看到以下错误。有没有人看到这个或知道它是什么意思?

我在 swcd 进程的设备控制台中看到此错误。

Error getting enterprise-managed associated domains data. If this device is not enterprise-managed, this is normal:

Error Domain=SWCErrorDomain Code=1701 "Failed to get associated domain data from ManagedConfiguration framework." UserInfo={NSDebugDescription=Failed to get associated domain data from ManagedConfiguration framework., Line=250, Function=<private>}

当我在 iOS 12 设备上安装相同的应用程序时,它运行良好。任何想法将不胜感激

ios ios-universal-links ios13

12
推荐指数
1
解决办法
2026
查看次数

SwiftUI @EnvironmentObject 错误:可能作为此视图的祖先丢失

我的第一个视图可以从 API 请求中获取所有数据,然后打开第二个视图更改 API 请求数据,它崩溃了。

下面是错误

Fatal error: No ObservableObject of type NetworkManager found.
A View.environmentObject(_:) for NetworkManager may be missing as an ancestor of this view.: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/Monoceros_Sim/Monoceros-39.3/Core/EnvironmentObject.swift, line 55
2019-11-07 12:00:01.961425-0800 EarthQuake[73703:5913116] Fatal error: No ObservableObject of type NetworkManager found.
A View.environmentObject(_:) for NetworkManager may be missing as an ancestor of this view.: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/Monoceros_Sim/Monoceros-39.3/Core/EnvironmentObject.swift, line 55
Run Code Online (Sandbox Code Playgroud)

这是从 API 获取数据的 swift 文件,然后将数据保存到帖子

import Foundation
import Combine

final class NetworkManager: ObservableObject {

    @Published var posts = [Post]()


    func fetchData() …
Run Code Online (Sandbox Code Playgroud)

xcode swift ios13 swiftui

12
推荐指数
1
解决办法
1万
查看次数

参考错误:找不到变量:IntersectionObserver

我正在尝试在 ios 13 上运行的 cordova 8.0.0 应用程序中使用 IntersectionObserver。当我通过 safari 检查我的应用程序时,我看到初始化错误:

ReferenceError: Can't find variable: IntersectionObserver

这表明 IntersectionObserver 不可用,我应该使用 polyfill。但!我读过很多文章声称 iOS safari 12+ 原生支持 IntersectionObserver。我有点假设,cordova 将运行本机可用的 WKWebView,所以它应该可以在没有 polyfill 的情况下工作,对吧?

我发现我在 safari 实验功能中启用了 IntersectionObserver,所以也许我也可以使用一个选项/标志来强制在我的应用程序中启用此功能?如果可能的话,我真的很想避免使用polyfill。

感谢任何建议

intersection-observer cordova-8.0.0 ios13

12
推荐指数
3
解决办法
1万
查看次数

NSPersistentStoreRemoteChangeNotification 没有被解雇

我正在尝试在我的 CoreData+CloudKit 项目中执行历史跟踪,该项目使用NSPersistentCloudKitContainer. 我一直在关注 Apple 的示例项目

我想在远程存储更新后执行某些任务。为此,苹果建议在应用程序的签名和功能的后台模式部分启用远程通知。

我已经为我的项目启用了历史跟踪,如 Apple 的示例项目所示。

    // turn on persistent history tracking
    let description = container.persistentStoreDescriptions.first
    description?.setOption(true as NSNumber,
                           forKey: NSPersistentHistoryTrackingKey)

    // ...
Run Code Online (Sandbox Code Playgroud)

我还注册了我的商店来监听商店的变化。

    // turn on remote change notifications
    let remoteChangeKey = "NSPersistentStoreRemoteChangeNotificationOptionKey"
    description?.setOption(true as NSNumber,
                               forKey: remoteChangeKey)

    // ...
Run Code Online (Sandbox Code Playgroud)

还添加了观察者来侦听NSPersistentStoreRemoteChangeNotification.

然而,没有NSPersistentStoreRemoteChangeNotification被解雇。为了确保我的实现没有错误,我只是在@objc func storeRemoteChange(_ notification: Notification)Apple 提供的示例代码中放置了断点,但我仍然看不到任何通知被触发并且没有断点被激活。

我已经了解示例项目中完成的标签重复数据删除,也尝试对其进行测试,但没有任何成功。这是 Apple 实现中的错误还是我缺少任何必需的设置?

core-data cloudkit ios13 nspersistentcloudkitcontainer

12
推荐指数
2
解决办法
2545
查看次数

iOS SwiftUI 在与代码交互时如何调出诸如“嵌入 VStack”之类的额外操作?

我正在查看这个 SwiftUI 教程,它表明我可以在命令单击代码中的 SwiftUI 元素时看到额外的操作。在我的 Xcode 中,这会将我跳转到类定义。

在此处输入图片说明

我看到 XCode 11.0 中有一个选项可以更改 Option 键以显示 SwiftUI 检查器,但是,这仍然不允许我使用“嵌入 VStack”等操作修改 SwiftUI 代码元素

与 SwiftUI 代码(不是预览)交互时,如何获得检查器和额外的 SwiftUI 操作?

在此处输入图片说明

在此处输入图片说明

ios13 swiftui xcode11

12
推荐指数
3
解决办法
3703
查看次数

UIReferenceLibraryViewController.dictionaryHasDefinition-**返回结果的速度非常慢-iOS 13(模拟器和真实设备)-Xcode 11

刚推出iOS 13时,我正在Xcode 11 GM2中测试我的应用程序,它使用您可以在iPhone上启用的字典进行单词查找。iOS12上的性能已经实现,几乎是瞬时的。

但是,这似乎已随着iOS 13发生了变化。下面的代码是相当标准的,需要3秒钟来响应!!!这在iOS13模拟器和带有iOS13的真实设备上均会发生。

我还没有看到任何有关iOS13 SDK或Xcode 11问题的报道。

这可能是需要报告的错误吗?还是我做错了什么。

这使我的应用看起来无响应。我该如何处理?

这很容易重现,并且与iOS 12.x模拟器相同的代码可以正常工作。

我的代码如下:

import UIKit

//I'm using storyboard with 1 button.

class ViewController: UIViewController {

    @IBOutlet weak var buttonTestUIRefVC: UIButton!

    @IBAction func testUIRefVCTapped(_ sender: UIButton) {

        if UIReferenceLibraryViewController.dictionaryHasDefinition(forTerm: "test") {
            let referenceVC = UIReferenceLibraryViewController(term: "test")
            present(referenceVC, animated: true)
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

从上面的代码,该位 UIReferenceLibraryViewController.dictionaryHasDefinition(forTerm: "test")是引入3秒延迟的原因。

这是调试日志的一部分,我之前没有看过那些“旧状态:1新状态:1”语句,它们仅在iOS 13中显示。这是什么意思?

2019-09-20 09:38:09.175923+0100 DictionaryServicesTest[18527:3511667] Creating client/daemon connection: C94E0479-7F79-4E22-895D-7F1FEFB75C8E
2019-09-20 09:38:09.201599+0100 DictionaryServicesTest[18527:3511667] Got the query meta data reply for: com.apple.MobileAsset.DictionaryServices.dictionary2, response: 0
2019-09-20 09:38:09.218045+0100 …
Run Code Online (Sandbox Code Playgroud)

performance uikit swift ios13

11
推荐指数
1
解决办法
501
查看次数