Search results for

xcode github

94,726 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 LLDB RPC server crash in Xcode 16.3
Same here: lldb started crashing with simulator on encountering breakpoints, as of right now it even seems to crash reliably after some time. It seems to work properly on physical device Sequoia 15.4, XCode 16.2, iPhone 16 pro simulator 18.2 If that matters: I use github copilot xcode extension and that one also has issues => chat assistant crashes a lot and forces me to relaunch xcode every couple requests report.txt
May ’25
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 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 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 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 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