Search results for

xcode github

91,987 results found

Post

Replies

Boosts

Views

Activity

Reply to App signing
I’m assuming that LotBot is an app that you’re developing, not something from another developer. [quote='798623021, RichardTDukes, /thread/798623, /profile/RichardTDukes'] How can I get Xcode to use W246SX52AS? [/quote] You are mixing up your 10 character alphanumeric codes, which isn’t a surprise because those codes show up in multiple places. The ones I can think of off the top of my head are used: To identify a team — In your case that’s W246SX52AS, aka your Team ID. To uniquely identify an individual within a team — In this case that’s 86537MF8N2. For unique App ID prefixes — This is effectively deprecated; you can and should use your Team ID as your App ID prefix. A distribution code-signing identity, that’s the Apple Distribution: Richard Dukes (W246SX52AS) name in your case, always uses the Team ID because it’s scoped to your team as a whole. A development code-signing identity, that’s the Apple Development: Richard Dukes (86537MF8N2) name in your case, always has the user ID because it’s scop
1w
Reply to NSScrollPocket overlay appearing on scroll views in NSSplitViewController on macOS Tahoe
I'm seeing the same problem. I was investigating the titlebar itself, your post helped me by identifying the real culprit - thanks! The use of NSSplitViewController is not relevant, it's enough to e.g. put NSTableView inside a titlebar-less window with NSWindowStyleMaskFullSizeContentView, titleVisibility = NSWindowTitleHidden and titlebarAppearsTransparent = YES. Despite having no visible titlebar, the pocket meant for it is still present. My affected window is essentially the same thing as Xcode's welcome window, which however doesn't suffer from it, so I wonder what they do differently... I don't think there's any public API for this, certainly not documented one, scrollEdgeEffectStyle is SwiftUI-only. You can see that WebKit has to do some private API sorcery with NSScrollPocket... In my case at least, hiding the pocket is enough to fix the visual artifacts, so I grudgingly resorted to that: static NSView* FindSubviewOfClass(NSView *root, Class cls) { if (!root || !cls) return nil; for (NSView *s
Topic: UI Frameworks SubTopic: AppKit
1w
Core Data initialization causes app to deadlock on startup
Users have been reporting that the TestFlight version of my app (compiled with Xcode 26 Beta 6 17A5305f) is sometimes crashing on startup. Upon investigating their ips files, it looks like Core Data is locking up internally during its initialization, resulting in iOS killing my app. I have not recently changed my Core Data initialization logic, and it's unclear how I should proceed. Is this a known issue? Any recommended workaround? I have attached the crash stack below. Thanks! crash_log.txt
2
0
85
1w
Where is the instruments command line tool?
I was reading through this documentation about instruments command line tool https://help.apple.com/instruments/mac/current/#/devb14ffaa5 and how it can be launched from the command line. However, unlike what the documentation states, there's no such instruments command anywhere on my macos M1 (OS version 15.6). That command gives: $> instruments zsh: command not found: instruments I do have XCode installed which has the Instruments.App (GUI app) but not the command line utility: $> ls Xcode.app/Contents/Applications/ ... Instruments.app Is that linked documentation up-to-date (it does say latest in the URL)? Is there some other way to install this command line utility?
3
0
119
1w
Clarification on the purpose of return value in textFieldShouldReturn
I’m trying to understand the exact role of the return value in the UITextFieldDelegate method textFieldShouldReturn(_:). From my experiments in Xcode, I observed: Returning true vs false does not seem to cause any visible difference (e.g., the keyboard does not automatically dismiss either way). I know that in shouldChangeCharactersIn returning true allows the system to insert the character, and returning false prevents it. That’s clear. For textFieldShouldReturn, my current understanding is that returning true means “let the OS handle the Return press,” and returning false means “I’ll handle it myself.” My confusion: what is it that the OS actually does when it “handles” the Return press? Does UIKit do anything beyond calling this delegate method? If the system is supposed to dismiss the keyboard when returning true, why doesn’t it happen automatically? I’d appreciate clarification on the expected use of this return value — specifically, what default behavior the system performs (if any) when we ret
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
74
1w
Xcode 26.0 beta 7 (17A5305k) / Window 'Device and Simulator' / top part is blurred and overblends important info and toggle
The window to show 'Simulators and Devices' does not show all relevant information about Simulator Devices. On top of the right window-pane the information about OS Version, name, etc is some kind cut off…strangely blurred > effect not readable/visible. Also the toggle is not clearly visible (but with good guess it is selectable). Appearance mode (light or dark) has no influence. Reduce Transparency or increase contrast also no effect. Got this issue since Xcode 26.0 (24198.5) (Build 17A5295f), and now in latest B7 still got this issue. Running macOS Tahoe 26.0 Beta (25A5349a) Does anybody else experience the same issue? Any workaround or fix known? Already filed Feedback: FB19671411
2
0
130
1w
Reply to Storekit configuration broken in Xcode 16.4 the file has been changed
I am experiencing a similar issue using an Xcode 16.4 with a simulator running IOS 18.6 I receive a series of this message when trying to load products from the StoreKit configuration file: Could not parse product: missingValue(for: [StoreKit.ProductResponse.Key.price], expected: StoreKit.BackingValue) If I enable Zombie Objects in the debugger, I also get these messages: Class _NSZombie_SKProductInternal is implemented in both ?? (0x1347517a0) and ?? (0x1347517d0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. I've tested the file on a handful of older simulators and everything works fine; neither error is reported on an IOS 18.0 simulator. I've also verified that things are working as expected with TestFlight so I'm less concerned about going to Production. Still, it would be nice be have a much higher level of confidence that there is not a serious bug somewhere before I roll out my next Production release.
Topic: App & System Services SubTopic: StoreKit Tags:
1w
Reply to Metal 4 & Acceleration Structures
Short answer is how you would use it in Obj-C, where scratchBuffer is a MTLBuffer e.g. [commandEncoder buildAccelerationStructure:accelerationStructure descriptor:desc scratchBuffer:MTL4BufferRange(scratchBuffer.gpuAddress, scratchBuffer.length)]; Can you provide more of your setup code or an Xcode project? I'm uncertain of what to think of the error message. What kind of Apple Silicon Mac are you using for development?
Topic: Graphics & Games SubTopic: Metal Tags:
1w
Reply to Xcode and runtime mismatch error
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.
1w
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.
1w
Capturing the instruction trace from the ARM ETM
According to the ARM documentation for the CPU models available in Apple Silicon, the CoreSight implementation includes an Embedded Trace Macrocell which can perform a complete Instruction Trace (https://developer.arm.com/documentation/102119/0200/What-is-trace-). Although other operating systems such as Linux make this easy, we have not been able to find any tools or even a system-level API for accessing this feature of the ETM. In the Instruments window of Xcode 16+, there is a Processor Trace instrument, but this performs sampling and is totally unrelated to the Instruction Trace we need for debugging and analysis purposes. Because it produces a complete, contiguous sequence of branch instructions, the Instruction Trace is essential for identifying precise execution behaviors that are otherwise invisible to the developer. On other platforms, an alternative is debugger scripting, but we have found far too many bugs and reliability issues with the macOS implementation of lldb. Any suggestions would
1
0
135
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
App signing
trying to deploy the LotBot app to my physical device, rtd2, which is listed as a device in the App Developer Portal. when I create a provision file it is always for W246SX52AS, as seen in the developer portal, but from Xcode I am showing a app id of Apple Development: Richard Dukes (86537MF8N2). Message: I am unable to create a Apple Development: Richard Dukes (W246SX52AS) so I may deploy to the device and the App Store. I have signed out and back in to Xcode with my account but when creating the profile it is always the 86537MF8N2. 95E07D345D31D45E4589FA7EA6FDF161E079C100 Apple Distribution: Richard Dukes (W246SX52AS) 5AC76CE9331F80AE953C4C76FC21DE5C2416293E Apple Development: Richard Dukes (86537MF8N2) How can I get Xcode to use W246SX52AS? I have these help tickets open as well. case ID is 102678952862 case ID is 102678950460 I have been fighting this for a while. Please help me figure out to get this resolved.
1
0
658
2w