Hi! So I am not really sure how all this works.
I want to use realtime data from the trains and buses in Sweden.
This is their page: https://www.trafiklab.se/api/
As I understand it I should use GTFS data which come in Protobuf format.
I think I must convert the Protobuf-data to Swift code. Not sure if this involves json.
One file I have has the extension .pb.
I tried to use this page:
https://medium.com/@andy.nguyen.1993/protobuf-in-swift-809658ecdb22
When I write this:
$ git checkout tags/1.1.1
$ swift build -c release -Xswiftc -static-stdlib
I get this error:
"error: 'swift-protobuf': the Swift tools version specification is possibly missing a version specifier; consider using '// swift-tools-version: 6.0.3' to specify the current Swift toolchain version as the lowest Swift version supported by the project"
As you understand I am really not sure what I'm doing. Maybe there is a better way?
Any help would be highly appreciated.
This is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and join us in fostering a supportive community.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Same issue with brand new iPhone xs (was used only few month) after replacing broken screen
shame that's Apple's way to force you to buy another iPhone I will never buy Apple products again after spending so much money on MacBooks and iPhones
Topic:
Community
SubTopic:
Apple Developers
Greetings everyone, this is my first post here...thanks in advance for any guidance you may have.
I work for a non-profit (charity status) and was attempting to sign up for a Developer account, with a fee waiver, in order to do some work for our organization that requires Developer access (enabling Sign In With Apple on a Discourse forum).
I've received an e-mail from Developer Support saying my application was denied because there is already an Account Holder for our company's "existing membership." We are a small team that experiences a lot of turnover, and I presume this has to do with a predecessor.
I've written back to support and am awaiting a reply, but am concerned they might only reply to whatever e-mail address is associated with this "existing membership" and that very well might be an inactive mailbox in our Google Workspace. I've explained all that and asked Apple if they can please let me know who this previous contact is.
It's been a few days, while I'm waiting I thought I would ask if there is any other way to look up the contact for a given organization, or if I just need to wait and hope to hear back from Developer Support?
Thanks for any advice.
Hello everyone,
I recently installed the following update (today) : Version 15.5 beta (24F5053j). Since rebooting, my Thunderbolt ports have stopped working. I contacted Apple Support, but they simply advised me to wait for the next update, without being able to give me a specific timeframe....
Result: my USB-C external monitors are no longer recognized.
Have any of you encountered the same problem? Do you have any tips or solutions to reactivate the Thunderbolt ports?
Thanks in advance for your help!
Topic:
Community
SubTopic:
Apple Developers
Hello,
I am using an iPhone 15 with iOS 18.2.1, and I've noticed an issue with the screen time statistics for my app usage. Specifically, the screen time for my Google Pay app shows around 2 hours of usage on a given day, even though I only spend about a minute per transaction. Even if I assume multiple payments throughout the day, the total should not exceed 15 minutes.
This discrepancy is concerning to me, as it is affecting my personal relationships and raising trust issues, as my partner is questioning what I could have been doing on the app for such an extended period.
I would appreciate it if this issue could be looked into and resolved as soon as possible.
Topic:
Community
SubTopic:
Apple Developers
OS
macOS 15.4.1
What steps will reproduce the problem?
(0) Make sure you have other third-party browsers on your computer, and that their names start with a letter before "M", for me it is Arc browser.
(1) Install a previous version of Edge Mac Canary (it can be downloaded from official web site:https://www.microsoft.com/en-us/edge/download/insider?cc=1&cs=426423789&form=MA13FJ). If you don't have an older version, you can download and save the current version, and then try the below steps after a day or two.
(2) Eject the DMG from the Finder Sidebar.
(3) Switch to the System Settings panel, set the "Default web browser" as Edge Mac Canary just installed.
(4) Click a URL link from Notes, it will open in Edge Mac Canary.
(5) Navigate to "Settings"->"About Microsoft Edge" in Edge and wait for the update information to show that update is complete (it will auto update to the latest version).
(6) Check current result of "Default web browser" in System Settings again.
What is the expected result?
The "Default web browser" should still be Edge Canary.
What happens instead?
The "Default web browser" in System Settings will change to Arc. But this time, when you click the link from Notes, it will open in Safari, which means that "Default web browser is shown as Arc, but it is actually Safari.
It is worth noting that if you start Edge Mac in step (3) and then set it as Default Browser in the "edge://settings/defaultBrowser" page, this problem will not occur after the update is completed.
Chrome Mac has the same issue.
Other
Please see the video (https://youtu.be/ymWAanLqz1Y) for more details.
Topic:
Community
SubTopic:
Apple Developers
I have an iPhone 12 mini and I am currently using it as a modem for my router. Previously it was running iOS 14, but the DHCP on iOS 14 doesn't work and Apple didn't fix it until iOS 15. Recently I upgraded the system to iOS 18.4 to get DHCP back, but I got a bigger problem. The iPhone will restart itself after 3 days, and then I just lost internet connection. The hotspot will not be turned on until I climbed on my bookshelf to unlock my phone.
After I googled it, I found that it is a feature that Apple introduced in iOS 18.1. While I couldn't find any setting to turn it off. If this cannot be controlled by the user, then it is anyway a BUG than a feature.
The app I am developing required me to do a bit of research to train my AI if I am explicitly using something from an article, for example lets say I used a quote about climate change from a news website, is that allowed, and would I have to site it either in my documentation or somewhere in the app?
Swift Playgrounds 4.5.1 does not support Swift 6. I used Xcode 16 to develop my Swift Playgrounds, and I had to use @available(iOS 18.0, *) in a lot of cases. Will this void my application?
Topic:
Community
SubTopic:
Swift Student Challenge
Each time I try to use a Memoji, it tells me “click to resume.” Even if I do it, it keeps telling me to click to resume. How do I fix it?
Topic:
Community
SubTopic:
Apple Developers
I tried to send it on the nodejs server I built. No success received 200
My work steps are as follows:
The app executes “DCAppAttestService.shared.attestKey” to get receiptData from the acquired attestation.
The app sends "receiptData.base64EncodedString()" to the server (code-1)
Nodejs code (code-2)
Because the app has been uploaded to TestFlight, I set the server IP to "data.appattest.apple.com"
Is there something wrong with my steps?
code-1
public func attestData(receipt:Data) {
if DCDevice.current.isSupported {
let sesh = URLSession(configuration: .default)
var req = URLRequest(url: URL(string: "http://10.254.239.27:3000/attestationData")!)
print(req)
req.addValue("application/json", forHTTPHeaderField: "Content-Type")
req.httpMethod = "POST"
let data = try! JSONSerialization.data(withJSONObject: ["receipt": receipt.base64EncodedString()], options: [])
req.httpBody = data
let task = sesh.dataTask(with: req, completionHandler: { (data, response, error) in
if let data = data, let jsonString = String(data: data, encoding: .utf8) {
print(jsonString)
}
})
task.resume()
} else {
print("Platform is not supported. Make sure you aren't running in an emulator.")
//self.stopActivity()
}
}
code-2
versionRouter.post('/attestationData', function(req, response) {
console.log("\n\n\n\n\n");
console.log("receiptApi");
var receiptBase64 = req.body.receipt;
if (!receiptBase64) {
return response.status(400).send({ error: 'Missing receipt data' });
}
let binaryReceipt;
if (typeof receiptBase64 === 'string') {
const cleaned = receiptBase64.trim();
binaryReceipt = Buffer.from(cleaned, 'base64');
}
if (Buffer.isBuffer(binaryReceipt)) {
//binaryReceipt = receiptBase64;
console.log("receipt is base64 或 Buffer: "+ Buffer.isBuffer(binaryReceipt));
} else {
console.error('⚠️ receipt is not base64 or Buffer');
response.status(400).send("Receipt format error");
return;
}
var jwToken = jwt.sign({}, cert, { algorithm: 'ES256',header: { typ: undefined }, issuer: teamId, keyid: keyId});
var post_options = {
host: 'data.appattest.apple.com',
port: '443',
path: '/v1/attestationData',
method: 'POST',
headers: {
'Authorization': jwToken,
'Content-Type': 'application/octet-stream',
'Content-Length': binaryReceipt.length
}
};
var post_req = https.request(post_options, function(res) {
res.setEncoding('utf8');
console.log("📨 Apple Response Header:", res.headers);
console.log("📨 Apple StatusCode:", res.statusCode);
var data = "";
res.on('data', function (chunk) {
data += chunk;
});
res.on('end', function() {
console.log(data);
response.send({"status": res.statusCode, data: data});
});
});
post_req.on('error', function(e) {
console.error('error:', e);
response.status(500).send({ error: e.message });
});
post_req.write(binaryReceipt);
post_req.end();
});
Steps to Reproduce
make an outbound call
cover the sensor
Actual Behavior
the screen won't go dark
device iOS Result
iphone15 17 Pass
iphone14p 18.0.1 Pass
iphoneXs_pro max 18.1.1 Pass
iphone13pro max 18.2.1 Pass
iphone16pro 18.2 Fail
iphone15pro max 18.3 Fail
iphone12 pro max 18.3 Fail
ps: Skype has the same probelm
Seems like this issue only happens on iOS18.2+ on some devices, so is there a bug for this?
One of my clients keeps having Zoom crash when teaching classes.
They do have 1 external monitor attached.
Using Macbook Pro 15-inch 2017.
Running Ventura 13.7.4.
Bug in client of libplatform: os_unfair_lock is corrupt, or owner thread exited without unlocking
Abort Cause 8192
Any idea what is happening?
Do I need to submit all of the crash report?
Thank you for your assistance.
Topic:
Community
SubTopic:
Apple Developers
just updated macos to 15.5 beta 2, cannot login anymore!
i reach the login screen, i enter the correct password, the loading bar stops at around 10%, after about 1 minute the system restarts, it return to the login screens, and so on…
any suggestion about debugging this type of situation?
Using a 2014 MacBook Pro, I have a Sandisk SD card, it won't mount, I cannot format. Suggestions?
For the enrolment of Apple Developer Program as a organisation it is mandatory to have a website with domain of our organisation. Here my organisation name is A and our brand name is B. We have website and domain for the brand name but we don't have domain name with organisation name A.
Will it create any issue for the enrolment of Apple Developer Program as a organisation?
Should we buy a new domain similar to our organisation name A?
Topic:
Community
SubTopic:
Apple Developers
My current project is similar to Facebook In size. Is there an alternative to MVVM that will produce the same outcome without so many files. Performance is very poor.
I've been working on my mobile app project using Expo. Yesterday, when I tried to run the app again, the Expo Go in the iOS simulator got stuck on the screen showing "New update available, downloading..." and then crashed. I'm not sure what went wrong. It only provides a long error report. I ran an EAS build, which completed successfully, so I suspect the issue might be with the iOS simulator or Expo Go itself. Please help me out :(
So I am in a group chat with my family. We’ve had this groupchat established for a long time, and none of us have ever added anyone else to it. Somehow last night, a different family member joined our group chat and started texting us, but none of the original chat members added her, not even accidentally. This is the second time this has happened, and we have no idea how they are inserting themselves into our group chat. We are all iphone users, including the person that is somehow adding themselves to our group chat. All of us use different Apple ID accounts as well as different phone numbers, and that’s the same for the person adding themselves, so I’m truly at a loss for how this is happening.
Topic:
Community
SubTopic:
Apple Developers
Do you have some advice for me to learn Swift?SwiftUI first or Swift?
Topic:
Community
SubTopic:
Swift Student Challenge