Build, test, and submit your app using Xcode, Apple's integrated development environment.

Xcode Documentation

Post

Replies

Boosts

Views

Activity

I can't delete app from organizers. It's coming back.
I defined an iTunes account to Xcode, and all applications on that account started to appear in organizer. I removed the account from Xcode and I deleted these path. But It's coming back.~/Library/Developer/Xcode/Products/~/Library/Developer/Xcode/Archives/I tried it with the terminal. it didn't happen again.rm -fr ~/Library/Developer/Xcode/DerivedData/Please help me.
1
0
950
Apr ’18
How do you delete a Signing Certificate from Xcode?
I have found multiple forum postings where people have asked for how they can delete or remove a Signing Certificate. Unfortunately none of them are helpful. Some respond with non-helpful questions like "Why do you want to delete your Signing Certificate?" I'll tell you why I want to delete it. It's mine and I don't want it any more. I want it gone! Others have responded to similar questions by saying to just create a new Apple ID. I don't want to do that either. I like my world clean and orderly without junk laying around, so that answer is not acceptable either. I want clear instructions on how to delete or remove a Signing Certificate. Interestingly, the option to delete it is there but it's grayed out. Why have it there if you can't delete it? Can someone please help me with this?
4
1
24k
Jun ’18
Xcode add header search path
Using XCode9, I have created a C-command line project and added an open source framework (gstreamer) in adddition to the corefoundation framework to my project.The C-program uses the header files from gstreamer which are not found by the compiler causing an error. I cannot see where I can add the header path to my project. I have checked the Framework and Xcode lists in the Header directory all header files.The following line causes the compiler error:#include <gst/gst.h>Asking for advice.gMichael
4
0
23k
Aug ’18
Xcode does not recognize iphone
Xcode 9.4.1 on MacOS 10.13.6 does not recognize iphone (iOS 11.4.1), hence "No devices connected to 'My Mac'".Even Window -> Devices and Simulators, there are no devices.But the iphone device is recognized on USB device list.Could you suggest how I can fix this problem or what I did wrong?Also, I have noticed that the system report of MacOS says the version of the iOS on the USB is 7.0.2.But the iOS version is iOS 11.4.1. Is this normal?Thanks.
13
0
41k
Aug ’18
Xcode 10.0 diagnosticd high CPU w/iPhone XR Simulator
Hi All,I've got the new 2018 MacBook Pro 15" (15,1) running High Sierra 10.13.6 and the Xcode 10.0 (10A255) release version and am having the following recurring issue.I've got an iOS project that I'm running in the simulator. In this case I'm actually running XCTests. The total tests run for about 4 seconds.At this point, Xcode looks like it's idle, but my fans spin up to full speed and Activity Monitor shows me: diagnosticd 170% cpu diagnosticd 82% cpu notifyd 78% cpu SpringBoard 78% cpuSometimes it shows diagnosticd higher like 350% CPU, but always diagnosticd is the highest.The computer doesn't seem to be doing anything. Both Xcode and Simulator are responsive.If I close the simulator, these disappear and the fans spin back down.This happens 100% of the time with the iPhone XR simulator, but doesn't seem to happen at all with any of the others, including the XS and XS Max.Anyone else seeing this?
5
0
5.1k
Sep ’18
Can't type in input in Xcode 10.1 using C++
I'm new to Xcode and programming in general, and I'm having an issue with Xcode. After I made my code and built it successfully the first time, I can type in input in the bottom console no problem. But then I made a few tweaks and went ahead to build it again. It did successfully build but this time I can't type in anything in the bottom console. So I have to close Xcode and reopen it again everytime I want to make any tweaks and it's getting annoying. Would love to know how to fix this. Thank you in advance.
10
1
5.0k
Nov ’18
How do I downgrade the simulator in Xcode?
My app is working as expected in the simulator on iOS 12.1, but not on my iOS 11.x device, and it is just a layout issue. I'm not aware of any major changes in layout constraints from 11 to 12, so I'm perplexed... I upgraded an older device from iOS 10 to 12 and my app layout works on it, so it seems something changed between iOS 11 and 12 regarding layout, but I don't know what that is...How can I get a simulator running iOS 11.x to debug? I'll start debugging on my actual 11.x device, but I would also like to know how to get a simulator running older iOS versions? xcodebuild -showsdks says I only have 12.1 iphone/simulator 12.1 -- how do I run 11.x in the simulator, or older iOS versions in general in the simulator?
11
2
39k
Nov ’18
Need to capture user activity like call, text, and app usage without reading the content.
Reading sqlite databases in the OS library can be one option but does it require Jailbreaking?How does spyware like Cocospy work on iOS devices? Note: I'm going to capture data for R&D with user consent, visible running app and not as spyware running in the background.I'm new to iOS development and any leads, references will be much appreciated.
2
0
1.4k
Nov ’18
"a software update is required to connect to iphone" fails to install
Reformatted harddrive on my MBP and installed latest versions of XCode 10.1 and macOS Mohave 10.14.1 and started up XCode, opened my project and connected my iphone and I get a prompt to install software update ... select install and it fails with:"Installation Failed. Can't install the sofwatre becuase it is not currently available from the Sofwatre Update server."Running latest iOS on my iphone X ...What now?Can't seem to find any solutions other than issues with beta software ... is the server down today?cheers-m
2
0
1.7k
Nov ’18
How do you chain CIFilter
In Apple's documentation it says this:"This method, though convenient, is inefficient if used multiple times in succession. Achieve better performance by chaining filters without asking for the outputs of individual filters."That confuses me though because I don't know how to link them together without getting the output. For example, this is my method to apply a TiltShift filter, based on the instructions from Apple's docs. When I perform the gradient filter, I have to take the outputImage of that to pass into the next filter. What's the right way to be doing this? override public var outputImage: CIImage? { guard let inputImage = inputImage else { return nil } let clamped = inputImage.clampedToExtent() let blurredImage = clamped.applyingGaussianBlur(sigma: inputRadius) var gradientParameters = [ "inputPoint0": CIVector(x: 0, y: 0.75 * inputImage.extent.height), "inputColor0": CIColor(red: 0, green: 1, blue: 0, alpha: 1), "inputPoint1": CIVector(x: 0, y: 0.5 * inputImage.extent.height), "inputColor1": CIColor(red: 0, green: 1, blue: 0, alpha: 0) ]; guard let gradientImage = ciImage(from: "CILinearGradient", parameters: gradientParameters) else { return nil } gradientParameters["inputPoint0"] = CIVector(x: 0, y: 0.25 * inputImage.extent.height) guard let backgroundGradientImage = ciImage(from: "CILinearGradient", parameters: gradientParameters) else { return nil } let maskParameters = [ kCIInputImageKey: gradientImage, kCIInputBackgroundImageKey: backgroundGradientImage ] guard let maskImage = ciImage(from: "CIAdditionCompositing", parameters: maskParameters) else { return nil } let combinedParameters = [ kCIInputImageKey: blurredImage, kCIInputBackgroundImageKey: clamped, kCIInputMaskImageKey: maskImage ] return ciImage(from: "CIBlendWithMask", parameters: combinedParameters) } private func ciImage(from filterName: String, parameters: [String: Any]) -> CIImage? { guard let filtered = CIFilter(name: filterName, parameters: parameters) else { return nil } return filtered.outputImage }
5
1
2.9k
Feb ’19
Use Siri in Simulator
I am trying to test a Siri Intent I put in an app, but when I run simulator it doesn't seem to be able to pick up my voice. I click Siri and speak but nothing happens and the sound wave remains level. Are there settings I need to change to allow for Siri in Simulator to pick up audio? I'm running version 10.2 of simulatorThanks!
3
1
8.2k
May ’19
Change IOS Simulator directory.
Hi there,Xcode takes a lot of free space on my SSD therefore I installed it on my external HDD.But when I tried to download any of iOS simulators in Xcode preference I noticed that it was still downloaded on my SSD.Could you please tell how can I change iOS simulator directory? In terminal, anywhere else?
6
0
4.1k
Jun ’19
Cannot preview SwiftUI
I am running Catalina (10.15) with XCode11. After creating a new project and selecting the option to Use SwiftUI, the file opens, but i get an error message in the preview window;'Cannot preview in this file -- active scheme does not build this file. 'the info button says 'Select a scheme that builds a target which contains the current file, or add this file to a target that is built by the current scheme.'i've tried opening numerous new projects, with and without unit tests, but none of them allow it to be previewed. I did see on Twitter that I'm not alone in seeing this issue. Any ideas on steps to troubleshoot it? Thanks all.
21
1
47k
Jun ’19