在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的回答中的步骤进行操作,似乎可以解决该问题。
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。)
实施新Sign in With Apple功能是否会使应用与 iOS 12 及以下版本不兼容,类似于 SwiftUI?是否有可能编译一个应用程序,它必须import AuthenticationServices像这样的东西XCode 10?
尝试设置具有通用链接的应用程序时,我在 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 设备上安装相同的应用程序时,它运行良好。任何想法将不胜感激
我的第一个视图可以从 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) 我正在尝试在 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。
感谢任何建议
我正在尝试在我的 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 实现中的错误还是我缺少任何必需的设置?
我正在查看这个 SwiftUI 教程,它表明我可以在命令单击代码中的 SwiftUI 元素时看到额外的操作。在我的 Xcode 中,这会将我跳转到类定义。
我看到 XCode 11.0 中有一个选项可以更改 Option 键以显示 SwiftUI 检查器,但是,这仍然不允许我使用“嵌入 VStack”等操作修改 SwiftUI 代码元素
与 SwiftUI 代码(不是预览)交互时,如何获得检查器和额外的 SwiftUI 操作?
刚推出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) ios13 ×10
ios ×5
swift ×2
swiftui ×2
xcode11 ×2
cloudkit ×1
core-data ×1
coremidi ×1
ios-darkmode ×1
nspersistentcloudkitcontainer ×1
performance ×1
uikit ×1
xcode ×1
xcode10 ×1