Quantcast
Channel: User Vlad Grigorov - Stack Overflow
Browsing latest articles
Browse All 42 View Live

Comment by Vlad Grigorov on Google Sign in fails on iOS 13 GM

No, I'm just calling GIDSignIn.sharedInstance().signIn(). If I put a breakpoint in didSignInForUser delegate, I can see the whole stacktrace from signIn through Google's Sign In framework, then into...

View Article



Comment by Vlad Grigorov on Google Sign in fails on iOS 13 GM

As I said, I'm using Firebase 6.8.1 and AppAuth version there is 1.2.0. It's not working for me though.

View Article

Comment by Vlad Grigorov on Crash in UIKitCore:...

Great info, thanks! That crash occurs to a small part of our iPad Pro users with iOS 13.3.1, but those that are affected experience it repeatedly.

View Article

Comment by Vlad Grigorov on Xcode 12 Beta - Cannot find simulator runtime

@dmlebron jenkins-runner.sh is the script that starts Jenkins on macOS, see wiki.jenkins.io/display/JENKINS/Thanks+for+using+OSX+Install‌​er

View Article

Comment by Vlad Grigorov on UIMenuController crashes on macOS Monterey

@JohannesFahrenkrug Unfortunately not yet. I'm also convinced this is a Monterey bug since it works on older macOS.

View Article


Comment by Vlad Grigorov on UIMenuController crashes on macOS Monterey

Thank you very much, it works like a charm! Let's keep fingers crossed we'll pass App Store review

View Article

Comment by Vlad Grigorov on iPhone datepicker instead of keyboard?

Add one more line for iOS 14 and above: datePicker.preferredDatePickerStyle = .wheels

View Article

Comment by Vlad Grigorov on apple-app-site-association app order is not...

@SchiopuEvgheni: No luck, unfortunately. I gave up and implemented the iOS 15 solution in production.

View Article


Comment by Vlad Grigorov on AVSpeechSynthesizer output as file?

Note that the synthesizer instance should not be created locally in the func. It should either be a member of a class or global, otherwise it is released before having the chance to start synthesizing...

View Article


Comment by Vlad Grigorov on Setting NSLinkAttributeName font color

This should be the accepted answer! It works for multiple links with different styles.

View Article

Comment by Vlad Grigorov on attempted to initialize an object with an unknown...

This is the right way to make CocoaPods regenerate the project. This should be the accepted answer.

View Article

Comment by Vlad Grigorov on Ability to shorten UIDragInteraction's long press...

Fixing just the first long press gesture recognizer won't always cut it. You should do forEach instead.

View Article

Comment by Vlad Grigorov on PasteButton shows "Allow Paste" prompt

This is the behavior that you get when you make a custom Paste button that accesses the UIPasteboard. When you use the system PasteButton, then you don't need to allow anything in the settings - paste...

View Article


Answer by Vlad Grigorov for How do I change the pin color of an annotation in...

Since iOS 9:kingsolomonslodge.pinTintColor = UIColor.greenColor;

View Article

Jenkins does not start on macOS 10.12 (Sierra)

After upgrading my macOS to Sierra, when I start Jenkins using launchctl load I cannot connect to localhost:8080. If I call launchctl load again, I see response "service already loaded". There is no...

View Article


Answer by Vlad Grigorov for xcodebuild -exportArchive fails with error...

I was running this command:xcodebuild -exportArchive -archivePath archive.xcarchive -exportPath /my/export/path -exportOptionsPlist options.plistMy project uses manual signing. It turns out Xcode 9...

View Article

xcodebuild -exportArchive fails with error Locating signing assets failed

I'm using command line xcodebuild tool to export .ipa files from Xcode archives. It was working fine up to Xcode 8.3.3. The same setup has stopped working with Xcode 9 beta. Now it fails with this...

View Article


Malformed InfoPlist.strings file

My app upload to the App Store failed with reason: "Malformed InfoPlist.strings file - The file is not in the proper format."My InfoPlist.strings file is 121 bytes in size and it contains only two...

View Article

Answer by Vlad Grigorov for Failed to find or create execution context for...

