Search results for

xcode github

91,995 results found

Post

Replies

Boosts

Views

Activity

Reply to Can't install Universal Simulator with Xcode-beta 5
When the new Xcode can't download simulators, it's usually a permissions issue. Solution: Set the new Xcode as default: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer Download iOS platform with sudo: sudo xcodebuild -downloadPlatform iOS If your Xcode isn't installed in the default path, update the path in step 1 to your actual installation location. This resolves the write permission issue for new simulators.
2w
Reply to Printing of NSTextView
The trick here is to make an off-screen copy of your NSTextView and copy your contents into it. Here's an example of how to do that: @IBAction func megaPrint(_ sender:Any?) { let printView = megaTextView! // NSTextView from your on-screen view hierarchy // make a new NSTextView copying the contents from your on-screen view // make sure to set the frame let printedView = NSTextView(frame: NSRect(origin:NSPoint(x:0, y:0), size:NSSize(width:480, height:200))) printedView.isVerticallyResizable = true printedView.isHorizontallyResizable = false printedView.textStorage!.append(printView.textStorage!.copy() as! NSAttributedString) // Create a new print operation and tell it to show the print and progress panels // and set some options for positioning the text in pages let printOperation = NSPrintOperation.init(view: printedView) printOperation.showsPrintPanel = true; printOperation.showsProgressPanel = true; printOperation.printInfo.isVerticallyCentered = false printOperation.printInfo.isHorizontallyCentere
Topic: UI Frameworks SubTopic: AppKit Tags:
2w
AppIntent, StartWorkoutIntent, and Siri
I'm a bit confused as to what we're supposed to be doing to support starting a workout using Siri in iOS/watchOS 26. On one hand, I see a big push to move towards App Intents and shortcuts rather than SiriKit. On the other hand, I see that some of the things I would expect to work with App Intents well... don't work. BUT - I'm also not sure it isn't just developer error on my part. Here are some assertions that I'm hoping someone more skilled and knowledgable can correct me on: Currently the StartWorkoutIntent only serves the Action button on the Watch Ultra. It cannot be used to register Shortcuts, nor does Siri respond to it. I can use objects inherited from AppIntent to create shortcuts, but this requires an additional permission to run a shortcut if a user starts a workout with Siri. AppIntent shortcuts requires the user to say Start a workout in - if the user leaves out the in part, Siri will not prompt the user to select my app. If I want to allow the user to simply say Start a Workout and have Siri p
1
0
90
2w
Fail to archive XCode
I’m trying to archive my app in Xcode but keep running into issues. When I attempt to archive, I see two errors: “Communication with Apple failed. Your team has no device from which to generate a provisioning profile. Connect a device to use or manually add a device ID in the certificate.” “No profiles were found” — Xcode can’t locate a matching iOS development provisioning profile. I’ve already added the device ID manually, set up my bundle identifier in Apple Connect (which was detected), and signed in with my Apple ID in Xcode. What steps should I take to resolve this? If there’s a thread, article, or anything that explains the fix, I will appreciate if you can share it as well. Also, is it common that I created the project, but my role shows as Admin instead of Account Holder? I tried to find a way to change my role from Admin to Account Holder, but I couldn’t find any resources. Thank you in advance for your help!
2
0
166
2w
Reply to Trouble with OSDeclareDefaultStructors.
So, let me start with the direct issue: I have this line: OSDeclareDefaultStructors(NukeVirtualGamepad) No matter what I do, Xcode will not recognize OSDeclareDefaultStructors. Yes, that's correct. No matter what you do, that will never work. The problem here is that OSDeclareDefaultStructors is an IOKit macro used to set up IOKit objects in the kernel. It is not part of IOKit and never has been. The solution here is actually really simple, which is that you shouldn't be trying to do it at all. That leads to here: I did a lot of research and it looks like expo needs OSDeclareDefaultStructors in order for the extension to build with a binary in it instead of being just a codeless extension. Did that research happen to involve AI? This is just a guess, but I suspect whatever suggested using OSDeclareDefaultStructors invented it by pulling the data from our IOKit documentation. In terms of getting started with this, I would start either move over to CoreHID (see below) or start with either the keyboard
Topic: App & System Services SubTopic: Drivers Tags:
2w
Trouble with OSDeclareDefaultStructors.
Hi guys! OK, reaching out for some help here. I am having all kinds of trouble with OSDeclareDefaultStructors. I have seriously been at this for nearly a week now and have come to the conclusion that I need to reach out for help from people that are more experience using Xcode. I believe entirely that my issue is just that I can't for whatever reason see how to set up includes and libraries and things like that. I have this line: OSDeclareDefaultStructors(NukeVirtualGamepad) No matter what I do, Xcode will not recognize OSDeclareDefaultStructors. The project builds a DriverKit > Driver extension. I have literally tried absolutely everything with this. I am at a loss for words. I even set up a new blank project and it still will not recognize OSDeclareDefaultStructors. I did a lot of research and it looks like expo needs OSDeclareDefaultStructors in order for the extension to build with a binary in it instead of being just a codeless extension. Here is the code with the issue: #pr
4
0
143
2w
Testflight Build Erro - DVTAppStoreConnect.ServiceBackendError error 1.
Hi guys, I'm trying to make a test flight build (first time in a while) in Xcode 16.0 Beta for a visionOS 2.0 beta test. When I click Distribute App, It preps and creates the app but fails on the next step creating app record... with this code The operation couldn’t be completed. (DVTAppStoreConnect.ServiceBackendError error 1.) My account is old with a ton of certs, identifers, profiles etc. I've tied setting up a new one but that doesn't seem to fix the issue ( though I might have easily missed a step? ) Any help on how to solve this?
2
0
1.3k
Jun ’24
DVTAppStoreConnect.ServiceBackendError error 1 when publishing app
Hi there, I am trying to publish my first app (VisionOS 2.0) via TestFlight for internal testing via XCode 16.0 beta 2. I have tried clicking both 'Distribute App' and 'Validate App', but either way receive the following error: DVTAppStoreConnect.ServiceBackendError error 1 I am a bit stuck for now, any feedback would be gratefully received! Many thanks
5
0
613
Jun ’25
Reply to Printing of NSTextView
I tried using somewhat simpler printing code, which I've seen work in other apps: - (IBAction) doPrint: (id) sender { NSPrintOperation* printOp = [NSPrintOperation printOperationWithView: _webView]; printOp.jobTitle = @Help; NSPrintInfo* info = printOp.printInfo; info.verticallyCentered = NO; printOp.printInfo = info; [printOp runOperationModalForWindow: _webView.window delegate: self didRunSelector: nil contextInfo: nil ]; } But no go here. I tried the same thing in another window, this one using WKWebView, with the same blank result. This is a sandboxed app, and the com.apple.security.print entitlement is on. I'm working in Xcode 15.2 on macOS 13.8.8. I took a project that wouldn't print on this machine to a newer machine running a Tahoe beta, and there it worked. So then I'm asking myself, is printing just broken on this machine? No, printing from other apps shows the preview just fine.
Topic: UI Frameworks SubTopic: AppKit Tags:
2w
Error in Xcode console
Lately I am getting this error. GenerativeModelsAvailability.Parameters: Initialized with invalid language code: en-GB. Expected to receive two-letter ISO 639 code. e.g. 'zh' or 'en'. Falling back to: en Does anyone know what this is and how it can be resolved. The error does not crash the app
1
0
707
2w
Reply to `onTapGesture` not triggered on `Map` views
I'm also seeing this problem with Swift Charts. This is with the latest Xcode 26 Beta 6 and iOS 26 Beta 8. This issue doesn't affect devices running iOS 18 and 17 from my testing. As such I've made this modifier which may help someone, hopefully I can remove it in the release seed but who knows! extension View { func CustomTapGesture(tapCount:Int = 1, perform action: @escaping () -> Void ) -> some View { modifier(TapGestureModifier(tapCount: tapCount, action: action)) } } struct TapGestureModifier: ViewModifier { var tapCount:Int = 1 var action: (() -> Void) func body(content: Content) -> some View { if #available(iOS 26.0, *) { content.simultaneousGesture(TapGesture(count: tapCount).onEnded { action() }) } else { content.onTapGesture(count: tapCount) { action() } } } } Which can be used like this: Text(Hello World) .CustomTapGesture(tapCount:2) { UIImpactFeedbackGenerator().impactOccurred() } To be clear, this doesn't work as well for iOS 26 users as the standard .onTapGesture but it is
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Reply to False positive 'Deceptive Website' warning for personal domain
It's probably related to whatever you are doing with adguard and vaultwarden. I don't know what any of that is, but when I search for your domain, it shows up on a couple of Github domain lists. I also don't know what those domain lists are for. But if you're going to play around with anything even remotely related to security, you should do that on a burner site. Otherwise, you effectively turn your site into a burner site. There is no differentiation on the internet between legal/illegal, safe or malicious. It's the internet. It's all illegal and malicious, unless proven otherwise. Google and others work hard to hide that from regular folks. But if you fall through the cracks, even by accident, it's your problem to solve. Nobody's going to help. This is a developer support forum. It's a place for questions about SwiftUI, APIs, NSURLSession, etc. You can ask anything you want, but if you're asking about something that isn't developer related, you probably won't get any answer. I can tell you that th
Topic: Safari & Web SubTopic: General Tags:
2w