Category "ios"

WCSession "isComplicationEnabled" always returns false in iOS 15.4

Since I've updated my test device (iPhone 12 mini) to the latest iOS version 15.4, the complications of my companion app on the watch (watchOS 8.5) do not recei

Class is implemented in both. One of the two will be used

I have a project that has a dependency (installed via CocoaPods) using SocketRocket and have imported a static library from HeapAnalytics. Apparently the HeapAn

How do I refactor my code to call AppDelegate on the main thread?

I recently started migrating my project from Swift3/Xcode8 to Swift4/Xcode9. My app crashes at runtime because the main thread sanitizer allows access to UIAppl

In iOS (swift) app, registration of a second Firebase app can't receive remote notifications

I'm having two Firebase projects (on se same account, but could be two different accounts) and each project have an iOS app registered with the same bundle ID (

How to count occurrences of an element in a Swift array?

I've seen a few examples of this but all of those seem to rely on knowing which element you want to count the occurrences of. My array is generated dynamically

How to improve the display of variables which are objects in the xcode 4.5 debugger

I'm using Xcode 4.5 on Mac with the iOS simulator to write iPhone apps. When I hit a breakpoint in the debugger, I use the "Auto" to look at variables. The prob

Logging the class name of all UIViewControllers in a project

We have received a HUGE project from outsourcing that we are trying to "repair". There are hundreds of view controllers within the project. Our goal is to easil

Xcode won't pause at this breakpoint because it has not been resolved

Shortly after updating to Xcode 13.2.1 I started seeing some weird behaviour of breakpoints. When I run an app (in a simulator) some of my breakpoints change th

Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the dylib search path | Xcode 13.3

I am submitting a .xcarchive to the App Store via Xcode 13.3 but I keep on getting the following email error: ITMS-90562: Invalid Bundle - One or more dynamic l

How to Remove UIMenuController Default Items In Swift

I'm trying to remove the items Look Up & Share... from the UIMenuController. How would I specifically remove the two and keep my custom one. Here is what I'

Regex multiline matching

I was wondering if it's possible to make a regular expression to find all of the text that is in between the following two strings: mutablePath = CGPathCreateM

update an app which is pending developer release

I have an app which is in pending developer release (approved by Apple). The app was never released at all. Now I wanted to submit an update. Therefore I increa

KeyboardAvoidingViev not working on iOS with react navigation header and material bottom tabs?

You find a minimal repo here and a minimal snack available here. They both show the issue nicely with very minimal code. I found lots of questions online about

it possible to Pass Data with popViewControllerAnimated?

I came across an interesting problem, i have main ViewController let's call him MainVC with navigationController and i am doing performSegueWithIdentifier from

Xcode does not accept provisioning profile

I have created a provisioning profile with e.g. Siri, app groups and imported it into Xcode. Now Xcode says that: provisioning profile "" doesn't support the "

how to overload an assignment operator in swift

I would like to override the '=' operator for a CGFloat like the follow try : func = (inout left: CGFloat, right: Float) { left=CGFloat(right) } So I cou

expo-av Video not showing up on iOS but working on Android

Video and video player is loading fine on Android, but on iOS nothing is rendered. I'm using Video from expo-av. I tried adding height and width to the view , t

WKWebView not showing Navigation Bar

I have a view in SwiftUI that shows a WKWebView which is passed to the main ContentView using the UIViewControllerRepresentable class, implemented following the

iOS app is crashing after kill and relauch using Adobe xcframeworks

I have added adobe AEPCore.xcframework in my application and kept it as "Do not embed" in framework setting. Screenshot: When i kill and relaunch the applicati

How to return data from WKWebView to JavaScript

I am developing a hybrid Android and iOS app using WebViews. However, I am struggling to return data from iOS app back to my Javascript. Below is how I setup t