Questions tagged [ios]
iOS is the mobile operating system running on the Apple iPhone, iPod touch, and iPad. Use this tag [ios] for questions related to programming on the iOS platform. Use the related tags [objective-c] and [swift] for issues specific to those programming languages.
224,340
questions with no upvoted or accepted answers
52
votes
3
answers
2k
views
How to callback NSStreamDelegate with NSStreamEventOpenCompleted?
I have been working on a NSStreamDelegate, I have implemented call back, I have initialized the input and output stream ilke this...
CFReadStreamRef readStream;
CFWriteStreamRef writeStream;
...
46
votes
1
answer
2k
views
What is the ":ABPerson" string in CNContact identifier?
My iOS application checks the contacts from time to time and imports a new one to its own database.
I checked that contact and it already exists by the identifier field, that is usually filled by ...
44
votes
0
answers
2k
views
What is `Can't find variable: loadHomepageTiles` error on iOS 11.3
I recently came across this error message: Can't find variable: loadHomepageTiles on our error logs from one of our angularjs 1.6 mobile applications.
This seems to only happen on iOS devices running ...
42
votes
2
answers
1k
views
iOS SecTrustRef Always NULL
I'm trying to connect an iOS app to a Windows C# sever using TLS over TCP/IP.
The TLS connection is using untrusted certificates created from an untrusted CA root certificate using the makecert ...
41
votes
2
answers
2k
views
AVPlayer frame animation
I am developing an application that include functionality to play video with per-frame animation.
You can see an example of such functionality.
I already tried to add CAKeyFrameAnimation to sublayer ...
39
votes
0
answers
8k
views
iOS 13 - silent push notifications are no longer reliable
iOS 13 changes:
Change 1: In iOS 13 Beta 6, a silent remote notification (AKA Background Notification) with priority 10 is no longer handled by the OS and dropped. This was documented in the past but ...
39
votes
0
answers
4k
views
secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
In two applications which have WatchKit app extensions, I receive the following error in the device log more than ten times on startup.
secTaskDiagnoseEntitlements MISSING keychain entitlements: no ...
39
votes
2
answers
1k
views
Parse error codes 209 and -34018
I have spent several hours learning user management on Parse, thinking it would be easy considering it's been an established service for so long.
There is poor documentation around 'automatic user' ...
38
votes
1
answer
1k
views
iOS crash at CFAllocatedReferenceCountedObject
My app frequently crashes with the following information:
0 CFNetwork CFAllocatedReferenceCountedObject::_retainable_hash(void const*)
1 CoreFoundation _CFBasicHashFindBucket + 164
2 ...
38
votes
2
answers
784
views
What causes visual glitches with Xcode 9's iOS Simulator and how can I fix them?
When running applications on the simulator with Xcode 9, I regularly experience a handful of visual glitches, which include red device identifier labels and content that duplicates itself and leaves ...
38
votes
1
answer
1k
views
debugserver died with an exit status of 0x00000000
I was running an app on Xcode with the iPhone 6 stimulator using the latest iOS 10. And after some time the app crashed with the following message:
debugserver died with an exit status of 0x00000000
...
36
votes
1
answer
2k
views
How can I skip the first occurrence of a repeating UNCalendarNotificationTrigger?
Say today is a Monday and it's 1 PM. I want to schedule a weekly local notification from my iOS app starting today at 2 PM. I'd do this:
NSDateComponents *components = [[[NSDateComponents alloc]init]...
35
votes
1
answer
2k
views
GoogleAnalytics.Property 'parameters' on Entity 'GAIHit' is using nil or an insecure NSValueTransformer
After updating the GoogleAnalytics pod, my app started crashing with the following error:
CoreData: fault: One or more models in this application are using
transformable properties with transformer ...
35
votes
0
answers
3k
views
Keyboard cannot present view controllers warning
When tapping the "Passwords" button at the top of the keyboard for login/password Autofill, this warning prints to the console log:
Keyboard cannot present view controllers (attempted to present <...
33
votes
0
answers
2k
views
Event Data Collected by Firebase Analytics DebugView Is Incomplete
I'm sending events to Firebase Analytics and find out that part of the event parameters is missing in DebugView.
Below are two identical events sending to Firebase and I've checked that all the ...
32
votes
0
answers
4k
views
Add Xcode Developer Account from the Command Line
I am trying to use xcodebuild -allowProvisioningUpdates on a machine that I only have access via the command line (Azure Devops macOS Hosted Machine).
Unfortunately, according to man xcodebuild in ...
32
votes
0
answers
454
views
STGenericIntentDateRange undefined in Xcode 7 Beta
I get the following message in the console when running my app after upgrading to the latest Xcode 7 Beta:
objc[51750]: Class STGenericIntentDateRange is implemented in both /Applications/Xcode-beta....
32
votes
0
answers
680
views
Why does KIF UIView:dragFromPoint:toPoint not result in touchesEnded:withEvent being called on my view?
This question is about the iOS acceptance testing framework KIF.
I have a test step which uses the KIF extension to UIView dragFromPoint:toPoint. I have a custom view class which implements ...
32
votes
1
answer
988
views
Instagram /tags/\(hashtag)/media/recent endpoint not returning pagination?
I've been trying to get this to work for probably 6 hours now to no avail, read every stackoverflow question I could find on the topic.
I'm trying to get 100, 200, or maybe 500 photos from a single ...
31
votes
0
answers
785
views
AudioUnit: Error reported by mediaserverd - "Error 'what' getting client format for physical format"
I have a VOIP application that uses AudioUnit. On iOS 9, I see an error message that says the following. I do not see this in iOS 8:
mediaserverd[43] : 13:16:38.880 ERROR: [0x1f72d000] >va>
...
30
votes
0
answers
8k
views
Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
I have an ionic app and I'm trying to run this:
ionic cordova build ios
Compilation succeeds, but I see these errors just before it succeeds:
RegisterExecutionPolicyException /Users/moblizeit/...
30
votes
0
answers
3k
views
BoringSSL nw_protocol_boringssl_get_output_frames ... get output frames failed, state 8196 log confusion
We currently have two use cases for our objective-c application that connects to a node.js server. The first case is having our application hosted on a client server where we have our SSL cert ...
28
votes
3
answers
1k
views
Xcode Server ibtool Build Failures
I have been investigating using Xcode Server for CI. I've worked through some of the problems, but now have a problem that has stumped me.
The builds seem to work alright, but then hangs during the ...
28
votes
1
answer
2k
views
UIActivityViewController thinks my jpg is video when share by file URL
I have jpg files saved in the Documents directory that can be shared from a standard UIActivityViewController. All activity items (including Save Image) work as expected, but when Save Image is tapped,...
28
votes
2
answers
2k
views
PBRequester failed with Error -1001 "bad URL" for Apple Maps download on simulator, but not on device
The first time I try using geocodeAddressString:inRegion:completionHandler after a reset of the iOS simulator I get this error:
PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1000 "...
27
votes
0
answers
5k
views
How to use modular headers configuration for pod dependency of my pod framework?
My podspec looks like this:
Pod::Spec.new do |s|
s.name = 'flutter_vlc_player'
s.version = '0.0.3'
s.summary = 'A new Flutter project.'
s.description = <...
26
votes
0
answers
5k
views
kCFPreferencesAnyUser with a container is only allowed for System Containers
I have an app that shares preferences with a Today extension, following the approach described in many places (like this), i.e., creating and registering an App Group, then loading preferences:
if ...
26
votes
2
answers
2k
views
UI unit testing stuck on "Waiting for accessibility to load"
I'm getting into UI unit testing, and for a couple days now the UI unit testing refuses to start properly. I setup a simple test to click a button, and when I run it, it hangs starting the app before ...
26
votes
1
answer
512
views
Difference behaviour of didReceiveRemoteNotification between APNS production and development environment
I have noticed a different behavior of didReceiveRemoteNotification between APNS production and development environment.
In development mode (build using development provisioning profile) this method ...
26
votes
2
answers
2k
views
How can I save the fatalError message to the iOS crash log?
I have an iOS application written in Swift 2 in Xcode 8.2.1, that's built for iOS 10.2.
I've had a number of crash reports from TestFlight and despite symbolication, none of the crash logs show any ...
24
votes
0
answers
2k
views
Implementing PencilKit with PDFKit
My app shows PDF files using the PDFKit and lets users make annotations on pdf files through my own code using UIKit and CoreGraphics frameworks. Since I would like to use the PencilKit framework to ...
24
votes
0
answers
9k
views
Required client entitlement required?
I have a wkwebview and I selected the checkbox 'inline playback' which is suppose to make any video in the wkwebview to not autoplay and stay in the webpage and not go full screen.
This worked fine ...
23
votes
1
answer
4k
views
Firebase & iOS 14 > Will dynamic links tracking and campaigns continue to work?
As most of you are probably aware, iOS 14 will basically put an end to app acquisition tracking as we know it.
Here are two great articles that explore the issue in length:
The App Attribution ...
23
votes
9
answers
4k
views
Selection is not possible when UICollectionView is nested in UITableVIew
I have a UITableView where each cell contains a UICollectionView.
I can scroll the UITableView vertically and scroll the nested UICollectionView horizontally, however I cannot select a ...
22
votes
0
answers
10k
views
Xcode 14.1: Error: UINavigationBar decoded as unlocked for UINavigationController, or navigationBar delegate set up incorrectly.?
What does it mean ? I haven't added UINavigationBar in my project. UINavigationController is embedded through editor -> Embed In -> Navigation Controller.
[Assert] UINavigationBar decoded as ...
22
votes
1
answer
797
views
iOS 11 simulator multitasking bar
How to trigger the multitasking bar on iOS 11 simulator? I tried standard double
Cmd + Shift + H
on both iPhone 8 and iPhone X simulators, but it doesn't seem to be working anymore.
Edit: tried ...
22
votes
0
answers
7k
views
Core Data - fetch-response is unable to open the file
I'm getting a lot of these prints in my console while running my application from Xcode 6 in my iPhone 6 with iOS 9 beta 5:
INFO: fetch-response is unable to open the file /private/var/mobile/...
22
votes
2
answers
2k
views
FocusState changes in SwiftUI cause the keyboard to bounce
I'm making a sign-in interface for iOS in SwiftUI. The user should be able to easily switch from the username text field to the password text field by tapping the "next" button on the ...
21
votes
0
answers
9k
views
Error Domain=NSItemProviderErrorDomain Code=-1000 "Cannot load representation of type public.jpeg"
I am using PHPickerViewController for image picking from the photo library instead of UIImagePickerController. When I use this code I couldn't get the image from already picked image.
Error Domain=...
21
votes
3
answers
3k
views
Flutter iOS How to show download notification success?
I am downloading a file using FlutterDownloader.
final taskId = await FlutterDownloader.enqueue(
url: url,
savedDir: (await getApplicationDocumentsDirectory()).path,
showNotification:
true,...
21
votes
1
answer
932
views
LinkedIn in-app browser forcing video to fullscreen on iPhone
We are using LinkedIn to share a link to an HTML5 interactive video. When the link is shared, by default it opens in LinkedIn's browser inside the app. The problem is that when the user starts playing ...
21
votes
0
answers
367
views
Metal crash upon adding SKSpriteNode to SKEffectNode
> -[MTLDebugRenderCommandEncoder setScissorRect:]:2028: failed assertion (rect.x(0) + rect.width(1080))(1080) must be <= 240
I am getting this crash when adding a simple SKSpriteNode to a ...
21
votes
0
answers
938
views
Custom UTI does not work for iMessage in iOS 10
I defined and used a custom UTI type for my iOS app for iOS 9. Now, after using XCode 8 and iOS 10, I cannot "open" the file, if it is sent via iMessage. If I tap on the icon, nothing happens, ...
20
votes
0
answers
13k
views
What are the specific risks from Developer Mode on iOS?
Because iOS simulator no longer supports BLE (I think), I sometimes need to test my internal distribution app (using Expo development server) on a hardware device. But since iOS 16, in order to do ...
20
votes
0
answers
3k
views
Cell should never be in update animation (UICollectionView crash)
I've got Cell should never be in update animation crash in UICollectionView reported by crashlytics
This crash happens only for users on iOS 14. It wasn't noticeable when the application used SDK iOS ...
20
votes
0
answers
4k
views
How Firebase Analytics calculates (unique) Users
Since I noticed a misalignment between the count of Users and the count of User IDs on Google Analytics (for mobile apps), I need to understand technically how Google counts Users in mobile apps. ...
20
votes
0
answers
4k
views
Losing precision when passing numbers through the JSONDecoder in Swift 4
I'm sending some JSON data to our server and in the process having issues when encoding certain values with the new Swift 4 JSONDecoder. Take this playground example:
import Foundation
struct ...
20
votes
0
answers
6k
views
iOS Swift - How to use rectOfInterest correctly (barcode scanner)
I have an iOS App which scans a barcode.
Now I wanted to define a specific scan area. For this purpose I am using the rectOfInterest property and metadataOutputRectOfInterest method.
The problems I ...
20
votes
0
answers
1k
views
Fabric stuck at "We're processing the uploaded dSYM(s). Please check back in a few minutes for the status."
I am using fabric to monitor crash on my iOS apps. I got an error that I am missing dSYM file. Using the information give in subtitle xarchives in the guide https://docs.fabric.io/ios/crashlytics/...
20
votes
1
answer
1k
views
Video file could not be opened due to movie's file format isn't recognized
I am trying to create a video file from images given by image magick library. After applying some effects one by one like opacity difference ,it iscreated successfully but the Quick time player gives ...