I got this error after installing Xcode 12 beta. Restarting my Mac did not fix the problem. I had to reinstall Command Line Tools:delete /Library/Developer (note this is the root Library directory, not...

View Article

Get subscription price from a SKPaymentTransaction

My app offers in-app subscriptions. When a subscription is bought or renewed, the app is notified with a SKPaymentTransaction, that contains in-app product identifier. I can query that in-app id to...

View Article

Answer by Vlad Grigorov for I can't get this simple LLDB alias to work

It seems arguments (%1, %2, etc) doesn't work to alias an expression. There is a workaround by using a regular expression instead:command regex ps 's/(.+)/print [self %1]/'It makes an alias ps for the...

View Article


Answer by Vlad Grigorov for Custom Keyboard crash shared-library-event...

My app uses PLCrashReporter lib for collecting crash logs from users' devices. If I initialize PLCrashReporter with signal handler type Mach like this:[[PLCrashReporterConfig alloc]...

View Article


Answer by Vlad Grigorov for Xcode 10: A valid provisioning profile for this...

Open Keychain Access on your Mac and delete the old expired Apple Development certificates. This solved the issue for me.

View Article

Answer by Vlad Grigorov for How to customize the background color of a...

The best approach I've found so far is to set a background view of the cell and clear background of cell subviews. Of course, this looks nice on tables with indexed style only, no matter with or...

View Article

Answer by Vlad Grigorov for Disable warnings in Xcode from frameworks

If the warnings come from the included library or framework header files, you can wrap that include statements like this:#pragma clang diagnostic push#pragma clang diagnostic ignored...

View Article


apple-app-site-association app order is not respected

I have a few apps associated with the same domain. They are listed in the apple-app-site-association file in a specific order to make sure each universal link is opened by the most suitable app...

View Article

Answer by Vlad Grigorov for What is a typedef enum in Objective-C?

Apple recommends defining enums like this since Xcode 4.4:typedef enum ShapeType : NSUInteger { kCircle, kRectangle, kOblateSpheroid} ShapeType;They also provide a handy macro NS_ENUM:typedef...

View Article

xcodebuild -exportArchive: exportOptionsPlist error for key 'method':...

I'm using command line xcodebuild tool to export ad-hoc distribution ipa file out of my archive like this:xcodebuild -exportArchive -archivePath /path/Archive.xcarchive -exportPath /path...

View Article

Answer by Vlad Grigorov for 'showsPageRange' is deprecated

Because page range is always shown, there is no need for this property showsPageRange anymore. It is safe to remove this line from your code.

View Article



Answer by Vlad Grigorov for How to start drag immediately using...

Decrease the long-press duration right after adding the drag interaction:myView.gestureRecognizers?.compactMap({ $0 as? UILongPressGestureRecognizer}).forEach { recognizer in...

View Article

Answer by Vlad Grigorov for UIButton doesn't work in child view controller

I had the same issue. In my case the buttons on the child view controller did not work because I had forgotten to add that view controller as a child to its parent view controller.In other words, I...

View Article

Answer by Vlad Grigorov for Capture part of rendered SwiftUI view as image

I got a similar problem - I get an image from the Photo library and then try to render it using view.layer.render(in: context), however, no image appears in the output.I fixed my issue by making sure...

View Article

Answer by Vlad Grigorov for OnLongPressGesture release action (SwiftUI)

I needed similar functionality but I could not achieve it with the pressing parameter. I solved it by sequencing 2 gesture recognizers:struct MyView: View { @GestureState var isPressing = false...

View Article


Answer by Vlad Grigorov for ignoring duplicate libraries -lc++

This is a new warning added in Xcode 15. It is not critical and it is safe to be ignored. It seems they won't address it in Firebase Crashlytics anytime soon:...

View Article

PasteButton shows "Allow Paste" prompt

I added a PasteButton to my SwiftUI app, but it still shows the "Allow Paste" prompt when tapped. After fighting this problem for half a day without success, I created a new SwiftUI app in Xcode and...

View Article

UTF8 to/from wide char conversion in STL

Is it possible to convert UTF8 string in a std::string to std::wstring and vice versa in a platform independent manner? In a Windows application I would use MultiByteToWideChar and WideCharToMultiByte....

View Article


Answer by Vlad Grigorov for SwiftUI - Detect when global position of a View...

var body: some View { GeometryReader { geometry in Text("Hello") .onChange(of: geometry.frame(in: .global)) { newFrame in // do something with newFrame } }}

View Article


Enforced App Check on my app and on my cloud functions does not prevent calls...

I use Firebase Cloud Functions in my iOS app. I want to protect them with Firebase App Check. I did all of the steps from "Get Started" guide - included App Check framework, implemented the code needed...

View Article

Comment by Vlad Grigorov on Callable Cloud Function error: Response is...

I would not recommend this - you need to make your function public and won't be able to use AppCheck, meaning that anyone on the internet can call it.

View Article

Answer by Vlad Grigorov for Enforced App Check on my app and on my cloud...

I need to use "callable" Cloud functions both on the client and on the backend for AppCheck to work. I think this is not stressed enough in the documentation.On the clienttry await...

View Article
Browsing latest articles
Browse All 42 View Live


Latest Images