Category "xcode"

How to create a delay in Swift?

I want to pause my app at a certain in point. In other words, I want my app to execute the code, but then at a certain point, pause for 4 seconds, and then cont

Apple Push Service certificate is not trusted

I have recently created an Apple Push Service certificate on my M1 mac mini. In the Keychain, it says the certificate is not trusted. I have installed the Deve

Couldn't locate otool-classic while running ipatool

Running ipatool errors out. xcrun ipatool ~/app.ipa --output=foo --info --json=foo/ipatool.info.json It prints the following error "alerts": [ {

Where is the "Canvas" option in Xcode?

I'm new to Xcode and when reading a tutorial, it tells me to do this in my storyboard file: First, click on the view controller and go to Editor > Canvas &g

Xcode 13 on Catalina

I downloaded Xcode 13.2.1 from Xcode Releases but as it is not supported for macOS Catalina I cannot install it. Are there any ways around this, other than to f

How to disable SwiftUI animations in UITests?

I tried to disable animation in UITests with the following code: let app = XCUIApplication() app.launchEnvironment = ["DISABLE_ANIMATIONS": "1"] I also tried

Cocoapods Warning - CocoaPods did not set the base configuration of your project because because your project already has a custom config set

After I execute a pod install at the base of my project, I get the following error: CocoaPods did not set the base configuration of your project because bec

Importing Project-Swift.h into a Objective-C class...file not found

I have a project that was started in Objective-C, and I am trying to import some Swift code into the same class files that I have previously written Objective-C

React Native - FBReactNativeSpec Command PhaseScriptExecution failed with a nonzero exit code

I am using a MacBook Pro with M1 chip MacOS Big Sur Xcode Version 13.2.1 node v14.17.5 I wanted to follow this tutorial to set up a new React Native project cal

CLLocationDegrees to String variable in Swift

Given that the code var latitude = userLocation.coordinate.latitude returns a CLLocationDegrees Object, how can I store the value in to a variable so that I

How to run Xcode Build Server under Rosetta?

I have a configured Xcode Server on an M1 mac mini. Due to some issues which are outside of the scope of the question, I have to run the server so it builds the

SwiftUI customized text field in OSX

I am creating a edit view in SwiftUI for Mac OSX. A user can change his profile. At the moment I am using default Text() elements to view his current values/set

Swift - Remove " character from string

I have a string which is "Optional("5")". I need to remove the "" surrounding the 5. I have removed the 'Optional' by doing: text2 = text2.stringByReplacingO

iPhone constantly disconnecting while working in Xcode

I've been developing an app for a while and I haven't had any problems running the app on the device.. now a few days ago, whenever I connect the iPhone, it pla

get a error msg when test myapp on ipod

I use xcode4 develop a base map app , i set a region use MKCoordinateRegionMakeWithDistance like follow: self->map.hidden=NO; CLLocationCoordinate2D loc

Minimum Xcode version to upload to App Store

I currently use Xcode7 and I have to continue using it for compatibility reasons. Should I expect that Xcode 7 will be incompatible with the App Store soon?

ARKit: How to add button to ARView in storyboard?

I am brand new to ARKit (and a novice in swift) but I am trying to create a basic AR app. I am following this tutorial in which a simple scene is created essent

XCode giving (“CFBundleExecutable” is not specified)

I'm trying to build and run a flutter app on my iPhone or iOS simulator. When I do a build, the build succeeds but it's giving me: Unable to install “Runn

How to make a UIButton looks like a email link button?

I am doing a contact us page. Here I want to add a email link and also I want to open the iPhone's default mail app while clicking that link. I don't know how t

Simulator slow-motion animations are now on?

A while ago I was experimenting, trying to see if i could get navigation items to animate and scroll between each other. I don't know if this is related but su