Search results for

“offloading”

183 results found

Post

Replies

Boosts

Views

Activity

What does this error log message mean?
When I'm debugging my VPN tunnel provider application on the iPhone device I found some error logs in the console: udp_validate_cksum_internal [C8.1:1] udp incorrect IPv4-UDP non-offload checksum 0xeaff ulen 1502 It only appears when I'm tuning the MTU to a bigger value for the NEPacketTunnelNetworkSettings. What does this message mean? Does it mean the inbound udp packet has a bad checksum and will it be dropped by iOS?
3
0
1.4k
Nov ’20
Is DEXT Driver supporting these Networking Features?
I would like to know if macOS DEXT supports the following networking features: Tx/Rx Multiqueue, RSS, RSC, NS/ARP offload, PTP or packet timestamping and TSN. I couldn't find relevant documentation for these features in the Apple Developer Documentation. If they are supported, could you let me know which features are supported and how to find the corresponding official Apple documentation? Thanks
9
0
797
Dec ’24
Reply to Other Storage Taking Too Much Space
I was struggling with having over 500gb used of 1TB with over 300gb dedicated to Other Initially, I had 200gb worth of videos that I offloaded, then removed from the deleted folder. Seems that the needle didn't move much and for nearly a day, it stated I had 85gb worth of videos left. After seeing the alarm comment with 35gb of data, it hit me. I was using FilmIC Pro to record some of my videos because it has a pause feature which is really nice. I do have it set to save to my photos album, but FilmIc uses a system folder (maybe because it is hidden) to record the video before it transfers over to Photos. FilmIC can also be setup to not sent anything to the photos album. It has its own camera roll. So, it is a matter of choice. I choose for it to go to the photos folder so that I can see it immediately. So why didn't FilmIc clear the cache I wondered. I rebooted the phone earlier and it didn't work. So then, I opened up the photos app, looked to ensure nothing was in deleted folder, then swiped up to
Mar ’22
Reply to Localization in Xcode
Discussed this more with cross-functional teams and not using keys a no-go. This will not work if you want to share localization efforts across platforms beyond Apple which is more of a real-world scenario especially in enterprise settings. For example, Android requires localization keys to not have dots and other kinds of characters, also we found many 3rd party localization services had a character limit on key length. And when looking at very long localization entries, using the value as the key just doesn't make sense. I think sticking with my first intuition in using localization keys is the right way despite all the Apple sessions and samples showing otherwise. Also, just to share I was able to achieve isolating localization configurations by extending Text views to initialize from other Text views. This way, I can offload the localization configurations off the view by creating a bunch of static Text views and let the rest of the app pick them off the shelf. First I create the simple but awkwa
Jun ’21
Reply to Network framework and background tasks
[quote='757385021, xiazhvera, /thread/757385, /profile/xiazhvera'] I'm working on an MQTT client for Apple platforms (macOS, iOS, and possibly tvOS and watchOS). [/quote] The story here varies by platform: For macOS, it’s possible to run indefinitely in the background. watchOS has significantly more restrictions than iOS. See TN3135 Low-level networking on watchOS for the details. tvOS generally follows iOS, except that one of the common workarounds, push notifications, is not available there. The rest of my response focuses on iOS (including iPadOS). [quote='757385021, xiazhvera, /thread/757385, /profile/xiazhvera'] it seems that my best bet is to use a long-running background process with BGProcessingTaskRequest while setting up the connection. Does that sound like the right approach? [/quote] No. Quoting iOS Background Execution Limits: To request extended background execution time, typically delivered overnight when the user is asleep, use BGProcessingTaskRequest. So, unless you just happen to want to run
Jun ’24
Reply to Are read-only filesystems currently supported by FSKit?
Volume does not implement both maxFileSizeInBits and maxFileSize, while one of them must be implemented. Implementing this didn't seem to change the result. But I definitely do need to fix the sample FSKit project I've been copying as a base for all of these bug reports, then! Have you looked at what the actual block size of that device is and what FSBlockDeviceResource.blockSize is? Both physicalBlockSize and FSBlockDeviceResource.blockSize are 512 on the disk image. However, there are other issues. Your testing with a disk image, but the disk image block size is 0x200/512, NOT 0x1000/4096. If you’re looking at those values from the volume side, you may get 4096, but that's because the volume changed what stat returned, not because it's actually true. ... In your particular case, this also means that the stat value you're returning is 4x larger than the underlying FSResource size. That isn't necessarily wrong, but that's because the VFS layer will basically believe anything you tell it, not because that's wh
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’25
Reply to Best Practices for Binary Data (“Allows External Storage”) in Core Data with CloudKit Sync
Thanks so much, @tbartelmess1—this is super helpful, and really appreciated a bit more context from our app: App context (what we store) The blobs we persist will be user-generated cruise photos, we would downsize those to more manageable size as iphone format photos can be quite big, but they would still be in the 1-3 mb after downsizing Realistic volume per active user: a few hundred images/year; heavy users could reach low thousands over time. Decision: use Core Data Binary Data + “Allows External Storage” We’ll keep originals as Binary Data (Allows External Storage) so Core Data handles externalization transparently, my philosophy has always been to offload as much work to the system services as possible. We’ll keep thumbnails as well inline in coredata (let coredata decide but likely will be inline (blob)). CloudKit mirroring We’ll rely on NSPersistentCloudKitContainer mirroring; we understand CloudKit decides when an attribute becomes a CKAsset independently of Core Data’s externalization thres
Oct ’25
Reply to MacOS Authorsation Plugin and Protected System Keychain Entry.
Oh, there are so many pitfalls here )-: The System keychain is a filed-based keychain. To modify it you must have file system permissions to change the file. That means running as root. Using sudo for this is tricky because of execution context issues. There are two relavent bits of execution context here: BSD and security. The sudo command changes the first but not the second. That can result in a lot of ‘fun’ edge cases. In this specific situation I think the only relevant edge case is the default keychain, which is easy to work around. However, keep an eye out for this in other situations where you use the security-related APIs from sudo. Note TN2083 Daemons and Agents talks about execution contexts in some detail. File-based keychains use an access control system based on ACLs. If program A adds a keychain item and program B tries to access it, one of two things happens by default: If B is in a GUI context, the user gets a dialog asking whether to allow this. If not, the access fails. Your -T argument is
Topic: Privacy & Security SubTopic: General Tags:
Mar ’25
Will Cordova applications that download additional JavaScript be rejected
My team has been toying with the idea of developing an iOS app using Cordova, and recently, we've been looking into offloading as much of the main JavaScript as possible to our server, so any major bug fixes can be deployed quickly.The idea would be to have:the native app containing all HTML, CSS, plugins and Cordova files (all native code would be here)the main JavaScript added to the pages as external scripts from a servera device-ready function for each page that will set up and start the main JavaScript once it's availableI have seen comments that Apple could be trusting of code that runs in a webview, but it does seem like projects like this could be a security issue.Thanks!
3
0
1.1k
Oct ’15
Bluetooth Logging Buffer Size
Hey guys,I'm trying to sniff some bluetooth traffic over a period of time for post-processing analysis. So far, I've followed the instructions [1] to install the profile [2] which enabled Bluetooth HCI logging and how to offload it - it's working great by the way.So far the logs all seem to be 2.5MB so I'm curious if there is a way to control the rolling buffer size.What kind of Bluetooth configuration options are available? How do I dig into this?Thanks!--James[1] https://developer.apple.com/services-account/download?path=/iOS/iOS_Logs/Bluetooth_Logging_Instructions.pdf[2] https://developer.apple.com/services-account/download?path=/iOS/iOS_Logs/iOSBluetoothLogging.mobileconfig
0
0
1.2k
Nov ’17
Reply to Recommandations for network and server-side improvements to network delays
This answer is for home routers. Much of the bufferbloat on the internet is on the home router and ISP head ends. There is only so much you can do end-to-end - and the advice in the video is primarily targeted at LTE <-> server interactions. Definitely take a hard look at your server behaviors as I wrote above! I've written a lot and given many presentations on the bufferbloat problems in the typical home or office network, one of the more amusing is here: https://blog.apnic.net/2020/01/22/bufferbloat-may-be-solved-but-its-not-over-yet/ To improve the ISP link... encourage your customers to get better home routers with Smart Queue Management (SQM), and fq-codel for the wifi. It's universally available from third party router firmwares like openwrt, dd-wrt, merlin, and tomato. It's also available for most gamer routers (netduma calls it anti-bufferbloat), it's the premier feature of the evenroute (eero also), ubnt's edgerouter products and the udm pro also have sqm. IP fire, tangledOS also, it's a really
Oct ’21
CLLocationManager and WatchKit Extension Best Practices
Can anyone here point me in the right direction if I want to continuously update the user's location in my WatchKit Extension? I know the interface exposed in CLLocationManager in watchOS 2 only allows for one-shot updates, so presumably I'll need to offload that to the iOS app. The Potloc sample code is a good starting point for doing that, but is there anywhere that explicitly spells out the requirements? Do I need to include the usage key in the info plist in both my extension and the iOS app? Do I need to set allowsBackgroundLocationUpdates to YES in the iOS app and include the background mode for the iOS app to get location updates to provide to my extension? (I assume yes to both, but just want to check)
0
0
371
Dec ’15
Turi Create resource utilization
I'm looking into utilizing a cloud Linux machine to create and train my machine learning drawing classifier model with Turi Create. If I use my MacBook Pro it'll take at least 55 hours, so I want to offload that work and speed it up dramatically allowing me to iterate on the model to get the best result. Now there's a lot of options for RAM, CPU, and GPU capabilities. What will Turi Create take advantage of? For example, if I run it on a machine with 96 CPU cores will it utilize them all and possibly speed it up to minutes rather than days, or would a better GPU be preferred? How much RAM would be good? I'll be training it to recognize 6500 classes with 20 images of each. Thanks!
0
0
665
Jun ’20
Permission to bulk operate on other apps
I would like to create an application that let's a user bulk operate on apps. Some features: Bulk operations: - delete - organize by color (some like organizing their screens by color) - organize by type (education, reading, games, etc.) - organize apps which users want to hide - organize last access time - bulk offload apps (removing the app, saving the data) I am struggling to find, however, any notion of enabling permissions for this in an apple app. The permission I am looking for is akin to a user allowing an app to delete (duplicate) photos/videos off of their device. The area I think it would be is here: https://developer.apple.com/documentation/bundleresources/entitlements If this functionality exists, can I please be directed to the documentation for this? Many thanks! Best, Daniel Connelly
4
0
1k
Nov ’21
DELETED APP PERMANENTLY OFF HOME SCREEN AND CANNOT GET IT BACK- I’VE TRIED EVERYTHING!!
I deleted an app off of my screen and from my app library and cannot get it back. I also added face ID only to get in. The only way that I can get to the app is from the app store by searching it up and pressing open. I cannot search it on the home screen or app library. I’ve been on settings>general>iPhone storage>hidden apps to delete it but it takes just displays the loading circle and doesn’t do a thing. I’ve offloaded the app and redownloaded it and it still won’t appear. It’s a massive pain to have to go onto the app store and search it up every time i need to open it (which is around 20 times a day 😭) and I would really appreciate a solution. Believe me- I have tried EVERYTHING!
1
0
302
Nov ’24
What does this error log message mean?
When I'm debugging my VPN tunnel provider application on the iPhone device I found some error logs in the console: udp_validate_cksum_internal [C8.1:1] udp incorrect IPv4-UDP non-offload checksum 0xeaff ulen 1502 It only appears when I'm tuning the MTU to a bigger value for the NEPacketTunnelNetworkSettings. What does this message mean? Does it mean the inbound udp packet has a bad checksum and will it be dropped by iOS?
Replies
3
Boosts
0
Views
1.4k
Activity
Nov ’20
Is DEXT Driver supporting these Networking Features?
I would like to know if macOS DEXT supports the following networking features: Tx/Rx Multiqueue, RSS, RSC, NS/ARP offload, PTP or packet timestamping and TSN. I couldn't find relevant documentation for these features in the Apple Developer Documentation. If they are supported, could you let me know which features are supported and how to find the corresponding official Apple documentation? Thanks
Replies
9
Boosts
0
Views
797
Activity
Dec ’24
Reply to Other Storage Taking Too Much Space
I was struggling with having over 500gb used of 1TB with over 300gb dedicated to Other Initially, I had 200gb worth of videos that I offloaded, then removed from the deleted folder. Seems that the needle didn't move much and for nearly a day, it stated I had 85gb worth of videos left. After seeing the alarm comment with 35gb of data, it hit me. I was using FilmIC Pro to record some of my videos because it has a pause feature which is really nice. I do have it set to save to my photos album, but FilmIc uses a system folder (maybe because it is hidden) to record the video before it transfers over to Photos. FilmIC can also be setup to not sent anything to the photos album. It has its own camera roll. So, it is a matter of choice. I choose for it to go to the photos folder so that I can see it immediately. So why didn't FilmIc clear the cache I wondered. I rebooted the phone earlier and it didn't work. So then, I opened up the photos app, looked to ensure nothing was in deleted folder, then swiped up to
Replies
Boosts
Views
Activity
Mar ’22
Reply to Localization in Xcode
Discussed this more with cross-functional teams and not using keys a no-go. This will not work if you want to share localization efforts across platforms beyond Apple which is more of a real-world scenario especially in enterprise settings. For example, Android requires localization keys to not have dots and other kinds of characters, also we found many 3rd party localization services had a character limit on key length. And when looking at very long localization entries, using the value as the key just doesn't make sense. I think sticking with my first intuition in using localization keys is the right way despite all the Apple sessions and samples showing otherwise. Also, just to share I was able to achieve isolating localization configurations by extending Text views to initialize from other Text views. This way, I can offload the localization configurations off the view by creating a bunch of static Text views and let the rest of the app pick them off the shelf. First I create the simple but awkwa
Replies
Boosts
Views
Activity
Jun ’21
Reply to Network framework and background tasks
[quote='757385021, xiazhvera, /thread/757385, /profile/xiazhvera'] I'm working on an MQTT client for Apple platforms (macOS, iOS, and possibly tvOS and watchOS). [/quote] The story here varies by platform: For macOS, it’s possible to run indefinitely in the background. watchOS has significantly more restrictions than iOS. See TN3135 Low-level networking on watchOS for the details. tvOS generally follows iOS, except that one of the common workarounds, push notifications, is not available there. The rest of my response focuses on iOS (including iPadOS). [quote='757385021, xiazhvera, /thread/757385, /profile/xiazhvera'] it seems that my best bet is to use a long-running background process with BGProcessingTaskRequest while setting up the connection. Does that sound like the right approach? [/quote] No. Quoting iOS Background Execution Limits: To request extended background execution time, typically delivered overnight when the user is asleep, use BGProcessingTaskRequest. So, unless you just happen to want to run
Replies
Boosts
Views
Activity
Jun ’24
Reply to Are read-only filesystems currently supported by FSKit?
Volume does not implement both maxFileSizeInBits and maxFileSize, while one of them must be implemented. Implementing this didn't seem to change the result. But I definitely do need to fix the sample FSKit project I've been copying as a base for all of these bug reports, then! Have you looked at what the actual block size of that device is and what FSBlockDeviceResource.blockSize is? Both physicalBlockSize and FSBlockDeviceResource.blockSize are 512 on the disk image. However, there are other issues. Your testing with a disk image, but the disk image block size is 0x200/512, NOT 0x1000/4096. If you’re looking at those values from the volume side, you may get 4096, but that's because the volume changed what stat returned, not because it's actually true. ... In your particular case, this also means that the stat value you're returning is 4x larger than the underlying FSResource size. That isn't necessarily wrong, but that's because the VFS layer will basically believe anything you tell it, not because that's wh
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’25
Reply to Best Practices for Binary Data (“Allows External Storage”) in Core Data with CloudKit Sync
Thanks so much, @tbartelmess1—this is super helpful, and really appreciated a bit more context from our app: App context (what we store) The blobs we persist will be user-generated cruise photos, we would downsize those to more manageable size as iphone format photos can be quite big, but they would still be in the 1-3 mb after downsizing Realistic volume per active user: a few hundred images/year; heavy users could reach low thousands over time. Decision: use Core Data Binary Data + “Allows External Storage” We’ll keep originals as Binary Data (Allows External Storage) so Core Data handles externalization transparently, my philosophy has always been to offload as much work to the system services as possible. We’ll keep thumbnails as well inline in coredata (let coredata decide but likely will be inline (blob)). CloudKit mirroring We’ll rely on NSPersistentCloudKitContainer mirroring; we understand CloudKit decides when an attribute becomes a CKAsset independently of Core Data’s externalization thres
Replies
Boosts
Views
Activity
Oct ’25
Reply to MacOS Authorsation Plugin and Protected System Keychain Entry.
Oh, there are so many pitfalls here )-: The System keychain is a filed-based keychain. To modify it you must have file system permissions to change the file. That means running as root. Using sudo for this is tricky because of execution context issues. There are two relavent bits of execution context here: BSD and security. The sudo command changes the first but not the second. That can result in a lot of ‘fun’ edge cases. In this specific situation I think the only relevant edge case is the default keychain, which is easy to work around. However, keep an eye out for this in other situations where you use the security-related APIs from sudo. Note TN2083 Daemons and Agents talks about execution contexts in some detail. File-based keychains use an access control system based on ACLs. If program A adds a keychain item and program B tries to access it, one of two things happens by default: If B is in a GUI context, the user gets a dialog asking whether to allow this. If not, the access fails. Your -T argument is
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Will Cordova applications that download additional JavaScript be rejected
My team has been toying with the idea of developing an iOS app using Cordova, and recently, we've been looking into offloading as much of the main JavaScript as possible to our server, so any major bug fixes can be deployed quickly.The idea would be to have:the native app containing all HTML, CSS, plugins and Cordova files (all native code would be here)the main JavaScript added to the pages as external scripts from a servera device-ready function for each page that will set up and start the main JavaScript once it's availableI have seen comments that Apple could be trusting of code that runs in a webview, but it does seem like projects like this could be a security issue.Thanks!
Replies
3
Boosts
0
Views
1.1k
Activity
Oct ’15
Bluetooth Logging Buffer Size
Hey guys,I'm trying to sniff some bluetooth traffic over a period of time for post-processing analysis. So far, I've followed the instructions [1] to install the profile [2] which enabled Bluetooth HCI logging and how to offload it - it's working great by the way.So far the logs all seem to be 2.5MB so I'm curious if there is a way to control the rolling buffer size.What kind of Bluetooth configuration options are available? How do I dig into this?Thanks!--James[1] https://developer.apple.com/services-account/download?path=/iOS/iOS_Logs/Bluetooth_Logging_Instructions.pdf[2] https://developer.apple.com/services-account/download?path=/iOS/iOS_Logs/iOSBluetoothLogging.mobileconfig
Replies
0
Boosts
0
Views
1.2k
Activity
Nov ’17
Reply to Recommandations for network and server-side improvements to network delays
This answer is for home routers. Much of the bufferbloat on the internet is on the home router and ISP head ends. There is only so much you can do end-to-end - and the advice in the video is primarily targeted at LTE <-> server interactions. Definitely take a hard look at your server behaviors as I wrote above! I've written a lot and given many presentations on the bufferbloat problems in the typical home or office network, one of the more amusing is here: https://blog.apnic.net/2020/01/22/bufferbloat-may-be-solved-but-its-not-over-yet/ To improve the ISP link... encourage your customers to get better home routers with Smart Queue Management (SQM), and fq-codel for the wifi. It's universally available from third party router firmwares like openwrt, dd-wrt, merlin, and tomato. It's also available for most gamer routers (netduma calls it anti-bufferbloat), it's the premier feature of the evenroute (eero also), ubnt's edgerouter products and the udm pro also have sqm. IP fire, tangledOS also, it's a really
Replies
Boosts
Views
Activity
Oct ’21
CLLocationManager and WatchKit Extension Best Practices
Can anyone here point me in the right direction if I want to continuously update the user's location in my WatchKit Extension? I know the interface exposed in CLLocationManager in watchOS 2 only allows for one-shot updates, so presumably I'll need to offload that to the iOS app. The Potloc sample code is a good starting point for doing that, but is there anywhere that explicitly spells out the requirements? Do I need to include the usage key in the info plist in both my extension and the iOS app? Do I need to set allowsBackgroundLocationUpdates to YES in the iOS app and include the background mode for the iOS app to get location updates to provide to my extension? (I assume yes to both, but just want to check)
Replies
0
Boosts
0
Views
371
Activity
Dec ’15
Turi Create resource utilization
I'm looking into utilizing a cloud Linux machine to create and train my machine learning drawing classifier model with Turi Create. If I use my MacBook Pro it'll take at least 55 hours, so I want to offload that work and speed it up dramatically allowing me to iterate on the model to get the best result. Now there's a lot of options for RAM, CPU, and GPU capabilities. What will Turi Create take advantage of? For example, if I run it on a machine with 96 CPU cores will it utilize them all and possibly speed it up to minutes rather than days, or would a better GPU be preferred? How much RAM would be good? I'll be training it to recognize 6500 classes with 20 images of each. Thanks!
Replies
0
Boosts
0
Views
665
Activity
Jun ’20
Permission to bulk operate on other apps
I would like to create an application that let's a user bulk operate on apps. Some features: Bulk operations: - delete - organize by color (some like organizing their screens by color) - organize by type (education, reading, games, etc.) - organize apps which users want to hide - organize last access time - bulk offload apps (removing the app, saving the data) I am struggling to find, however, any notion of enabling permissions for this in an apple app. The permission I am looking for is akin to a user allowing an app to delete (duplicate) photos/videos off of their device. The area I think it would be is here: https://developer.apple.com/documentation/bundleresources/entitlements If this functionality exists, can I please be directed to the documentation for this? Many thanks! Best, Daniel Connelly
Replies
4
Boosts
0
Views
1k
Activity
Nov ’21
DELETED APP PERMANENTLY OFF HOME SCREEN AND CANNOT GET IT BACK- I’VE TRIED EVERYTHING!!
I deleted an app off of my screen and from my app library and cannot get it back. I also added face ID only to get in. The only way that I can get to the app is from the app store by searching it up and pressing open. I cannot search it on the home screen or app library. I’ve been on settings>general>iPhone storage>hidden apps to delete it but it takes just displays the loading circle and doesn’t do a thing. I’ve offloaded the app and redownloaded it and it still won’t appear. It’s a massive pain to have to go onto the app store and search it up every time i need to open it (which is around 20 times a day 😭) and I would really appreciate a solution. Believe me- I have tried EVERYTHING!
Replies
1
Boosts
0
Views
302
Activity
Nov ’24