Category "xcode"

Make a UIButton programmatically in Swift

I am trying to build UIs programmatically with Swift. How can I get this action working? override func viewDidLoad() { super.viewDidLoad() // Do any add

error: call to implicitly-deleted copy constructor of 'std::__1::unique_ptr<A, std::__1::default_delete<A> >'

I'm constructing an object that takes a std::vector<std::unique_ptr<A> > as an argument. The constructor is defined like this class B { std::ve

ADB equivalent for iOS device

I was looking some instrument like Android ADB in order to debug iOS devices. I've found iOS instrument, a tool of the XCode that is able to debug app on mobile

Apple Transporter verification strange errors

When trying to verify an ios app using Transporter before sending to store, it spits out 8 strange errors/issues that I have no idea where to start from And in

How to change the color of `color set` programmatically in iOS?

There is any way to change the color of color set programmatically. I use theme color in Xcode and now I want this color come from API. Anyone can solve my

Cocoapods won't work on new m1 mac Big Sur Xcode

I am getting rid of my 8 year old mac, and am switching to the new m1 macbook air, but none of my old projects are running. I have installed cocoapods succesful

Swift: Triggering sound effects during a timer

I've created a super simple count down application. You press a button, and the count down runs. The end result calculating looks like this: 10.0 9.999 9.998 .

Xcode 12.3 keeps freezing

I updated to the latest AppStore release of Xcode (12.3, 12C33). It worked fine for an hour or two. After that it started to constantly freeze after being open

xcodebuild error: "requested but didn't find extension point with identifier ..."

I'm using Xcode 13.3.1. I'm trying to build a flutter application in Android Studio. It failed with the following error. To make it dead simple I tried just run

ERROR: Apple silicon Macs support issue. The app has LSApplicationLaunchProhibited set to true. This is not supported on Mac, How to fix it?

I got this error while trying to submit a sticker pack to the App Store: WARNING ITMS-90863: "Apple silicon Macs support issue. The app has LSApplicationLaunch

SWIFT: Button Title changing back to original title unwarranted

So I have the following code which executes upon tapping one side or another of my segmented control: @IBAction func logInOrSignUpIndexChanged(_ sender: UISegme

Invalid bundle structure - The app may contain only one executable file.

This question is similar if not identical but there is no solution. I've looked inside the archive and there's only one executable, so I am at a loss as to how

how to resolve the iOS deployment target issue in flutter

I am facing this issue related to IPHONEOS_DEPLOYMENT_TARGET while build the flutter application for the ios platform repeatedly, I am not able to understand h

Xcode 13.3 and 13.2 build for simulator but not for real device

I recently had my phone updated to iOS 15.4 and so I need to update Xcode to 13.3. I ran into a problem where my code does build on x86_64 simulator but the sam

Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1

When I installed cocoa pods I got this message. The cocoa pods downloaded is in version 1.10.1. Ive tried to use the command they give but this appears: Ignorin

iOS Document Picker crashes when picking a PDF on a real device

I try to create a Document Picker for my iOS app. Here is my code (I wrapped the UIDocumentPickerViewController in my SwiftUI View, with UIViewControllerReprese

Use of undeclared identifier 'FIRApp'

After import the Firebase.h file i wrote "[FIRApp configure]" on "- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *

Is there some way to stop XCode from showing errors and prompts while I type the code?

Isn't there some way by which I get to know the errors only after I have compiled the program? I don't want to XCode to prompt me for semi colons as I am a stud

Flutter iOS distribution fails with No architectures in the binary

I've been building a flutter application and its come time to release to internal testers and I've been running into issues. The error I get is this ERROR ITMS-

How do I run an iPad Simulator in Xcode?

I am trying to run an iPad simulator on Xcode, but currently I only have one option when I go to Xcode > Open Developer Tool > Simulator, which launches t