Search results for

xcode github

91,972 results found

Post

Replies

Boosts

Views

Activity

Reply to Drag-and-Drop from macOS Safari to NSItemProvider fails due to URL not being a file:// URL
I also try to be a good app, and provide asynchronous support. I think that's your problem. It's too difficult to keep up with that. Your asynchronous code is already deprecated and disavowed. First of all, make sure you try using the ClipboardViewer tool. I think it's in Xcode's AdditionalTools as a separate download. I know you're dealing with Drag and Drop, which is not quite the same, but it may be enlightening as most people implement Copy and Paste with the same data. I've never tried dragging from Safari, but I certainly never seen any TIFF conversions. I even support data types that the system doesn't, so there's no way it ever could convert it. Again, I think you're trying too hard. Instead of itemProvider.loadInPlaceFileRepresentation, try just loadItem. That should give you the actual URL. You might run into concurrency problems. I seem to have encountered that myself with these APIs. Unfortunately, there's no easy solution. You definitely don't want to try those old dispatch queues, at le
Topic: UI Frameworks SubTopic: AppKit Tags:
1w
Live Activities - Missing Entitlement
I've built an app that supports live activities, but when trying to build and deploy I'm getting the error: Provisioning profile iOS Team Provisioning Profile doesn't include the com.apple.developer.live-activity entitlement. Looking in Xcode - under signing and provisions, there is no Live Activity option to select. Looking in the developer portal, similarly under Certificates, Identifiers & Profiles, there is no Live Activity option. I've added com.apple.developer.live-activity to my entitlements file for both my widget and my main app target, and added NSSupportsLiveActivities to my info.plist files. I'm building on Xcode Version 16.0 Any ideas on how to fix this? Super confused! Thanks in advance!
3
0
740
Dec ’24
Reply to Best practices for post-build codesigning
Hi. Yes, the Developer ID identity. Thanks for promoting the use of proper terminology 😁 I've read through a number of your other posts on this forum and found them informative and helpful. And yes, I'm referring to Xcode Cloud. My ci_post_xcodebuild.sh script includes: codesign ... --sign $CODESIGN_IDENTITY diskimage.dmg Where CODESIGN_IDENTITY is the SHA-1 of my Developer ID Application: My Company (MYTEAMID). It unsurprisingly fails with: error: The specified item could not be found in the keychain. I can also see there are no identities in the keychain with: security find-identity -v -p codesigning I'm hoping Xcode Cloud provides me a better way to access the identity than uploading the .p12 to the host... Thanks!
1w
Reply to Best practices for post-build codesigning
I’d like to clarify your issue here. You wrote: [quote='799215021, rvalance, /thread/799215, /profile/rvalance'] The issue is my Developer ID Application certificate is not accessible to the build host. [/quote] I’m presuming you mean “Developer ID Application signing identity” here, because you can’t sign anything with just a certificate. For more about that common terminological mixup, see TN3161 Inside Code Signing: Certificates. However, that’s not my actual question. Rather, I’d like to focus on the “is not accessible to the build host” bit. You put this thread in the Xcode Cloud subtopic, which suggests that by “build host” you mean the Xcode Cloud builder. Is that right? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w
Verifying TLS 1.3 early_data behavior on iOS 26
Development environment Xcode 26.0 Beta 6 iOS 26 Simulator macOS 15.6.1 To verify TLS 1.3 session resumption behavior in URLSession, I configured URLSessionConfiguration as follows and sent an HTTP GET request: let config = URLSessionConfiguration.ephemeral config.tlsMinimumSupportedProtocolVersion = .TLSv13 config.tlsMaximumSupportedProtocolVersion = .TLSv13 config.httpMaximumConnectionsPerHost = 1 config.httpAdditionalHeaders = [Connection: close] config.enablesEarlyData = true let session = URLSession(configuration: config, delegate: nil, delegateQueue: nil) let url = URL(string: https://www.google.com)! var request = URLRequest(url: url) request.assumesHTTP3Capable = true request.httpMethod = GET let task = session.dataTask(with: request) { data, response, error in if let error = error { print(Error during URLSession data task: (error)) return } if let data = data, let responseString = String(data: data, encoding: .utf8) { print(Received data via URLSession: (responseString)) } else { print(No da
1
0
56
1w
tabBarMinimizeBehavior no longer working after upgrading to Xcode 16 beta 5 / iOS 18 beta 5
Hello! The minimize behavior was working correctly while I was using Xcode 26 beta 4 with iOS 26 beta 4 simulator — when scrolling down, the Tab Bar would minimize as expected. However, after upgrading both Xcode and iOS simulator to beta 5, the tabBarMinimizeBehavior setting no longer has any visible effect — the Tab Bar stays fixed in place. Code snippet: if #available(iOS 26.0, *) { self.tabBarMinimizeBehavior = .onScrollDown } Steps to reproduce: 1. Create a UITabBarController with at least one tab containing a scrollable view (e.g., UITableView). 2. In viewDidLoad, set tabBarMinimizeBehavior to .onScrollDown. 3. Run on iOS 26 beta 5 simulator. Expected behavior (beta 4): Scrolling down hides/minimizes the Tab Bar with animation. Actual behavior (beta 5): Tab Bar remains fixed; no minimize animation is triggered. Environment: • Xcode 26 beta 5 (Build: 17A5295f) • iOS 26 beta 5 simulator (Build: 1055) – iPhone 16 Pro • Also tested on iPhone 13 mini – iOS 26 (Build: 23A5308g)
3
0
157
1w
Reply to Seeking clarification on macOS URLs with security scope
You do have to add com.apple.security.files.bookmarks.document-scope to your entitlement file yourself, Already done. The object you're using as the bookmark anchor needs to be a file, not a directory, and must be a file you already have full read/write access to. Already done. The object you're targeting needs to be a file as well. That's an important plot point. My current app looks at folders exclusively. So that's all I tested. Document scoped bookmarks are designed to be used to track groups of user files (for example, like an Xcode project), so a small number of directories have been blocked. It sounds like a large number of directories have been blocked - i.e. all of them. Or are these blocked target file prefixes rather than directories? Ah well, such is life. I'm working an an iOS/macOS GUI version of a command-line GIS tool. I had wanted to allow the user to specify a directory to be used as a library. Power users could then use my sandboxed and Metal-powered version of the command line app
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to Mac Catalyst: Presenting view controller <UIAlertController:> from detached view controller <MyViewController:> is not supported, and may result in incorrect safe area insets and a corrupt root presentation on Sonoma
Encountering this stern warning in Xcode simulator and occasional app ending errors which I believe are due to this problem. App ran fine on earlier (pre iOS 17) versions of iOS for over 10 years. Any leads on where this issue is addressed in Apple documentation?
Topic: UI Frameworks SubTopic: UIKit Tags:
1w
UIMenuBuilder - some menus refuse customization
I'm trying to customize the menu in my iPad app for iOS 26, since most of the default menu options aren't relevant to my app. Fortunately, I already have the code for this from my Mac Catalyst implementation. However, the functionality to replace menus with new sets of options has no effect on some menus on iOS. For example, updating the Format menu works fine on Mac Catalyst and iOS 26: override func buildMenu(with builder: UIMenuBuilder) { super.buildMenu(with: builder) let transposeUpItem = UIKeyCommand(title: NSLocalizedString(TRANSPOSE_UP), image: nil, action: #selector(TransposeToolbar.transposeUp(_:)), input: =, modifierFlags: UIKeyModifierFlags.command, propertyList: nil, alternates: []) let transposeDownItem = UIKeyCommand(title: NSLocalizedString(TRANSPOSE_DOWN), image: nil, action: #selector(TransposeToolbar.transposeDown(_:)), input: -, modifierFlags: UIKeyModifierFlags.command, propertyList: nil, alternates: []) let transposeGroup = UIMenu(title: , image: nil, identifier: UIMenu.Identifi
Topic: UI Frameworks SubTopic: UIKit
3
0
304
1w
FSKit volume mount fails with "Permission denied"
I'm trying to use FSKit to create a File System Extension that can read MFS-formatted disk images, following the old MFSLives sample project for reference. I have a well-formed MFS formatted img file that I'm trying to mount, but I'm having trouble getting the system to actually use my FSModule. DiskImageMounter fails to mount the img file, but I'm able to use it to attach the image as a device by clicking Ignore when it prompts me that it isn't able to read the disk. This is effectively the same as using the hdiutil command in Terminal. hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount Sample.img I've read that FSKit isn't fully integrated with Disk Arbitration yet, so I decided to see if I could force the system to use my extension by using the mount command. mkdir /tmp/Sample mount -F -t MFS disk54 /tmp/Sample Watching the logs in Console, I can see that fskit_agent sees my extension in its New Modules List, and I see an MFS process gets launched and logs messages from com.apple.running and c
4
0
157
1w
Reply to Seeking clarification on macOS URLs with security scope
Yes. Because of that issue, my original design had a fairly convoluted idea for getting those bookmarks to the helper. But in this limited use case, it turned out that none of that (including bookmarks themselves) was necessary. But since you mentioned document-scoped bookmarks, I should reiterate that I tried those too. They're completely non-functional for any URL. I'm not sure what you were testing, but they absolutely do work. The main things to be aware of here are: You do have to add com.apple.security.files.bookmarks.document-scope to your entitlement file yourself, instead of adding it as a capability (r.159787652). The object you're using as the bookmark anchor needs to be a file, not a directory, and must be a file you already have full read/write access to. The object you're targeting needs to be a file as well. Document scoped bookmarks are designed to be used to track groups of user files (for example, like an Xcode project), so a small number of directories have been blocked. For exampl
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to Issue with App Crashing After Download from App Store
Thank you for the post and detailed description of the issue. I have checked both versions of the app on the App Store and TestFlight. Both versions have the same version 4.0.1 and the same build number 340. Therefore, both versions appear to be the same app. However, the crash files indicate that there is a part in your code that calls abort. Unfortunately, since it is your code and symbols, I cannot pinpoint the exact location of the crash at this time. It appears that frame 8 is the culprit. I recommend downloading the app from TestFlight and using your Xcode with your symbols to identify the crash or abort. I am happy to assist you in loading your app symbols to diagnose the issue. 8 dbMobil_DevExpress 0x106d60b88 Please let me know how I can help. However, I believe that if you use Xcode, connect the device, and debug the app, you will be able to resolve the issue quickly. I hope this information is helpful to you. Albert Pascual
  Worldwide Developer Relations.
1w
Reply to UIMenuBuilder - some menus refuse customization
Thanks -- your code worked for me, so I was able to work backwards from there to find the problem. My View menu contains an item that opens my app's Settings window. But the default Application menu opens the iOS Settings app, which isn't very useful to users, so I had also overridden that menu to open my app's Settings window. It turns out a menu won't display if it contains an action that's already in another menu. And now I see a warning about this in the Xcode console, which I hadn't noticed before. 🙄 It was still working in Mac Catalyst because the default Application menu there is more useful and I wasn't overriding it, so I wasn't creating a duplicate. I simply made a second function that opens my app's Settings window, and used one in the Application menu and the other in the View menu, and now it's working.
Topic: UI Frameworks SubTopic: UIKit
1w