Search results for

xcode github

94,046 results found

Post

Replies

Boosts

Views

Activity

Reply to LLDB and environment variables in Xcode
Xcode doesn't pass these environment variables to lldb when it runs it, nor does it preprocess the .lldbinit files to insert these variables. We don't pass them to lldb as there's too much chance one of them really wouldn't be appropriate for lldb and cause hard to diagnose problems. And since .lldbinit files can contain arbitrary user expressions, preprocessing can also cause problems. Instead, the suggested way to do this is to make a target specific lldbinit file - as you have done - and in that file bring in all the .py files you need using command script import --relative-to-command-file ./my_python_files/my_python_file.py That allows you to give the paths to all your python files relative to the target-specific .lldbinit file without having to know where any of them actually are. Note, the same option exists for sourcing other files of lldb commands using command source.
Nov ’25
Reply to iOS Universal Link opens app and then opens browser (Flutter + Universal Links) — only when using paths/params
Thank you for your post. I am unfamiliar with Flutter. Have you created a simple, focused project in Xcode to verify the AASA file? Do you have a link to the public AASA file? Have you reviewed the troubleshooting guide for Universal Links, as it was specifically designed for Xcode and may provide assistance? Have you reached out to the third-party developers who developed Flutter for their support? You should check with the support resources provided by the 3rd party to get assistance with their software. The troubleshooting guide can be found here if you are interested. TN3155: Debugging universal links | Apple Developer Documentation Albert Pascual
  Worldwide Developer Relations.
