Post

Replies

Boosts

Views

Activity

Reply to Simulator beta 15 is too slow
Same issue with Xcode 15 running on a 2017 MacBook Pro with Ventura 13.6. Simulator is practically unusable, it seems to run the app ok but if you want to get into the settings (eg to sign in with an iCloud account) it takes many minutes between steps and is so unresponsive that the operation just times out. Previous Xcode didn't have this problem.
Oct ’23
Reply to Mapkit JS: What are the recommended CSP settings?
Solved the issue... Some of the CSP settings that Chrome accepted were not so gracefully accepted on Safari, which broke the map. This final setting worked, and made the map work well on iOS, macOS Safari and macOS Chrome: <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: &#9;&#9;&#9;&#9;&#9;gap: https://*.apple-mapkit.com https://*.ls.apple.com blob:; &#9;&#9;&#9;&#9;&#9;style-src 'self' 'unsafe-inline'; &#9;&#9;&#9;&#9;&#9;img-src 'self' https://*.apple-mapkit.com;"> I understand that allowing blob: as a safe URL is quite risky from a security standpoint, so when I perform a security audit before release I will have to take a second look at these settings. In the meantime, for development, it gets me to the functionality I want.
Jan ’21
Reply to Mapkit JS: What are the recommended CSP settings?
I've had success with these CSP settings, and I'm receiving no more errors in the console: <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: &#9;&#9;&#9;&#9;&#9;gap: https://*.apple-mapkit.com https://*.ls.apple.com; &#9;&#9;&#9;&#9;&#9;style-src 'self' 'unsafe-inline'; &#9;&#9;&#9;&#9;&#9;worker-src blob:; &#9;&#9;&#9;&#9;&#9;img-src 'self' https://*.apple-mapkit.com;"> The maps load and performs as expected when tested in Chrome, but it fails on MacOS Safari, in the iOS Simulator and on a device (iPhone SE 2nd Gen). All I see is a blank, untiled map which does not allow dragging. However, if I double-tap to zoom in, the tiles then appear and the map is responsive. Is there any type of --webkit CSS helper that needs to be added to allow proper Mapkit JS performance on Webkit?
Jan ’21