Search results for

xcode github

92,005 results found

Post

Replies

Boosts

Views

Activity

Reply to Why wrong window size:
I think I'm seeing the same thing. I am getting screen dimensions of 320.0 X 480.0 when I call UIScreen.mainScreen().bounds in portrait orientation, regardless of whether I use iPhone 4S, iPhone 5 or iPhone6 simulator. I expect these dimensions on iPhone 4S, but not on the other platforms. On the 5 and 6, the app presents with black bars at the top and bottom. My code was working correctly prior to iOS 9 / XCode 7 / OS X 10.11 / Swift 2.0.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to How to use vibe tools in Xcode
To setup Claude Opus 4 with Xcode 26’s Coding Assistant: Generate an API key at console.anthropic.com/settings/keys. In Xcode → Settings → Intelligence: Choose Add a Model Provider → Internet Hosted URL: https://api.anthropic.com/ API key header: x-api-key Paste your generated API key from step 1. (Requires an Apple silicon Mac with macOS 26.)
Jun ’25
Reply to Locally Built Apple-LLVM Toolchain Can't Built Bitcode Supported Static Framework
Hi @edford, I am experimenting with adding custom modifications to the default toolchain. I expect the local build of the apple-llvm toolchain to behave the same as the pre-built toolchain that’s included in Xcode. Right now there’s a difference between the two, and I am not sure whether I missed anything. So, Is there any difference between the toolchain on Apple’s Github and the one came with Xcode? Or is there anything specific that I have to pay attention to when I try to build the toolchain locally?
Jan ’21
Reply to Xcode 13.3 SwiftPM.SPMRepositoryError error 5
You need to generate a new key since the one Xcode auto-generates is not supported... ssh-keygen -t ecdsa -C our_email pbcopy < ~/.ssh/id_ecdsa.pub Go to https://github.com/settings/ssh/new, paste the key and save. Go to Xcode -> Preferences -> Sign into the github account if not already. Select SSH for Clone using For SSH Key select id_ecdsa.
Mar ’22
Reply to In the past, it was possible to set the editor in such a way that ...for(i=0;i<n;++i){instruction1;...instruction k;} can be replaced by for(i=0;i<n;++i){...}. It was very convenient to compact the edition. However, such functionality doesn't seem to exis
>> I think the question is about code foldingIn that case, the answer is:Currently (in Xcode 9.x), you can't code-fold loops in Objective-C source files. You can only fold functions, methods and classes. (Nobody knows why — maybe this will come back in the future).In Swift, you can fold any scope defined by braces ({ … }), but the code folding ribbon is gone. You have to use the functions on the Editor -> Code Folding submenu, or their keyboard equivalents such as Command-Option-Left/Right Arrow.
Dec ’17
Reply to How to create singleton in swift?
I should have written it clearly, but `recently` meant Swift 1.2 (comes with Xcode 6.3) and after.Till Swift 1.1, I used something like this:class UserInfo { class var sharedInfo: UserInfo { struct My { static var instance = UserInfo() } return My.instance } var userFirstName: String? var userLastName: String? }(Sorry, I removed all Xcode 6.1.x installations, and I cannot check if the above code actually works in Xcode 6.1.1 .)If you don't have some specific reasons, you'd better upgrade your Xcode.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Reply to How can we create class diagram in Xcode 7 and above?
Found this ; they mention OmniGraffle, but it seems to have limitsanda freeware (github, so you could customize):h ttps://stackoverflow.com/questions/29186136/uml-class-diagrams-for-xcode-swift-programmingEditedI tested, it's very interesting ; clearly, the set up on the page could be improved (up to us to improve the freeware), but a very good starting point.
Topic: Programming Languages SubTopic: General Tags:
Sep ’17
Reply to Xcode 8 release crashes on old xib files
I have the exact same issue. Any help would be greatly appreciated!If it''s of any help, my Xcode crash log is overe here gist [dot] github [dot] com [slash] thomax [slash] b338a8d02fb0c230fb1ec8e6cda41be9. Sorry for mangling that URL, but it seems the only way to avoid the moderation flag, and moderation around here seems to take a while.
Sep ’16
Reply to Failed to load owners error using GitHub
Was having the same problem. I didn't have anything from Github in my Keychain – the problem was with my Personal Access Token. I had left all of the checkboxes empty at first, but then re-signed in after checking all the checkboxes to allow for permissions to be granted through the token ... it worked right away after that! [https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line] Definitely second viewing this link if you are having this issue.
Jan ’21
Reply to Xcode doesn't support iOS 14.5.1
You can add support for iOS 14.5 (and watchOS 7.4) by copying the relevant DeviceSupport folders from Xcode 12.5 to Xcode 12.4. For example the one for iOS 14.5 is located at is Xcode.app/Contents/Developer/iPhoneOS.platform/DeviceSupport/14.5 You can download the xip for Xcode 12.5 from here: https://developer.apple.com/download/more/?=xcode and extract that folder from the XCode.app inside it and move it to your installed XCode.app. There are also publicly hosted GitHub repositories with these folders, a quick search will turn them up. It is obviously better to extract it from the official source yourself, but I think the archives are signed anyways.
May ’21
Reply to Webview crashes when instantiating shared workers in IOS 16.1
Hello @mauri870. Thanks for reporting this issue regarding SharedWorker in WKWebView on iOS 16.1, and for the bug report. While our engineers work on a long-term solution, the suggested workaround is to disable SharedWorkers for the web site you're loading. You can either do this in your web source, if you control it, or in your native app, if you are loading arbitrary web sites. As an example, the sample code in Code Listing 1 disables SharedWorkers when loading a page in WKWebView, by injecting a script using WKUserScript. Code Listing 1. func makeViewConfiguration() -> WKWebViewConfiguration { let configuration = WKWebViewConfiguration() let dropSharedWorkersScript = WKUserScript(source: delete window.SharedWorker;, injectionTime: WKUserScriptInjectionTime.atDocumentStart, forMainFrameOnly: false) configuration.userContentController.addUserScript(dropSharedWorkersScript) return configuration } var view = WKWebView(frame: CGRect(x: 0, y: 0, width: 400, height: 400), co
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’22