Search results for

xcode github

94,040 results found

Post

Replies

Boosts

Views

Activity

Reply to Problems after updating to Xcode 13.3
UPDATE 1: In order for the mac to stop asking me to update the setting for iCloud services, I had to change the password of my Apple ID. I'll wait a bit before trying to update again on macOS 12.3. I have settings that skipped for example github and gitlab accounts with Xcode. There may be others, I'll have to check.
Mar ’22
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 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 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 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
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 Set 12 vs 24 hour with the new date formatting API in iOS 15
First, thanks for re-posting. Second, I’m going to drop a link to Unicode Technical Standard #35 Unicode Locale Data Markup Language (LDML) Part 4: Dates, just for the benefit of Future Quinn™. Third, I apologise in advance for harping on about the old API, but you’ll understand why in a second. You wrote: I could use formatter.setLocalizedDateFormatFromTemplate(isTwentyFourHourClock ? HHmm : hhmm) Unfortunately that doesn’t work, even for ‘simple’ cases like US English. Consider the code at the end of this post. Put that code into a test app and run it on an device. Now configure your device as follows: Set Settings > General > Language & Region > Region to United States. Set Settings > General > Date & Time > 24-Hour Time to On. Now run the code. It prints this: locale: en_US (current) format: X .standard X .preferred X .force12Hour X .force24Hour X AM: X 09:42 X 09:42 X 09:42 X
Topic: App & System Services SubTopic: General Tags:
Mar ’22
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