My ViewController is as follows. Upon launch of macOS Monterey Apple Maps app, the app opens in satellited flyover mode. There must be additional setup requirements now?
import Cocoa
import MapKit
class ViewController: NSViewController, MKMapViewDelegate {
@IBOutlet weak var mapView: MKMapView!
override func viewDidLoad() {
super.viewDidLoad()
mapView.delegate = self
mapView.mapType = .satelliteFlyover
}
override var representedObject: Any? {
didSet {
}
}
}
Post
Replies
Boosts
Views
Activity
FYI: attention Apple MapKit team
compiling this basic map view app on Xcode release:
Version 13.0 beta (13A5155e)
on macOs Monterey 12.0 Beta (21A5268h)
On machine Mac mini (M1, 2020)
I receive the blank map page - and the flyover modes are not understood.
__
compiling the same app with the same Xcode 13 on macOS Big Sur, MacBook Pro 2.3 Ghz Dual-Core Intel core i5,
the flyover views still work as prior.
Copying the Big Sur compiled image back to my M1, and launching the app - the map view does not correctly display the flyover mode.
This is a bug. Though, it is my understanding Apple does not allow bugs to be filed against beta releases. Will wait for the next beta release to hopefully clear this issue. As it is clear, the framework being used by macOS Apple Maps app does not have this issue.
FB9304743
My message was clipped, here is initial error:
Speech Error: Error Domain=NSCocoaErrorDomain Code=260 "The folder “TTSPlugins” doesn’t exist." UserInfo={NSUserStringVariant=(
Folder
), NSFilePath=/Library/Developer/CoreSimulator/Volumes/iOS_21A5277g/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/TTSPlugins, NSUnderlyingError=0x600000c72fa0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
I transcribed the code from the video.
Hope it helps others.
https://github.com/appsird/MultiMap
Thanks Quinn, this compiles and functions in Swift5, would appreciate a Swift6 compatible version. Currently I receive errors when attempting to use logger as below:
browser.stateUpdateHandler = { newState in
logger.info("Browser did change state, new state: \(newState)")
}
This produces error "Type of expression is ambiguous without a type annotation". ChatGPT 4 was unable to assist.
As followup, the resolution for my issue was to redownload and install Xcode 16.0 beta 4 (16A5211f). Upon reboot I was able to start rvictl once again. Will update this thread again tomorrow to confirm this is a persistent resolution.
This now continues to work as expected. Please assure you have your device hardwire connected to your Mac before launching rvitctl or it will not start - nor give any message.