Post

Replies

Boosts

Views

Activity

Reply to NSURLErrorDomain: -1003 Error
It's now 2025, I'm using the latest Xcode, the latest Simulator, the latest everything. My code is not referencing NSURL (afaik) yet still... let task = URLSession.shared.dataTask(with: urlRequest) And getting a message NSURLErrorDomain Code=-1003 Have the error messages been updated?
Jul ’25
Reply to addSubview with bounds not working
Setting frames and bounds is no longer supported. You must use constraints. When I changed my layout to use constraints it all started working again. Another case of Apple just changing the rules. Backward compatibility is no longer a thing!
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’25
Reply to NSURLErrorDomain Code=-1003 ... again!
@DTS Engineer You have a good memory. Yes, I had similar problems with my previous MBP setup, however with your help we did manage to get it working. This time I tried over and over to drop the certificate on the simulator, and when I checked the Settings the trusted certificate appeared to be in place. However, when I tried it I continued to get this error. I might give the macOS beta a try over the weekend. Testing with a real device takes so much longer, having to commit and push code to external servers. It's a painful work around. Cheers Murray
Jul ’25
Reply to Main actor-isolated property can not be referenced
@DTS Engineer Hi Quinn Just to be super clear: As I woke up this morning I was thinking about the basics of what I was trying to do in this test. It did occur to me that perhaps the ".image" variable is private, so I made some changes to the test. As you can see, even with the public function the same error message appears. So I watched the video "What's new in Swift" and they mentioned @MainActor and this triggered my memory. So I added this before the class and voila the error went away. I'm just so confused though. "Utils" and "getImageSize" is a static function - even if called on another thread it is only operating on the object instance being passed in. I don't understand why it needs to run on the main thread??? Can you explain this please?
Jul ’25