Post

Replies

Boosts

Views

Activity

PDFKit memory issue
I have a loop that iterates all pages in a PDF and saves parts of its content into core data. Problem seems to be that each PDFPage takes up around 30mb+ of memory. This memory is not retuned when the loop moves to ther next page. with large enough PDF in can cause out of memory crash.At first I thought it was something in the loop holidng a reference. However when I dont run the loop, or attempt to save any of the PDFPage contents and simply swipe through the PDFPages of the PDF, the memory still goes up 30mb + per page. So my question is how to clear the previous page from memory when no longer the page in view?I would add code but seems you cant pste into here so jist know its basic PDFKit code to load a pdf url
4
0
2.2k
Feb ’18
Use iphone antenna without sim card
Hi I am trying to make mobile app my question Is there any way to use iphone antenna without sim card? I am trying to send data to another iphone with antenna no wifi or bluetooth signal thanks. (kind of virtual sim, and antenna menaing that signal such is LTE is receiveing and sending or we are using to call) I search a lot. if it must be done in kernel please tell.
3
0
1.3k
Feb ’18
macOS wifi ping spikes
Hey Apple devs,Has anyone encountered ping spikes on macOS when using WiFi? When you run a constant ping, it looks like this…64 bytes from 192.168.0.30: icmp_seq=502 ttl=128 time=1.443 ms64 bytes from 192.168.0.30: icmp_seq=503 ttl=128 time=3.007 ms64 bytes from 192.168.0.30: icmp_seq=504 ttl=128 time=1.684 ms64 bytes from 192.168.0.30: icmp_seq=505 ttl=128 time=186.861 ms64 bytes from 192.168.0.30: icmp_seq=506 ttl=128 time=69.545 ms64 bytes from 192.168.0.30: icmp_seq=507 ttl=128 time=141.434 ms64 bytes from 192.168.0.30: icmp_seq=508 ttl=128 time=24.043 ms64 bytes from 192.168.0.30: icmp_seq=509 ttl=128 time=2.961 ms64 bytes from 192.168.0.30: icmp_seq=510 ttl=128 time=1.827 ms64 bytes from 192.168.0.30: icmp_seq=511 ttl=128 time=1.171 msSeems to happen reliably when you open the WiFi menu bar on High Sierra. Other apps can cause this too.I think others are seeing this issue too (especially gamers):https://apple.stackexchange.com/questions/263638/macbook-pro-experiencing-ping-spikes-to-local-routerAs well as games, real time network apps like Synergy suffer too:https://symless.com/help/mac-wifi-lagCheers,Nick
25
1
29k
Mar ’18
Battery statistical issue for Packet Tunnel Provider
Hi guys,I'm developing a custom VPN client with NEPacketTunnelProvider which tunnels all device traffic. All is going well so far but I've noticed that iOS battery statistics (Settings -> Battery) is claiming that our client has consumed a significant amount of energy (10%~30%). I though it was true for a while, but then I conducted some basic testing which suggested this is more likely a statistical issue.I set up my device (rebooted with clean battery cosumption statistics) with ~80% battery capacity and started to watch "NASA Live" channel in Youtube app with 1080p60 quality, for 3 hours, and taking notes every hour. I cross referenced the data of the same scenario (same device as well) collected with our custom VPN provider enabled and disabled. I made sure when the VPN client is enabled, I can actually see the Youtube traffic tunneled. Actually the video feed can generate ~1GiB traffic per hour pretty stably. I can provide detailed numbers if necessary, but generally, after 3 hours, both scenarios showed an overal of ~50% battery consumption (from the battery indicator on the status bar on top of the phone screen), there was no significant difference in the battery consumption. However when I looked at the statistics in Settings -> Battery, the scenario without our VPN client was showing 100% battery consumption from Youtube app (which is expected), and the scenario with VPN was showing 68% for Youtube, and 32% for our VPN client app!32% battery consumption in statistics is scaring. But what confuses me is that the actual device battery consumption didn't increase. My theory is that without the VPN client, individual apps are sending out their traffic on their own so the battery consumption are calculated on their head. But now with our VPN client, we are actually sending out traffic for every applications so iOS will blame us for that part of energy consumption. I'm not sure if the theory is true but it certainly explains the behavior.I'm wondering if Apple can look at the issue at if proved to be a statistical issue then fix it. Because 10%+ battery consumption on our app would be enough to scare away our customers. We can explain to them there is no actual extra energy consumption but customers will be suspicious. Whenever they feel their phone's having a shortened battery life they'll come to see the list and they will blame us.Thanks in advance!
12
0
2.1k
Mar ’18
Constant "Your session has expired" (error 1100)
Trying to do a CLI build with XCode (using NativeScript).Was working fine a couple days ago. However, now I cannot get past this error when trying to build:DTDeviceKit: deviceType from 7c64d8a014fd573ca3623ef80b158e57e7aea7c5 was NULL2018-05-07 11:57:54.696 xcodebuild[14808:865317] DVTPortal: Service '<DVTPortalViewDeveloperService: 0x7fe4e17686d0; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')2018-05-07 11:57:54.696 xcodebuild[14808:865317] DVTPortal: Error:Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload=<CFBasicHash 0x7fe4e242ed70 [0x7fff9115faf0]>Whenever I open XCode and to go preferences->account, my team account already reports "Session has expired". I log in successfully, then close Xcode, then login again, and once again it says the "Session has expired".Enabled two factor authentication hasn't helped. I get the identical error from two separate machines (Mac Mini and MacBook Air). Using latest High Sierra OS and XCode.My developer accounts logs in fine to the developer portal on Apple's Developer site, iTunes connect, etc..
15
0
35k
May ’18
No crypto user for encrypted APFS volume!
After an update to High Sierra, I'm trying to unlock my volume (disk1s1) but cannot anymore. This is the info from terminal:APFS Container (1 found) | +-- Container disk1 C8022E32-744D-414E-9246-29ADDB0357F3 ==================================================== APFS Container Reference: disk1 Size (Capacity Ceiling): 500068036608 B (500.1 GB) Minimum Size: 500068036608 B (500.1 GB) Capacity In Use By Volumes: 485282820096 B (485.3 GB) (97.0% used) Capacity Not Allocated: 14785216512 B (14.8 GB) (3.0% free) | +-< Physical Store disk0s2 438AD64B-835E-418D-B0DF-32A3A0B7500A | ----------------------------------------------------------- | APFS Physical Store Disk: disk0s2 | Size: 500068036608 B (500.1 GB) | +-> Volume disk1s1 6C587DE6-9C8D-3792-9144-34FBE59AE9F6 | --------------------------------------------------- | APFS Volume Disk (Role): disk1s1 (No specific role) | Name: Macintosh HD (Case-insensitive) | Mount Point: Not Mounted | Capacity Consumed: 382597644288 B (382.6 GB) | FileVault: Yes (Locked) | +-> Volume disk1s2 B7508926-2601-4C8D-9707-5F53EA943031 | --------------------------------------------------- | APFS Volume Disk (Role): disk1s2 (Preboot) | Name: Preboot (Case-insensitive) | Mount Point: Not Mounted | Capacity Consumed: 39792640 B (39.8 MB) | FileVault: No | +-> Volume disk1s3 51B76A93-806E-474D-9BBA-F1E752C3032B | --------------------------------------------------- | APFS Volume Disk (Role): disk1s3 (Recovery) | Name: Recovery (Case-insensitive) | Mount Point: Not Mounted | Capacity Consumed: 1038880768 B (1.0 GB) | FileVault: No | +-> Volume disk1s4 A680E59F-DF9D-4354-BE1E-6A8AA71390A5 | --------------------------------------------------- | APFS Volume Disk (Role): disk1s4 (VM) | Name: VM (Case-insensitive) | Mount Point: /private/var/vm | Capacity Consumed: 4295213056 B (4.3 GB) | FileVault: No | +-> Volume disk1s5 7683ED91-DACF-4213-8C73-F2C24518A4B2 --------------------------------------------------- APFS Volume Disk (Role): disk1s5 (No specific role) Name: Macintosh HD2 (Case-insensitive) Mount Point: / Capacity Consumed: 97149804544 B (97.1 GB) FileVault: Yes (Unlocked)Notice after a failed upgrade, I had to partition the drive to install a fresh OS (Macintosh HD2) to move on with my life, in hopes one day I can access my original volume. Now I'm trying to unlock the original Macintosh HD / disk1s1, but its crypto users disappeared (they were there before)!diskutil apfs listUsers disk1s1 No cryptographic users for disk1s1I tried entering a blank password but not luck:diskutil apfs unlockVolume disk1s1 -nomount Passphrase: Passphrase entry error: no passphrase specifiedEntering my old password or a space as the password gives this:diskutil apfs unlockVolume disk1s1 -nomount Passphrase: Unlocking any cryptographic user on APFS Volume disk1s1 Unlocked but did not mount APFS VolumeBut it really doesn't unlock it:diskutil apfs list +-< Physical Store disk0s2 438AD64B-835E-418D-B0DF-32A3A0B7500A | ----------------------------------------------------------- | APFS Physical Store Disk: disk0s2 | Size: 500068036608 B (500.1 GB) | +-> Volume disk1s1 6C587DE6-9C8D-3792-9144-34FBE59AE9F6 | --------------------------------------------------- | APFS Volume Disk (Role): disk1s1 (No specific role) | Name: Macintosh HD (Case-insensitive) | Mount Point: Not Mounted | Capacity Consumed: 382597644288 B (382.6 GB) | FileVault: Yes (Locked)I tried decrypting it as well, but no luck (entered my password used before the update, also tried space as password):diskutil apfs decryptVolume disk1s1 Passphrase for existing "Disk" user 6C587DE6-9C8D-3792-9144-34FBE59AE9F: Starting background decryption of disk1s1 using the "Disk" crypto user as authorization Error starting background decryption of APFS Volume: One or more of the given or implied APFS Volumes are locked (-69582)Which is strange it's asking for a users passphrase when it told me there were no users; even stranger that this user's ID is the same as the volume disk ID. So I tried reseting the passphrase for this user:diskutil apfs changePassphrase disk1s1 -user 6C587DE6-9C8D-3792-9144-34FBE59AE9F6 Old passphrase for user 6C587DE6-9C8D-3792-9144-34FBE59AE9F6: New passphrase: Repeat new passphrase: Changing passphrase for cryptographic user 6C587DE6-9C8D-3792-9144-34FBE59AE9F6 on APFS Volume disk1s1 Error changing passphrase for cryptographic user on APFS Volume: The crypto user was not found on the APFS Volume (-69594)Any help on how to recover from this dreadful state, such as adding crypto users back? Thanks for any help!
1
0
8.1k
Jun ’18
Safari favicons don't support updating
I use the Gmail 'unread count' favicon labs option, which updates the favicon to reflect the unread message count in my inbox. It's an essential part of my browsing experience / daily workflow. The icon is correct when the tab is first loaded, but it never updates after that. Chrome and Firefox both implement this feature.
5
7
3.0k
Jun ’18
iOS supported profiles
Which Bluetooth Profiles / services are supported by iOS?I found this:https://support.apple.com/en-us/HT204387I read up the iOS 11.3 will only see the built in pre-defined profiles. Is there a work around?Hands-Free Profile (HFP 1.6)Phone Book Access Profile (PBAP)Advanced Audio Distribution Profile (A2DP)Audio/Video Remote Control Profile (AVRCP 1.4)Personal Area Network Profile (PAN) Human Interface Device Profile (HID)Message Access Profile (MAP)So the Android phones will see the advertising of all kinds of BT / BLE devices, but iPhone does not, unless it was previousely paired by a custom app.Once you "Forget" this device on iPhone, it goes away and will not be seen during scanning.So even a Serial Port dongle with Serial Port Profile is not supported.(SPP), unless it is drive by a custom app?Any help appreciated
2
0
9.1k
Jun ’18
Dynamically resize Annotation's callout
Hi,I've got annotations on a MKMapView and I added a custom view inside the detailCalloutAccessoryView. This custom view performs a request and should present various amount of data depending on the request's reply. Basically, I can show 1 or 2 rows of data.Sometimes, when I touch an annotation and the result is only one row, the callout is not resized. However, if I dimiss the annotation and select it once again, it is rendered correctly.What is the "right" way to make it work? Using a intrinsicContentSize, or calling layoutIfNeeded (already tried, did not work)Thanks for your help.
1
0
954
Jun ’18
Silent Notification
I am trying to implement silent push notification in my application where I need to update some data in the server when silent notification comes. I am using Pushkit and it uses VoIP certificate for silent push notification but the app has been rejectd by Apple saying that "I can't use VoIP" certificate. It seems that apple has rejected it as I don't have any VoIP call functionality in my app. In that case how can I implement silent push notification so that my app gets activated even if it is not runnning(not even in the background) and I can update the server?
4
0
4.1k
Jun ’18
iMessage has merged 2 conversations of 2 different contacts
Hi all,I've 2 separate conversations with 2 different contacts (not the same phone number, nothing in commun).On my MacBook (High Sierra) everything works fine.But on my iPhone X running iOS 12 beta 3 (since beta 2 I've this bug), these 2 conversations are merged.When I write to one or another of these 2 contacts, it displays the 2 conversations in one screen. It merges them.When I try to create a new message, when I enter one of the 2 contacts, I don't know who receive the message, it's not always the same one that receive the message.That's really annoying.Does anyone have this issue too?I filled a bug reporter for that.Regards,Alexandre
21
2
42k
Jul ’18
Major Screen Time Bug
As a parent I was so excited to hear about Screen Time, so much so that I upgraded my sons phone to iOS Beta 2 when it came out.As a parent I setup his access on my phone for his phone and set it so that he could not longer browse the web, watch YouTube etc after 10 PM at night. As before I would go in his room at night and he would be watching videos at 1 am.... (grr)Anyways Screen Time was a blessing until the other night when I heard him up at 1 am and went into his room and there he was watching videos on his phone. For some reason Screen Time wasn't shutting of his app access at 10 PM like it was supposed to.I asked my son how he was able to get around screentime and he told me... (and I consider this a big bug!)When Screen Time kicks in and shuts his apps off, he goes into Settings > General > Date & Time and then turns off "Set Automatically" and then changes the time to a time which he is not restricted by Screen Time, which then unlocks all the apps again.I thought that was smart of him to figure that out and I have not found a way to restrict him from changing his date and time settings.Last night, again he was on his phone after bed time... and I caught him. He said he found an easier way to defeat Screen Time, and he did that by setting the Time to 24 Hour Time, for some reason Screen Time does not understand 24 hour time.I hope this can be fixed by Apple, as if it can't it negates the entire reason for parents to have Screen Time.Thanks,Scott
10
3
24k
Jul ’18
Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.
My Parent app IS signed correctly. I have verified in every screen. Has anyone seen this?Thanks!XCode 10.0 beta 6---------------error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's. Embedded Binary Signing Certificate: Software Signing Parent App Signing Certificate: - (Ad Hoc Code Signed)
8
0
19k
Aug ’18
Critical software update required, but an error was encountered... Stuck
Installed Mojave, and worked fine at first. Did a restart and now I can't get past the following message.It boots,. WiFi setting screen appears, then when I try proceed it says:A critical software update is required for your Mac, but an error was encountered while installing this update.Your Mac can't be used until this update is installed[Shut down] [try again]But it never passes that point.Any thoughts?I can't reinstall high Sierra either.
48
3
73k
Aug ’18
Use a HTTP Proxy with WkWebView
Hi,We have a need in our Swift app for using a HTTP proxy with WKWebView. We want to route all HTTP(S) traffic through a proxy running Privoxy, which strips the http(s) traffic of tracking scripts and ads (for HTTPS traffic we obviously cannot see the content and strip the ads, but we can still block the requests going to hostnames that are known for serving ads). That is basically our product to our costumers. Anonymous (through proxy), ad and tracking free browsing, where no one is monitoring what you are buying or browsing with the purpose of profiling you and selling the information about you to others.With the now deprecated UIWebview, we were able to setup a HTTP proxy through the NSUrlProtocol, but since its deprecated now, continouing using it seems like a risky idea in anything but the short term.We have not found any way, by which we can setup a HTTP proxy in the WKWebView, since it seems to be doing the networking out-of-process of the app... Sources like this post on this forum seems to back this up: https://forums.developer.apple.com/thread/74572.However, Ssome sources seems to indicate that WkWebView was made more user-friendly with IOS 11 and IOS 12 - which is after the above post, so maybe it is possible now. As said, we have tried without luck recently, but maybe we are missing something?We hope someone can help or otherwise just give us some clarity, as the core part of our product depends on this feature, so any help and/or clarity is appreciated.NB:We have considered other options such as using a VPN to send all our data through our own servers. This requires that we change our full infrastructure setup though. And it seems that there is no split-tunneling options in IOS (on non-managed IOS), so if we use the VPN approach, our VPN connection (meant just for some casual browser surfing) will become a general VPN connection on the device. That means we would have to carry the full load of the users' network usage suddenly, which would likely force us to triple our monthly subscription fee to be rentable...Hope to get an answer, and sorry for the slightly long post! (Hopefully it showed we have done our homework and are not asking you to do it for us atleast!).Best,Jonas
13
0
12k
Oct ’18