Search results for

“eskimo”

36,620 results found

Post

Replies

Boosts

Views

Activity

Reply to Swift Student Challenge 2026 submission format
[quote='816935021, Rayane_Dev, /thread/816935, /profile/Rayane_Dev'] My question is can I submit a MyApp.xcodeproj file … ? [/quote] No. The rules are crystal clear about this: Your submission must be an app playground (.swiftpm) in a ZIP file. My understanding is that the Foundation Models framework works just fine in an app playground, but you will have to raise your deployment target to iOS 26. See this thread. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Feb ’26
Reply to Can NWConnection.receive(minimumIncompleteLength:maximumLength:) return nil data for UDP while connection remains .ready?
The receive(minimumIncompleteLength:maximumLength:completion:) has a lot of options and it works with many different protocols. Given that, coming up with a definitive table of what it will do in every possible case is hard, and I’ve never seen that officially documented in sufficient detail [1]. Given that, I generally stick with protocol-specific recipes: For stream-based protocols, like TCP, I use receive(minimumIncompleteLength:maximumLength:completion:) and then, in the completion handler, I process: The data first, if there is any Then the error, if there is one For UDP, I always use receiveMessage(completion:). This is a great option because UDP datagrams have a limited size that easily fits in memory. For message-based protocols without that convenient limit, things get tricky. You have to use receive(minimumIncompleteLength:maximumLength:completion:) but you then need to worry about the isComplete Boolean and potentially the context. Fortunately, these cases are rare [2]. Notably, this approach is co
Feb ’26
Reply to Run destination for my Xcode submission
Its redirecting to my own thread Oh gosh, sorry. I juggle a lot of threads and sometimes I lose track of the context )-: the pop-up does not specify if the playground will be run on an iPad simulator or an iOS simulator Indeed. I’ve always just assumed it would be an iPad simulator because that’s equivalent to what you get when you run an app with the Swift Playground app on iPad. However, you’re correct that the submission form doesn’t say that explicitly. My general advice here is that you strive to make your app work well on both iOS and iPadOS. That is, after all, what we expect of ‘real’ apps. If you can’t do that then my only immediate suggestion is to use the Comments box to note this. However, I’m also going to do a little digging to see if I can clarify our policy here. ps It’s better to reply as a reply, rather than in the comments; see Quinn’s Top Ten DevForums Tips for this and other titbits. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo
Feb ’26
Reply to archive single file to .aar file in Swift
It’s better to reply as a reply, rather than in the comments; see Quinn’s Top Ten DevForums Tips for this and other titbits. I had to switch to Objective-C for the language to find the list Right. This is because Swift isn’t importing the C API directly, but rather the C APIs are marked as refined for Swift and there’s a Swift API that wraps them. If you rummage around in the headers you can see how this actually works, via the APPLE_ARCHIVE_SWIFT_PRIVATE macro. Curiously, you can access all this stuff from Swift by adding a double underscore prefix: guard let pathList = __AAPathListCreateWithDirectoryContents(/foo/bar, nil, nil, nil, 0, 0) else { … handle the error … } Not that I recommend that you do that. Using low-level C APIs like this from Swift isn’t much fun. Moreover, it puts you way off the beaten path. So, if you find something that you can’t do from Swift but can do from C, I recommend that you: Do it from C, and then call that C code from Swift. File an enhancement request against the Swift API e
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’26
Reply to Parental controls illusion? Safari history can be selectively erased despite active Screen Time
[quote='877265022, bandf, /thread/816475?answerId=877265022#877265022, /profile/bandf'] I have already submitted the issue via Feedback Assistant … FB22021943. [/quote] Thanks. [quote='877265022, bandf, /thread/816475?answerId=877265022#877265022, /profile/bandf'] I intentionally chose to raise the matter here as well. [/quote] That’s not a problem. But in that case it’s best to lead with the bug number. That’s helpful for both your intended audiences: Apple folks can check on the state of your bug. Non-Apple folks know that they don’t have to file their own bug. But if they want to track the state of this issue they can choose to file their own bug and ask that it be marked as a duplicate of yours. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Safari & Web SubTopic: General Tags:
Feb ’26
Reply to init?(coder: NSCoder) or init?(coder: (NSCoder?))
Swift’s superclass initialisation rules are complex, so it’s hard to answer questions like this without seeing a concrete example. Anyway, I most commonly see folks hit this when they’re creating a Cocoa view, so let’s look at that: import AppKit class MyView: NSView { var counter: Int override init(frame: NSRect) { self.counter = 0 super.init(frame: frame) } required init?(coder: NSCoder) { super.init(coder: coder) // ^ Property 'self.counter' not initialized at super.init call self.counter = 0 // A } } This fails because you have to initialise counter before calling super. Moving line A up a line fixes the problem. If you have an example of the other behaviour, please share it. Oh, and this was Xcode 26.2 with the macOS 26.2 SDK. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’26
Reply to Issue with XPC communication between Network Extension and host application
[quote='816702021, Pavel, /thread/816702, /profile/Pavel'] I need to develop a … Transparent Proxy … that sends data to the host application for analysis. [/quote] You mean the container app, right? [1] If so, this architecture is a concern. A transparent proxy operates system wide, so: There may be 0, 1, or more active GUI login sessions. Each active GUI login session can be running an instance of your container app. So if multiple users are logged in and they each run a copy of your container app, what are you expecting to happen? This architecture also informs your XPC architecture. A NE sysex, which operates much like a launchd daemon, can’t connect to a named XPC endpoint advertised by an app because the system wouldn’t know which app to connect to [2]. Given the above, the only architecture that works is for your sysex to advertise the named XPC endpoint and for your apps to connect to it. And that’s exactly what’s demonstrated by the Filtering Network Traffic sample code. There are a couple of things t
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’26
Reply to localnetwork issue from local device.
[quote='816770021, sardinelee, /thread/816770, /profile/sardinelee'] At the OS level, the only error codes we receive are: … -1005 … -1001 [/quote] Right. These are NSURLErrorNetworkConnectionLost and NSURLErrorTimedOut, respectively. They are transport errors, meaning that the HTTP request failed because something went wrong with the underlying TCP/IP transport connection (TCP for HTTP/2 and earlier, QUIC for HTTP/3). There’s more info about the -1005 error in QA1941 Handling “The network connection was lost” Errors. The -1001 is pretty straightforward: The transport connection stopped moving data and eventually the HTTP request timed out. Given the above, you need to look for problems deeper in the TCP/IP stack. I usually start an investigation like this with an RVI packet trace, which lets you see what’s happening on the ‘wire’ as far as iOS’s TCP/IP stack is concerned. I suspect you’ll find that the Wi-Fi has simply stopped delivering packets. The critical factor here is that it’s limited to iPhone 17 and
Feb ’26
Reply to Are Xcode warnings like this safe to submit (won’t disqualify)?
Submitting your app with a warning is better than not submitting it at all. But obviously it’s better to not have warnings. AFAIK this warning is generated by you adding an Asset Catalog (.xcassets) to your playground. What happens if you remove that? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Feb ’26
Reply to XCode Simulator Run Destination
[quote='816773021, millerswiftdev, /thread/816773, /profile/millerswiftdev'] Does this mean Mac Catalyst … ? [/quote] No. [quote='816773021, millerswiftdev, /thread/816773, /profile/millerswiftdev'] Does this mean … a iPad VM? [/quote] No. There’s no supported virtualisation mechanism for iPad. If you build in Xcode, you should expect that your submission will be run on the simulator. We call that out in the Swift Student Challenge Submission submission form. You can assume that the Xcode and simulator versions will be 26 or later, so it’s fine to use iOS 26 APIs. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Feb ’26
Reply to Postgres in Sandboxed App
[quote='816782021, alexfromapex, /thread/816782, /profile/alexfromapex'] Has anyone gotten Postgres to run in a sandboxed app? [/quote] Not personally, but I can shed some light on the App Sandbox side of this. System V IPC is a compatibility API an macOS. We recommend against using it in new code. Given that, it shouldn’t come as a big surprise that it doesn’t have a good story regarding the App Sandbox. The alternative, Posix IPC, works in the App Sandbox as long as you conform to the naming guidelines described in App Groups Entitlement [1]. So, to make this work you’ll need to: Sign your executables to claim access to an app group. Configure the library to use Posix IPC. With a name that’s authorised by that app group. I don’t have any expertise with this specific third-party library, so I’ve no insight into the last two. I’m happy to help with the first. I have lots of background on that in App Groups: macOS vs iOS: Working Towards Harmony. Share and Enjoy — Quinn “The Eskimo!” @ Developer Techn
Topic: Community SubTopic: Apple Developers Tags:
Feb ’26
Reply to Question about generating app store files
It sounds like you’re trying to create an App Store Connect API key. When you do that, you get one shot at downloading the key itself, but the Issuer ID and Key ID are visible on App Store Connect indefinitely. An Issuer ID is a UUID, for example, c055ca8c-e5a8-4836-b61d-aa5794eeb3f4. A Key ID is a 10-character identifier, for example, T9GPZ92M7K. For more info on how to create these keys, see Creating API Keys for App Store Connect API. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Feb ’26
Reply to What Should the iOS Deployment Target Be Set to?
Let’s focus this discussion on your other thread. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Feb ’26
Reply to What Should the iOS Deployment Target Be?
Regarding the deployment target issue, see this thread. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Feb ’26
Reply to Swift Student Challenge 2026 submission format
[quote='816935021, Rayane_Dev, /thread/816935, /profile/Rayane_Dev'] My question is can I submit a MyApp.xcodeproj file … ? [/quote] No. The rules are crystal clear about this: Your submission must be an app playground (.swiftpm) in a ZIP file. My understanding is that the Foundation Models framework works just fine in an app playground, but you will have to raise your deployment target to iOS 26. See this thread. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Feb ’26
Reply to nonisolated Execution Differences Before and After Xcode 26.2
Indeed, @concurrent is introduced by SE-0461, which I referenced above. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Feb ’26
Reply to Can NWConnection.receive(minimumIncompleteLength:maximumLength:) return nil data for UDP while connection remains .ready?
The receive(minimumIncompleteLength:maximumLength:completion:) has a lot of options and it works with many different protocols. Given that, coming up with a definitive table of what it will do in every possible case is hard, and I’ve never seen that officially documented in sufficient detail [1]. Given that, I generally stick with protocol-specific recipes: For stream-based protocols, like TCP, I use receive(minimumIncompleteLength:maximumLength:completion:) and then, in the completion handler, I process: The data first, if there is any Then the error, if there is one For UDP, I always use receiveMessage(completion:). This is a great option because UDP datagrams have a limited size that easily fits in memory. For message-based protocols without that convenient limit, things get tricky. You have to use receive(minimumIncompleteLength:maximumLength:completion:) but you then need to worry about the isComplete Boolean and potentially the context. Fortunately, these cases are rare [2]. Notably, this approach is co
Replies
Boosts
Views
Activity
Feb ’26
Reply to Run destination for my Xcode submission
Its redirecting to my own thread Oh gosh, sorry. I juggle a lot of threads and sometimes I lose track of the context )-: the pop-up does not specify if the playground will be run on an iPad simulator or an iOS simulator Indeed. I’ve always just assumed it would be an iPad simulator because that’s equivalent to what you get when you run an app with the Swift Playground app on iPad. However, you’re correct that the submission form doesn’t say that explicitly. My general advice here is that you strive to make your app work well on both iOS and iPadOS. That is, after all, what we expect of ‘real’ apps. If you can’t do that then my only immediate suggestion is to use the Comments box to note this. However, I’m also going to do a little digging to see if I can clarify our policy here. ps It’s better to reply as a reply, rather than in the comments; see Quinn’s Top Ten DevForums Tips for this and other titbits. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo
Replies
Boosts
Views
Activity
Feb ’26
Reply to archive single file to .aar file in Swift
It’s better to reply as a reply, rather than in the comments; see Quinn’s Top Ten DevForums Tips for this and other titbits. I had to switch to Objective-C for the language to find the list Right. This is because Swift isn’t importing the C API directly, but rather the C APIs are marked as refined for Swift and there’s a Swift API that wraps them. If you rummage around in the headers you can see how this actually works, via the APPLE_ARCHIVE_SWIFT_PRIVATE macro. Curiously, you can access all this stuff from Swift by adding a double underscore prefix: guard let pathList = __AAPathListCreateWithDirectoryContents(/foo/bar, nil, nil, nil, 0, 0) else { … handle the error … } Not that I recommend that you do that. Using low-level C APIs like this from Swift isn’t much fun. Moreover, it puts you way off the beaten path. So, if you find something that you can’t do from Swift but can do from C, I recommend that you: Do it from C, and then call that C code from Swift. File an enhancement request against the Swift API e
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to Parental controls illusion? Safari history can be selectively erased despite active Screen Time
[quote='877265022, bandf, /thread/816475?answerId=877265022#877265022, /profile/bandf'] I have already submitted the issue via Feedback Assistant … FB22021943. [/quote] Thanks. [quote='877265022, bandf, /thread/816475?answerId=877265022#877265022, /profile/bandf'] I intentionally chose to raise the matter here as well. [/quote] That’s not a problem. But in that case it’s best to lead with the bug number. That’s helpful for both your intended audiences: Apple folks can check on the state of your bug. Non-Apple folks know that they don’t have to file their own bug. But if they want to track the state of this issue they can choose to file their own bug and ask that it be marked as a duplicate of yours. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to init?(coder: NSCoder) or init?(coder: (NSCoder?))
Swift’s superclass initialisation rules are complex, so it’s hard to answer questions like this without seeing a concrete example. Anyway, I most commonly see folks hit this when they’re creating a Cocoa view, so let’s look at that: import AppKit class MyView: NSView { var counter: Int override init(frame: NSRect) { self.counter = 0 super.init(frame: frame) } required init?(coder: NSCoder) { super.init(coder: coder) // ^ Property 'self.counter' not initialized at super.init call self.counter = 0 // A } } This fails because you have to initialise counter before calling super. Moving line A up a line fixes the problem. If you have an example of the other behaviour, please share it. Oh, and this was Xcode 26.2 with the macOS 26.2 SDK. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to Issue with XPC communication between Network Extension and host application
[quote='816702021, Pavel, /thread/816702, /profile/Pavel'] I need to develop a … Transparent Proxy … that sends data to the host application for analysis. [/quote] You mean the container app, right? [1] If so, this architecture is a concern. A transparent proxy operates system wide, so: There may be 0, 1, or more active GUI login sessions. Each active GUI login session can be running an instance of your container app. So if multiple users are logged in and they each run a copy of your container app, what are you expecting to happen? This architecture also informs your XPC architecture. A NE sysex, which operates much like a launchd daemon, can’t connect to a named XPC endpoint advertised by an app because the system wouldn’t know which app to connect to [2]. Given the above, the only architecture that works is for your sysex to advertise the named XPC endpoint and for your apps to connect to it. And that’s exactly what’s demonstrated by the Filtering Network Traffic sample code. There are a couple of things t
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to localnetwork issue from local device.
[quote='816770021, sardinelee, /thread/816770, /profile/sardinelee'] At the OS level, the only error codes we receive are: … -1005 … -1001 [/quote] Right. These are NSURLErrorNetworkConnectionLost and NSURLErrorTimedOut, respectively. They are transport errors, meaning that the HTTP request failed because something went wrong with the underlying TCP/IP transport connection (TCP for HTTP/2 and earlier, QUIC for HTTP/3). There’s more info about the -1005 error in QA1941 Handling “The network connection was lost” Errors. The -1001 is pretty straightforward: The transport connection stopped moving data and eventually the HTTP request timed out. Given the above, you need to look for problems deeper in the TCP/IP stack. I usually start an investigation like this with an RVI packet trace, which lets you see what’s happening on the ‘wire’ as far as iOS’s TCP/IP stack is concerned. I suspect you’ll find that the Wi-Fi has simply stopped delivering packets. The critical factor here is that it’s limited to iPhone 17 and
Replies
Boosts
Views
Activity
Feb ’26
Reply to Are Xcode warnings like this safe to submit (won’t disqualify)?
Submitting your app with a warning is better than not submitting it at all. But obviously it’s better to not have warnings. AFAIK this warning is generated by you adding an Asset Catalog (.xcassets) to your playground. What happens if you remove that? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Feb ’26
Reply to XCode Simulator Run Destination
[quote='816773021, millerswiftdev, /thread/816773, /profile/millerswiftdev'] Does this mean Mac Catalyst … ? [/quote] No. [quote='816773021, millerswiftdev, /thread/816773, /profile/millerswiftdev'] Does this mean … a iPad VM? [/quote] No. There’s no supported virtualisation mechanism for iPad. If you build in Xcode, you should expect that your submission will be run on the simulator. We call that out in the Swift Student Challenge Submission submission form. You can assume that the Xcode and simulator versions will be 26 or later, so it’s fine to use iOS 26 APIs. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Feb ’26
Reply to Postgres in Sandboxed App
[quote='816782021, alexfromapex, /thread/816782, /profile/alexfromapex'] Has anyone gotten Postgres to run in a sandboxed app? [/quote] Not personally, but I can shed some light on the App Sandbox side of this. System V IPC is a compatibility API an macOS. We recommend against using it in new code. Given that, it shouldn’t come as a big surprise that it doesn’t have a good story regarding the App Sandbox. The alternative, Posix IPC, works in the App Sandbox as long as you conform to the naming guidelines described in App Groups Entitlement [1]. So, to make this work you’ll need to: Sign your executables to claim access to an app group. Configure the library to use Posix IPC. With a name that’s authorised by that app group. I don’t have any expertise with this specific third-party library, so I’ve no insight into the last two. I’m happy to help with the first. I have lots of background on that in App Groups: macOS vs iOS: Working Towards Harmony. Share and Enjoy — Quinn “The Eskimo!” @ Developer Techn
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to Question about generating app store files
It sounds like you’re trying to create an App Store Connect API key. When you do that, you get one shot at downloading the key itself, but the Issuer ID and Key ID are visible on App Store Connect indefinitely. An Issuer ID is a UUID, for example, c055ca8c-e5a8-4836-b61d-aa5794eeb3f4. A Key ID is a 10-character identifier, for example, T9GPZ92M7K. For more info on how to create these keys, see Creating API Keys for App Store Connect API. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Feb ’26