Post

Replies

Boosts

Views

Activity

Reply to macOS WeatherKit "A server with the specified hostname could not be found"
Here is the same code in Swift Playground format: //import Cocoa //import Foundation import WeatherKit import CoreLocation var token = [String]() let escapedCity = "41.736,-88.095" token = escapedCity.components(separatedBy: ",") let weatherService = WeatherService() let lat = Double(token[0])! let long = Double(token[1])! let thisLocation = CLLocation(latitude: lat, longitude: long) let now = Calendar.current.date(byAdding: .hour, value: 1, to: Date())! let nextWeek = Calendar.current.date(byAdding: .day, value: 14, to: Date())! do { let (dailyForecast, hourlyForecast, currentWeather, alertWeather) = try await weatherService.weather(for: thisLocation, including: .daily, .hourly(startDate: now, endDate: nextWeek), .current, .alerts) print(String(format: "%.0f", currentWeather.temperature.converted(to: .fahrenheit).value)) print(String(format: "%.0f", hourlyForecast.count)) print(String(format: "%.0f", dailyForecast.count)) print(String(format: "%.0f", alertWeather?.count ?? 0)) } catch { print(String(format:" Weather try/catch1 error: %@", error.localizedDescription)) print(String(format:" Weather full service not available: %.3f,%.3f", lat, long)) } And returns the message: remoteProcessWasInterrupted
Sep ’25
Reply to macOS WeatherKit "A server with the specified hostname could not be found"
Here is the same code in Swift Playground: //import Cocoa //import Foundation import WeatherKit import CoreLocation var token = [String]() let escapedCity = "41.736,-88.095" token = escapedCity.components(separatedBy: ",") let weatherService = WeatherService() let lat = Double(token[0])! let long = Double(token[1])! let thisLocation = CLLocation(latitude: lat, longitude: long) let now = Calendar.current.date(byAdding: .hour, value: 1, to: Date())! let nextWeek = Calendar.current.date(byAdding: .day, value: 14, to: Date())! do { let (dailyForecast, hourlyForecast, currentWeather, alertWeather) = try await weatherService.weather(for: thisLocation, including: .daily, .hourly(startDate: now, endDate: nextWeek), .current, .alerts) print(String(format: "%.0f", currentWeather.temperature.converted(to: .fahrenheit).value)) print(String(format: "%.0f", hourlyForecast.count)) print(String(format: "%.0f", dailyForecast.count)) print(String(format: "%.0f", alertWeather?.count ?? 0)) } catch { print(String(format:" Weather try/catch1 error: %@", error.localizedDescription)) print(String(format:" Weather full service not available: %.3f,%.3f", lat, long)) } Returning the message: remoteProcessWasInterrupted
Sep ’25
Reply to First attempt at a PKPass
Thank you for your response however a couple of followup questions. "Refer to Apple's official documentation on Wallet passes for detailed specifications and examples." Do you have a URL? I couldn't find any with details of acceptable JSON formatting options. "consider reaching out to the Apple Developer Forums" - Isn't this the Developer Forums?
Topic: Design SubTopic: General Tags:
Mar ’26
Reply to Hardened Runtime for distribution outside the Mac App store
Just to clarify:
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to Hardened Runtime for distribution outside the Mac App store
I guess this ends as an unsolved (undoable?) issue. :(
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Hardened Runtime for distribution outside the Mac App store
Thank you for the DevForums tip. I shared the entire script I'm using. All being done via the command line.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Hardened Runtime for distribution outside the Mac App store
@eskimo - Did I not reply correctly?
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Hardened Runtime for distribution outside the Mac App store
I opened a TSI which allowed more time and effort into finding the solution and it turned out to be very simple. In my ExportOptions.plist file, I needed: <key>method</key> <string>developer-id</string>
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to dSYM using xcodebuild
Thanks ssmith_c. I understand .app is a bundle. I thought the .dSYM file was supposed to live in Contents/Resources/DWARF/. I tried to put it in there before notarization but then notarization rejected the app. Ed
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to macOS WeatherKit "A server with the specified hostname could not be found"
Sorry for a missing first statement: let thisLocation = CLLocation(latitude: lat, longitude: long)
Replies
Boosts
Views
Activity
Sep ’25
Reply to macOS WeatherKit "A server with the specified hostname could not be found"
Here is the same code in Swift Playground format: //import Cocoa //import Foundation import WeatherKit import CoreLocation var token = [String]() let escapedCity = "41.736,-88.095" token = escapedCity.components(separatedBy: ",") let weatherService = WeatherService() let lat = Double(token[0])! let long = Double(token[1])! let thisLocation = CLLocation(latitude: lat, longitude: long) let now = Calendar.current.date(byAdding: .hour, value: 1, to: Date())! let nextWeek = Calendar.current.date(byAdding: .day, value: 14, to: Date())! do { let (dailyForecast, hourlyForecast, currentWeather, alertWeather) = try await weatherService.weather(for: thisLocation, including: .daily, .hourly(startDate: now, endDate: nextWeek), .current, .alerts) print(String(format: "%.0f", currentWeather.temperature.converted(to: .fahrenheit).value)) print(String(format: "%.0f", hourlyForecast.count)) print(String(format: "%.0f", dailyForecast.count)) print(String(format: "%.0f", alertWeather?.count ?? 0)) } catch { print(String(format:" Weather try/catch1 error: %@", error.localizedDescription)) print(String(format:" Weather full service not available: %.3f,%.3f", lat, long)) } And returns the message: remoteProcessWasInterrupted
Replies
Boosts
Views
Activity
Sep ’25
Reply to macOS WeatherKit "A server with the specified hostname could not be found"
Here is the same code in Swift Playground: //import Cocoa //import Foundation import WeatherKit import CoreLocation var token = [String]() let escapedCity = "41.736,-88.095" token = escapedCity.components(separatedBy: ",") let weatherService = WeatherService() let lat = Double(token[0])! let long = Double(token[1])! let thisLocation = CLLocation(latitude: lat, longitude: long) let now = Calendar.current.date(byAdding: .hour, value: 1, to: Date())! let nextWeek = Calendar.current.date(byAdding: .day, value: 14, to: Date())! do { let (dailyForecast, hourlyForecast, currentWeather, alertWeather) = try await weatherService.weather(for: thisLocation, including: .daily, .hourly(startDate: now, endDate: nextWeek), .current, .alerts) print(String(format: "%.0f", currentWeather.temperature.converted(to: .fahrenheit).value)) print(String(format: "%.0f", hourlyForecast.count)) print(String(format: "%.0f", dailyForecast.count)) print(String(format: "%.0f", alertWeather?.count ?? 0)) } catch { print(String(format:" Weather try/catch1 error: %@", error.localizedDescription)) print(String(format:" Weather full service not available: %.3f,%.3f", lat, long)) } Returning the message: remoteProcessWasInterrupted
Replies
Boosts
Views
Activity
Sep ’25
Reply to macOS WeatherKit "A server with the specified hostname could not be found"
Somehow my Outgoing Connection got turned off. Turned it back on and I'm back in business.
Replies
Boosts
Views
Activity
Sep ’25
Reply to WeatherKit Limits and Sharing
Thank you.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to First attempt at a PKPass
Thank you for your response however a couple of followup questions. "Refer to Apple's official documentation on Wallet passes for detailed specifications and examples." Do you have a URL? I couldn't find any with details of acceptable JSON formatting options. "consider reaching out to the Apple Developer Forums" - Isn't this the Developer Forums?
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’26