Search results for

“xcode github”

97,549 results found

Post

Replies

Boosts

Views

Activity

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 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 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 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 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 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 Crash by SwiftData MigarionPlan
I just tried logging an error.localizedDescription in TestFlight and got : Could not create ModelContainer: The operation couldn’t be completed. I also tried adding -com.apple.CoreData.MigrationDebug 1 to the launch arguments, but there was no CoreData: error: ... in the Xcode console. I created a new project and copied the MigraitonPlan-related code from my code into it and uploaded it to Github. TestDemo
Topic: App & System Services SubTopic: iCloud Tags:
Jul ’24
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 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 "Undefined symbol: __swift_FORCE_LOAD_$_swiftCompatibility56" or "Symbol not found: (_objc_claimAutoreleasedReturnValue)"
[quote='801822022, DTS Engineer, /thread/762854?answerId=801822022#801822022'] Cool, that’d be helpful. Can you upload your test project somewhere (like GitHub) and then post the link here? [/quote] Here is the GitHub repo
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’24
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.)
Replies
Boosts
Views
Activity
Jun ’25
Reply to Updating out dated apps. Please help!
Github?
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’20
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.
Replies
Boosts
Views
Activity
Dec ’17
Start with ia on google now GitHub
growing up with apple now cu I was devolping a apps for studio record but erease for many reason first at all tracker on my deck so more secure with apple privacy and not google account
Replies
0
Boosts
0
Views
221
Activity
1d
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:
Replies
Boosts
Views
Activity
Jul ’15
I have uploaded build through x code 11.1 but I don't seen that build version in test flight or activity section in iTunes connect.
I have uploaded build through x code 11.1 but I don't seen that build version in test flight or activity section in iTunes connect. I also tried build with increment build version still this problem is exist please help me thanks.
Replies
0
Boosts
0
Views
213
Activity
Jun ’20
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.
Replies
Boosts
Views
Activity
Mar ’22
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:
Replies
Boosts
Views
Activity
Mar ’22
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:
Replies
Boosts
Views
Activity
Sep ’17
Reply to SSL Error 1200 when using domain name, but IP works fine
Thanks Matt. I have a pared down sample project that demonstrates the condition. I am going to submit a TSI this morning. I will have a private repo on github containing the project. Can you give me a github username to invite for access to the repo?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Oct ’22
Reply to Crash by SwiftData MigarionPlan
I just tried logging an error.localizedDescription in TestFlight and got : Could not create ModelContainer: The operation couldn’t be completed. I also tried adding -com.apple.CoreData.MigrationDebug 1 to the launch arguments, but there was no CoreData: error: ... in the Xcode console. I created a new project and copied the MigraitonPlan-related code from my code into it and uploaded it to Github. TestDemo
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jul ’24
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.
Replies
Boosts
Views
Activity
May ’21
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?
Replies
Boosts
Views
Activity
Jan ’21