Topic: App & System Services SubTopic: General Tags:
Nov ’25
Reply to Unable to create SwiftUI previews in Xcode 26 for iOS 15.5
Hi, Sorry to hear you are having problems getting previews working. The best next step will be to file a feedback with diagnostics so we can take a look at the underlying details of the issue. We will need the diagnostics Xcode Previews generates in order to make sure we understand the error the previews system is encountering. Install the logging profile using instructions available here: https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift On your mac running Xcode, and on your physical preview device (if you are using one). Install the logging profile using the following instructions on your mac running Xcode; and if you are using one, your physical preview device (iOS or visionOS): https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift Then when you reproduce the problem in Xcode: Either (a) an error banner will appear, click the Diagnostics button in that banner; or (b) if you're not seeing an error but you still want to provide diag
Nov ’25
VNDetectFaceRectanglesRequest does not use the Neural Engine?
I'm on Tahoe 26.1 / M3 Macbook Air. I'm using VNDetectFaceRectanglesRequest as properly as possible, as in the minimal command line program attached below. For some reason, I always get: MLE5Engine is disabled through the configuration printed. I couldn't find any notes on developer docs saying that VNDetectFaceRectanglesRequest can not use the Apple Neural Engine. I'm assuming there is something wrong with my code however I wasn't able to find any remarks from documentation where it might be. I wasn't able to find the above error message online either. I would appreciate your help a lot and thank you in advance. The code below accesses the video from AVCaptureDevice.DeviceType.builtInWideAngleCamera. Currently it directly chooses the 0th format which has the largest resolution (Full HD on my M3 MBA) and 4:2:0 color v reduced color component spectrum encoding (420v). After accessing video, it performs a VNDetectFaceRectanglesRequest. It prints VNDetectFaceRectanglesRequest completion Handler
0
0
335
Nov ’25
Reply to 'tabViewBottomAccessory' leaves an empty accessory area when conditionally hidden
From further testing of the new version of the modifier with the isEnabled: parameter, whilst it compiles as backwards compatible with iOS 26.1, with that OS version it exhibits problems of being laggy to hide/show the accessory view and sometimes fails to render the view. However, when running on iOS 26.2 the modifier is responsive and reliable. There seems to have been an overhaul of the implementation behind the tab bar view and its accessory view as evident in subtle differences with the behaviour of sub view content. My testing was with builds created by Xcode 26.2 beta 1 so subsequent Xcode betas or the RC version might improve the 26.1 support.
Topic: UI Frameworks SubTopic: SwiftUI
Nov ’25
LLDB and environment variables in Xcode
Hey! I am writing type formatting scripts in Python for lldb, as described in https://lldb.llvm.org/use/variable.html#python-scripting. I'm trying to pass an environment variable to lldb from Xcode to determine the path to the scripts in the project root, so the project is not bound to some predetermined path. I am having trouble doing this in Xcode. What I have tried: lldbinit file Create a .lldbinit file in $(SRCROOT) with the following content: platform shell echo $SRCROOT. Set the path to the .lldbinit file in Edit Scheme... > Info > LLDB Init File ($(SRCROOT)/.lldbinit). Set the SRCROOT environment variable to $(SRCROOT) in Edit Scheme... > Arguments > Environment Variables. entry-point breakpoint Add a breakpoint to the entry-point of the application. Set the Automatically continue after evaluating actions option. Add the action platform shell $(SRCROOT) or platform shell $SRCROOT. Set the SRCROOT environment variable to $(SRCROOT) in Edit Scheme... > Arguments > Envi
3
0
225
Nov ’25
Xcode and Reading documents from a URL connection.
I have an Xcode app where currently txt files in the project display text data as a list. I can search through the lists and have buttons that will swap between different lists of information that you can look through. The next task is I have URL connections to docx files on a SharePoint site. I am trying to use an URLsession function to connect to the URL links to download the documents to the document directory then have the application read the doc information to then be displayed as the txt info would. The idea is that the docx files are a type of online update version of the data. So when the app is used and on wifi, the app can update the list data with the docx files. I have code set up that should access the URL files but I am struggling to figure out how to read the data and access from this Documents directory. I have been looking online and so far I am at a loss on where to go here. If anyone can help or provide some insight I would greatly appreciate it. I can try and provide code samples
7
0
187
Nov ’25
Reply to macOS 26.1 Tahoe on ARM: FinderSync extension does not work
I've mistakenly created that diagnosis report just after a reinstallation of the OS, but the Xcode example (or any other Finder Sync Extension) was not running yet on that machine. This is now the 3rd sysdiagnose you've uploaded. Before uploading another, please take the time to investigate the data instead of assuming there is a system-level issue, as there is every indication that this is in fact a problem with how you've configured these machines. Case in point: I've uploaded a new report which now should correctly contain everything with the Xcode example. Even the reinstallation of the OS did not help. This is not a system bug, as the system is behaving exactly the way MDM has configured it. More specifically: In the bug, you specified this bundle .TestFinderSyncExtension as the one to look for. If you search the system_logs.logarchive for that file, you'll find that the first message returned is the message pdk logs when it's intentionally denying an extension due to MDM: 2025-11-17 10
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’25
Unable to create SwiftUI previews in Xcode 26 for iOS 15.5
I am getting this error msg when I try to run a SwiftUI Preview on an iOS 15.5 simulator: Termination Reason: Namespace DYLD, Code 1, Library missing | Library not loaded: /usr/lib/swift/libswift_StringProcessing.dylib | Referenced from: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libLiveExecutionResultsLogger.dylib | Reason: tried: '/Users/hfg/Library/Developer/Xcode/DerivedData/Testios15sim-aawlbfbtggzozseoekycwwpadhrc/Build/Intermediates.noindex/Previews/iphonesimulator/Testios15sim/Products/Debug-iphonesimulator/libswift_StringProcessing.dylib' (no such file), '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswift_StringProcessing.dylib' (no such file), '/usr/lib/swift/libswift_StringProcessing.dylib' (no such file), '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libswift_StringProcessing.dylib' (no
1
0
124
Nov ’25
PhotoKit Background Upload Extension not working on iOS 26.2 iPhone 17 Simulator
Hi, I’m trying to implement the new PhotoKit PHBackgroundResourceUploadExtension. I created the extension, enabled full photo library access in the host app, and registered the extension point using the string: com.apple.photos.background-upload. However, when I attempted to enable the extension with: try library.setUploadJobExtensionEnabled(true) I received the following error: Error Domain=PHPhotosErrorDomain Code=-1 (null) This happens when running the app on Xcode 26.1 and 26.2 Beta, using the iPhone 17 Pro Max simulator (iOS 26.1 and 26.2). My question is: Is this extension supported on the simulator? I’m asking because at the moment it’s difficult for me to test this on a physical device. Also, What's the meaning of the error? Thanks.
0
0
267
Nov ’25
Reply to Error in Xcode console
Hi all! If you see this issue, first verify that your Mac and Xcode are on the exact same version, e.g, 26.2. Some of these kind of strange errors can come up due to version mis-match. If that does not resolve the issue, please file a Feedback Assistant report. Thanks!
Nov ’25
"Processor Trace cannot profile this process without proper permission"
Hello, I'm no macOS 26.1 I'm running through the example shown in the WWDC video Optimizing CPU Performance with Instruments. After right-clicking a test, clicking Profile..., and trying to run a processor trace I get the error in the subject. I have processor trace enabled on the CPU via system settings. I confirmed this by disabling it and re-enabling it and noting the error that appears when this is disabled is different from the one I'm now getting. This did previously work but I haven't tried since macOS 26 is released. Is there something new I need to be doing to my Xcode project settings in order for this to be working?
2
0
136
Nov ’25
Reply to 90714: Invalid binary.
@mayonggang On one of your comments it seems like you have already identified the issue about the interfaces returning (null) those classes are the issue and if they come from a third party library you need to remove it or at least use the latest available library. But if the script returns a null, you won't be able to use that library unless is compiled with the latest Xcode. More information on this thread: https://developer.apple.com/forums/thread/793991?page=1#851267022 Albert Pascual
  Worldwide Developer Relations.
Nov ’25
WeatherKit entitlement and key not propagated — WeatherDaemon fails to generate JWT (Code=2)
Hello Apple Developer Support Team, I am the Account Holder of my Apple Developer Program team (Team ID: T2BKUF6E93). My iOS app is using Swift WeatherKit (WeatherService) on device. Although my environment is completely configured, the system WeatherDaemon consistently fails to generate the WeatherKit JWT token. My environment: Team type: Apple Developer Program (paid) Team ID: T2BKUF6E93 Account role: Account Holder Xcode: latest version Device: iPhone (real device) Provisioning Profile: iOS Team Provisioning Profile (auto-managed) Entitlement: com.apple.developer.weatherkit included WeatherKit Key: created successfully (.p8 downloaded) Bundle ID: correct and WeatherKit capability enabled App reinstalled after each configuration change Device rebooted Even after enabling WeatherKit capability and generating a WeatherKit Key, the system still fails to generate JWT: Failed to generate jwt token for: com.apple.weatherkit.authservice Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors
0
0
178
Nov ’25