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

Xcode Documentation

Posts under Xcode tag

3,092 Posts
Sort by:
Post not yet marked as solved
8 Replies
637 Views
I have added new user and they recive the welcome email and respond but allways show as pending in the admin console.
Posted
by
Post marked as solved
4 Replies
9.4k Views
I need to install XCode on Mavericks. What is the last version of XCode that is supported on Maverics and how do I get it? Current version of XCode requires Yosemite and unfortunately don't whant upgrade to it with my iMac for now ?Which version, additional files do I have to download.By the way, I'm not a pro.
Posted
by
Post not yet marked as solved
52 Replies
141k Views
I am curious Apple is pushing iPad Pro to Enterprise. Are they planning to make xcode available on iPad Pro?
Posted
by
Post not yet marked as solved
17 Replies
36k Views
Xcode->Prefencrs->accounts>AppID;The certificate for this server is invalid. You might be connecting to a server that is pretending to be “idmsa.apple.com” which could put your confidential information at risk. How can I solve the problem?
Posted
by
zwq
Post not yet marked as solved
2 Replies
7.9k Views
Is it possible to tell Xcode to run an app as though it was opened from a URL?I have an issue when opening the app from a URL (deep link) when the app is not in device memory and is "cold started". If the app is already in memory, the UI is initialized to a point that allows opening of the URL without issues. In order to correct my code, I was hoping to test opening the app from a deep link after it has been killed from the app switcher. In order to have debugger access during the start up process so that I can see the process in action, I would need to instruct Xcode to start the app as though it was opening from a deep link.Can this be done?
Posted
by
Post not yet marked as solved
16 Replies
10k Views
I want to test parts of my app UI in isolation, so avoid having to drill down from the splash screen to the pages in question. My app implements deep linking, but I can't figure out how to configure XCUIApplication in the setUp() to trigger the page transition.I have a method in the app delegate called openURL() which handles this for the production app. It works great, but when I call it (below), nothing happens. If I put a breakpoint in openURL() it never even gets hit. override func setUp() { super.setUp() continueAfterFailure = false XCUIApplication().launch() guard let url = NSURL(string: "fooapp://page/3") else { fatalError("Couldn't create URL") } UIApplication.sharedApplication().openURL(url) }What I really want is to set UIApplicationLaunchOptionsURLKey in launchOptions and just let the app behave as if it received an external URL. I see launchArguments and launchEnvironment are available on XCUIApplication, but then I have to write something special to extract those values out and manually call openURL somewhere in the app delegate. What's the right way to do this?
Posted
by
Post not yet marked as solved
11 Replies
23k Views
When working in Xcode and deliberatly making errors in my code (using Swift 2) (e.g. using undefined variables, wrong type casts, ...), Xcode doesn't seem to show compiler errors in my code.I included a screenshot of some code I wrote in a playground, executed on my computer, and the same code a friend of mine executed on his:mine (the output on the left is output before I made the error, it just didn't update after my alterations)friend'sI hope someone can help me since this is becoming rather annoying,Thanks!
Posted
by
Post not yet marked as solved
9 Replies
1.7k Views
Good Afternoon AllI'm having a problem ++Operator in loops after updating the Xcode 7.3. I have tried it in all three ways and non e of them worked after this update. those three ways are;1. x++2. x += 13. x = x + 1None of the above three work in the loops and is giving error everytime but the third of them was working before the update. Can someone assist me please.Many thanks
Posted
by
Post not yet marked as solved
4 Replies
2.4k Views
Heylo all,I've noticed an "issue" of sorts with scrolling through code that's really throwing me off. I don't think it was doing this before, but maybe I just never noticed? I'm not sure.The scrolling speed with the trackpad changes depending on how much scrollable content there is. That is to say, if the window only shows say 40% of the total file, scrolling speed feels like it does everywhere else in the OS. When it covers 80% or 90%, it slows way down so the same amount of physical scrolling translates to moving up or down fewer lines at a time. This change even happens live: if I open a source file in a separate window and shrink the window size, scrolling speeds up; expand it to be the full height of the monitor and it slows down again. (It's literally a difference of 3 lines vs 15 lines)It doesn't do this with a regular mouse wheel; just touch surfaces. I tried restarting, different projects, new projects, playing with the system scroll speed settings in accessibility, turning inertia off...nothing changes it.Has anyone else actively noticed this? Is there a setting to change or a "fix" for it?
Posted
by
Post not yet marked as solved
17 Replies
99k Views
Hello! I have windows pc and an iphone, I want to develop apps and use xcode... Please help me on that and what should I doThank YOU !
Posted
by
Post not yet marked as solved
25 Replies
48k Views
I found many questions on here asking for the same thing. I have tried all of them but I am still getting this error. I created everything from scratch again and was running well until I deleted the data from "DerivedData" folder and now this permissions alert error came back.I have been trying following things for a week now:I have tried copying this project to a new folder. Didn't work.I changed every permission to my folder structure to be read & write to every user.Product -> Clean.Renaming the app.Compiler for C, C++, Objective-C is "Default compiler Apple LLVM 8.0)Build Settings > Architectures -> to Standard ArchitecturesReplaced Info.plist from a newly created project.Xcode version 8.1.I see that one of the similar questions were tagged as a duplicate. But I am really stuck here for a week. I have tried everything from this answer in the StackOverflow.And a lot of others that I found online.I would really appreciate any help on this. I couldn't finish my project because of just this permission issue.Thank you in advance!
Posted
by
Post not yet marked as solved
17 Replies
45k Views
So this is very frustrating. My bundle ID is the same in the itunes connect store as it is in xcode. However, when I try and validate my archive for submission I am left with this prompt. My only thought is I had someone code this for me and I added a splash screen as well as changing the app name. I thought I made all the right corrections. Any ideas guys?
Posted
by
Post not yet marked as solved
10 Replies
34k Views
Hi I just started recently. I am trying to run my first application whic is a single view Application iOs.Once the project is created I set the build only to a generic OS device and here is the error I getA build only device cannot be used to run this target.No supported iOS devices are available. Connect a device to run your application or choose a simulated device as the destination.Please help me out.Thanks,
Posted
by
Post not yet marked as solved
10 Replies
15k Views
I am getting a new warning in XCode 9 that says "xcode 9 fixed width constraints may cause clipping". I intentionally have fixed with constraints on buttons with icons and text where I am using an icon font. In both these cases localization will not change the text thus causing clipping. Is there a way to turn this warning off? It would be nice to turn it off just for items that I have explicitly decided it needs a fixed width but I'm willing to turn it off all the time. I don't want to turn off all warnings in the storyboard because some of them are useful.Also, XCode 9 beta 5 seems to be compiling the entire project over and over again every time I build. It does this even as I'm typing and slows down simple coding tasks.
Posted
by
Post marked as solved
22 Replies
5.1k Views
I "upgraded" to XCode 9 today, hoping that it would support the new ISO Appendix K safe string functions (it doesn't). It has always been difficult to get XCode to update a Mac application's Help Book. In the past I have been able to do it by following these instructions:Delete any other versions of the app and empty the trash.Update the Help.plistCreate a new Help.helpindex file using the Help IndexerRemove the help folder from project.Delete the system’s cached help folder using the terminal command: rm -rf ~/Library/Caches/com.apple.help*Sometimes it helps to restart your machine nowSometimes it helps to execute the termanal command rm -rf ~/Library/Caches/com.apple.help* againClean and rebuild the project without the Help folderAdd the new Help folder, clean and rebuildCheck to be sure that the new help book is addedNow this doesn't work. When I run my project with the new Help Book the Help Book window says:The selected topic is currently unavailable.The topic you were trying to view could not be found.XCode logs:2017-09-20 13:45:49.466114-0600 app[2349:187674] Entering AHRegisterHelpBookWithURL2017-09-20 13:45:49.466228-0600 app[2349:187674] Entering AHRegisterHelpBookWithURL: 0Can anyone tell me how to get XCode 9 to do this?
Posted
by
Post not yet marked as solved
1 Replies
704 Views
How to change smulator if open simulator from file<developer options<simulator i want to run my react nattive app on iphone 8 but it opening bydefault on iphone x
Posted
by
Post not yet marked as solved
9 Replies
31k Views
I have no longer a paid developer account and after upgrading to iPhone 8+ I tried to install my app and XCODE posts the following error: " Code Signing Error: Your development team has reached the maximum number of registered iPhone devices."How do I remove them? How do I contact Apple Development Support to remove them for me?Daligr
Posted
by
Post not yet marked as solved
7 Replies
17k Views
How get URL from image located in asset catalogbefore use:let path = Bundle.main.path(forResource: "***", ofType: "png")or let path = Bundle.main.path(forResource: "***", ofType: "png", inDirectory: "Assets.xcassets")let urlI = URL(fileURLWithPath: path!)but this cause error URL is nilHelp me please
Posted
by
Post not yet marked as solved
7 Replies
5.0k Views
Hello,I created a playground, in this playground, I created a class, I instantiate it, everything is fine. I create the same class in a source swift file, make my class public but ... I do not have the foundation framework methods! for example, no ... uppercased! While I have these methods in the basic playground (I also use the framework foundation). What am I doing wrong? thanks a lot for your help// Works with the Playground import Foundation import PlaygroundSupport class me { var firstName: String var lastName: String init(firstName: String, lastName: String) { self.firstName = firstName self.lastName = lastName } func mergeUpperCase() -> String { return firstName.uppercased() + " " + lastName.uppercased() } } // Don't work with the Swift File under Sources import Foundation public class Person { public var firstName: String public var lastName: String public init(firName: String, lastName: String) { self.firstName = firName self.lastName = lastName } public func merge() -> String { return firstName + " " + lastName } public func mergeUpperCase() -> String { return firstName.xxxx + " " + lastName.xxxx // xxxx = no method uppercased() } }
Posted
by