Posts

Post not yet marked as solved
1 Replies
239 Views
I just bought a Vision Pro to build and run my app on it, but I'm encountering this error from Xcode: Developer Mode is enabled. Computer is paired. Device is paired, and it's connected to my Mac via the Developer Strap. In the "VPN & Device Management" setting it says to navigate to, there is no "Developer App certificate". Others have suggested clearing the ModuleCache in DerivedData, but that's also been fruitless. I've cleaned the build multiple times, and restarted both devices, and Xcode. I have no idea what else I can possibly do to resolve this. Does anyone have any other ideas?
Posted Last updated
.
Post marked as solved
3 Replies
774 Views
I'm trying and failing to find any documentation or example of the structure that the REST API's weather alerts come in. In the app, they returned as an array of alerts, but the REST documentation doesn't make it clear how they will look in the response body. { weatherAlerts { ... } } or { weatherAlerts { [ ... ] } } I'm hoping a developer or someone who's successfully seen an alert through them can let me know. An example of the JSON object would be truly great. It would save quite a lot of trouble. Thanks!
Posted Last updated
.
Post marked as solved
2 Replies
1k Views
Hey there, I'm attempting to build a simple Node/Express server via TypeScript, and I can't get a simple request to the REST API to work. I've checked my JWToken (after decoding it) and it matches what Apple is requests, and what other have shown to work in their node servers. I created a separate key to use for this node app, in case it was some conflict with my key for my iOS app. Any guesses as to why? Here's the code in question with private info removed: var jwtToken = jwt.sign({ subject: 'my.company' }, privateKey, { jwtid: '#########.my.company', issuer: 'myTeamID', expiresIn: '1hr', keyid: '#########', algorithm: 'ES256', header: { alg: 'ES256', id: 'myTeamID.my.company' } as JwtHeader, }); export async function requestWeather() { console.log('Token:', jwtToken) const authHeader = { headers: { Authorization: `Bearer ${jwtToken}`} } const url = "https://weatherkit.apple.com/api/v1/weather/en/37.323/122.032?dataSets=currentWeather"; const request = await axios.get(url, authHeader) console.log(request) }
Posted Last updated
.