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?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Thank you.
Topic:
App & System Services
SubTopic:
General
Tags:
Somehow my Outgoing Connection got turned off. Turned it back on and I'm back in business.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Sorry for a missing first statement:
let thisLocation = CLLocation(latitude: lat, longitude: long)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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:
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:
@eskimo - Did I not reply correctly?
Topic:
App & System Services
SubTopic:
Hardware
Tags:
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:
I guess this ends as an unsolved (undoable?) issue. :(
Topic:
App & System Services
SubTopic:
Hardware
Tags:
Just to clarify:
Topic:
App & System Services
SubTopic:
Hardware
Tags:
@eskimo - Did I lose you? :(
Topic:
App & System Services
SubTopic:
Hardware
Tags:
# Developer email address
dev_account=$(cat ~/.altoolid)
# App-specific password
dev_passwd=$(cat ~/.altoolpw)
# Team ID 7WN.....
dev_teamid=$(cat ~/.altooltm)
# Developer ID Application: First Last or SHA value via security find-identity -p codesigning -v
dev_codesign=$(cat ~/.altoolcs)
xcrun notarytool store-credentials --apple-id "$dev_account" --team-id="$dev_teamid" --password "$dev_passwd" notary-scriptingosx
# xcodebuild -help
echo "{" > exportOptions.plist
echo "\tdestination = export;" >> exportOptions.plist
echo "\tsigningCertificate = \"Developer ID Application\";" >> exportOptions.plist
echo "\tsigningStyle = automatic;" >> exportOptions.plist
echo "\tteamID = ${dev_teamid};" >> exportOptions.plist
echo "}" >> exportOptions.plist
# Builds with **Apple Development**, not **Developer ID Application**
#
xcodebuild -project Meteorologist.xcodeproj -scheme Meteorologist -configuration Release -derivedDataPath ./Build -allowProvisioningUpdates --options=runtime clean archive -archivePath ./Build/Archive.xcarchive
xcodebuild -exportArchive -archivePath ./Build/Archive.xcarchive -exportOptionsPlist exportOptions.plist -exportPath ./Build/Release
# Display signing, look for runtime and Developer ID
#codesign -dv --verbose=4 ./Build/Release/Meteorologist.app
#security find-identity -p codesigning -v
# Display entitlements
#codesign -d --entitlements - --xml ./Build/Release/Meteorologist.app | plutil -convert xml1 -o - -
# Create a ZIP archive suitable for notarization.
/usr/bin/ditto -c -k --keepParent ./Build/Release/Meteorologist.app ./Build/Release/Meteorologist.zip
# notarize
xcrun notarytool submit ./Build/Release/Meteorologist.zip --wait --keychain-profile "notary-scriptingosx" > xcodebuild.log
uuid=$(grep -m 1 -w "id:" xcodebuild.log | awk '{print $2}')
echo "UUID=${uuid}"
rm xcodebuild.log
# Show results...needs uuid from above
xcrun stapler staple "./Build/Release/Meteorologist.app"
Topic:
App & System Services
SubTopic:
Hardware
Tags:
Thank you. I did not understand that. Let me see what I can do, unless you have some sample code you can get me started.
Ed
Topic:
App & System Services
SubTopic:
Hardware
Tags:
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?
- Replies
- Boosts
- Views
- Activity
Thank you.
Topic:
App & System Services
SubTopic:
General
Tags:
- Replies
- Boosts
- Views
- Activity
Somehow my Outgoing Connection got turned off. Turned it back on and I'm back in business.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
- Replies
- Boosts
- Views
- Activity
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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
- Replies
- Boosts
- Views
- Activity
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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
- Replies
- Boosts
- Views
- Activity
Sorry for a missing first statement:
let thisLocation = CLLocation(latitude: lat, longitude: long)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
- Replies
- Boosts
- Views
- Activity
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
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
@eskimo - Did I not reply correctly?
Topic:
App & System Services
SubTopic:
Hardware
Tags:
- Replies
- Boosts
- Views
- Activity
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
I guess this ends as an unsolved (undoable?) issue. :(
Topic:
App & System Services
SubTopic:
Hardware
Tags:
- Replies
- Boosts
- Views
- Activity
Just to clarify:
Topic:
App & System Services
SubTopic:
Hardware
Tags:
- Replies
- Boosts
- Views
- Activity
@eskimo - Did I lose you? :(
Topic:
App & System Services
SubTopic:
Hardware
Tags:
- Replies
- Boosts
- Views
- Activity
# Developer email address
dev_account=$(cat ~/.altoolid)
# App-specific password
dev_passwd=$(cat ~/.altoolpw)
# Team ID 7WN.....
dev_teamid=$(cat ~/.altooltm)
# Developer ID Application: First Last or SHA value via security find-identity -p codesigning -v
dev_codesign=$(cat ~/.altoolcs)
xcrun notarytool store-credentials --apple-id "$dev_account" --team-id="$dev_teamid" --password "$dev_passwd" notary-scriptingosx
# xcodebuild -help
echo "{" > exportOptions.plist
echo "\tdestination = export;" >> exportOptions.plist
echo "\tsigningCertificate = \"Developer ID Application\";" >> exportOptions.plist
echo "\tsigningStyle = automatic;" >> exportOptions.plist
echo "\tteamID = ${dev_teamid};" >> exportOptions.plist
echo "}" >> exportOptions.plist
# Builds with **Apple Development**, not **Developer ID Application**
#
xcodebuild -project Meteorologist.xcodeproj -scheme Meteorologist -configuration Release -derivedDataPath ./Build -allowProvisioningUpdates --options=runtime clean archive -archivePath ./Build/Archive.xcarchive
xcodebuild -exportArchive -archivePath ./Build/Archive.xcarchive -exportOptionsPlist exportOptions.plist -exportPath ./Build/Release
# Display signing, look for runtime and Developer ID
#codesign -dv --verbose=4 ./Build/Release/Meteorologist.app
#security find-identity -p codesigning -v
# Display entitlements
#codesign -d --entitlements - --xml ./Build/Release/Meteorologist.app | plutil -convert xml1 -o - -
# Create a ZIP archive suitable for notarization.
/usr/bin/ditto -c -k --keepParent ./Build/Release/Meteorologist.app ./Build/Release/Meteorologist.zip
# notarize
xcrun notarytool submit ./Build/Release/Meteorologist.zip --wait --keychain-profile "notary-scriptingosx" > xcodebuild.log
uuid=$(grep -m 1 -w "id:" xcodebuild.log | awk '{print $2}')
echo "UUID=${uuid}"
rm xcodebuild.log
# Show results...needs uuid from above
xcrun stapler staple "./Build/Release/Meteorologist.app"
Topic:
App & System Services
SubTopic:
Hardware
Tags:
- Replies
- Boosts
- Views
- Activity
Thank you. I did not understand that. Let me see what I can do, unless you have some sample code you can get me started.
Ed
Topic:
App & System Services
SubTopic:
Hardware
Tags:
- Replies
- Boosts
- Views
- Activity