Search results for

xcode github

92,015 results found

Post

Replies

Boosts

Views

Activity

Reply to Xcode unit test "Creating more than one Application"
I'm using Xcode 15.2 on macOS 13.7.7. A new app project does not reproduce the problem, but I'm not yet seeing the relevant difference. At first I thought it might be because I was using a nonstandard build location, but changing that back to the default didn't fix it. With a breakpoint on -[NSApplication init], the first break has this backtrace frame #0: 0x00007ff81702f9ac AppKit`-[NSApplication init] frame #1: 0x00007ff81702f78e AppKit`+[NSApplication sharedApplication] + 120 frame #2: 0x00007ff81702df79 AppKit`NSApplicationMain + 409 frame #3: 0x000000010e442a91 PlainCalc`main(argc=5, argv=0x00007ff7b1ae7e68) at main.m:14:9 frame #4: 0x00007ff813b93418 dyld`start + 1896 And the second is frame #0: 0x00007ff81702f9ac AppKit`-[NSApplication init] frame #1: 0x00000001103bd0df XCTestCore`-[XCTestDriver _createTestBundlePrincipalClassInstance] + 82 frame #2: 0x00000001103bb338 XCTestCore`-[XCTestDriver _runTests] + 111 frame #3: 0x0000000110381194 XCTestCore`_XCTestMain + 126 frame #4: 0x000000010fafb
2w
Live Photos created with PHLivePhoto API show "Motion not available" when setting as wallpaper
I'm creating Live Photos programmatically in my app using the Photos and AVFoundation frameworks. While the Live Photos work perfectly in the Photos app (long press shows motion), users cannot set them as motion wallpapers. The system shows Motion not available message. Here's my approach for creating Live Photos: // 1. Create video with required metadata let writer = try AVAssetWriter(outputURL: videoURL, fileType: .mov) let contentIdentifier = AVMutableMetadataItem() contentIdentifier.identifier = .quickTimeMetadataContentIdentifier contentIdentifier.value = assetIdentifier as NSString writer.metadata = [contentIdentifier] // Video settings: 882x1920, H.264, 30fps, 2 seconds // Added still-image-time metadata at middle frame // 2. Create HEIC image with asset identifier var makerAppleDict: [String: Any] = [:] makerAppleDict[17] = assetIdentifier // Required key for Live Photo metadata[kCGImagePropertyMakerAppleDictionary as String] = makerAppleDict // 3. Generate Live Photo PHLivePhoto.request( withResource
1
0
221
2w
Equatable with default actor isolation of MainActor
I filed the following issue on swiftlang/swift on GitHub (Aug 8th), and a followup the swift.org forums, but not getting any replies. As we near the release of Swift 6.2, I want to know if what I'm seeing below is expected, or if it's another case where the compiler needs a fix. protocol P1: Equatable { } struct S1: P1 { } // Error: Conformance of 'S1' to protocol 'P1' crosses into main actor-isolated code an can cause data races struct S1Workaround: @MainActor P1 { } // OK // Another potential workaround if `Equatable` conformance can be moved to the conforming type. protocol P2 { } struct S2: Equatable, P2 { } // OK There was a prior compiler bug fix which addressed inhereted protocols regarding @MainActor. For Equatable, one still has to use @MainActoreven when the default actor isolation is MainActor. Also affects Hashable and any other protocol inheriting from Equatable.
3
0
1.1k
2w
Crash in URLSessionConfiguration init in Xcode 26.0 beta (17A5241e)
It's not yet fully clear why and when does this crash occur, but I'm creating this post so there's a centralized thread for this. Some hints collected so far: The crash is occurring for existing Xcode projects opened with new Xcode 26.0 beta (17A5241e); no one's been able to reproduce on a project created in Xcode 26. I even tried creating a project with Xcode 16.2 and open it in Xcode 26, but it's all working fine there (don't have older Xcode at the moment, to try with many versions) It crashes right at the line of code that initializes URLSessionConfiguration. If you call URLSession() without parameters (which is deprecated as of iOS 13), the session initializes without the crash. It's NOT occurring only for libraries installed through package manages. In a project where it crashes, one should be able to reproduce by adding URLSessionConfiguration.default as the first line in didFinishLaunchingWithOptions It crashes when running an app on an iOS 26 simu
33
0
6.1k
2w
Entitlement granted to Bundle does not appear in the Capabilities list
Hello Apple support, A few days ago, I received an e-mail granting the entitlement for Critical Alerts to my app VIAWEB Mobile, bundle ID br.com.viawebsystem.VIAWEBservice . This was my second attempt: in the first time I requested the entitlement for all our apps, but it was denied. This time I requested for just our main app, and now it was approved. I have just followed several tutorials and instructions available on the Internet, but I couldn't enable this capability in my app. What I tried and where I stopped: In my Xcode 16.4, target VIAWEB Mobile, Signing & Capabilities, All: unchecked the Automatic manage signing and checked again, selected the correct Team. In the iOS section, Xcode Managed Profile, click in the little i and there is no Critical Alerts in the Capabilities list, nor com.apple.developer.usernotifications.critical-alerts in the Entitlements list. And so, there is no Critical Alerts in the + Capability window. If I go to Certificates, Identifiers & Profiles, Ide
9
0
136
2w
Reply to Entitlement granted to Bundle does not appear in the Capabilities list
Thanks for that. It’s easy to confuse Critical Messaging and Critical Alerts. The popup you see when you click the info button shows the entitlement string, which makes the distinction clear. So, my view of our systems show that App ID Q________S.br.com.viawebsystem.VIAWEBservice has access to the Critical Alerts capability, which authorises the use of com.apple.developer.usernotifications.critical-alerts. Moreover, this capability is enabled for the iOS, visionOS, and tvOS platforms and the Development, Ad Hoc, and App Store distribution types. You should double check that: You’ve selected the right team at the top right of the page. I’ve been assuming you’re talking about Team ID Q________S here. You’ve selected the right App ID. If that’s the case and you still can’t see the Critical Alerts capability, there’s nothing I can do for you here. This is something that the Developer website folks will have to help you with. And this is clearly not an Xcode issue, because you can reproduce it on the Deve
Topic: Code Signing SubTopic: Entitlements Tags:
2w
Reply to Learn to code / beginner
about compatibility for Xcode 26 Oh, yeah, there’s also the Xcode side of this, which is different than the macOS side. Xcode 26 beta supports macOS 15.5 and later [1]. macOS 15.5 runs on a wide range of Intel machines. The Developer Downloads page lets you download an Apple silicon only version if you want to save some disk space. Xcode only supports visionOS development on Apple silicon. But, yeah, the gist of your original reply is absolutely correct: While there are some exceptions here and there, we’re approaching the end of the line as far as developing apps on Intel is concerned. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] See Developer > Support > Xcode.
2w
Reply to Xcode unit test "Creating more than one Application"
What version of Xcode is this? What version of macOS are you testing on? If you create a new app from the macOS > App template, does that reproduce the problem. If you set an exception breakpoint and reproduce the problem, can you catch the exception at the point that it’s thrown. [quote='798132021, JWWalker, /thread/798132, /profile/JWWalker'] By the way, along with the error message, there is a stack crawl: [/quote] Something is wonky with the symbolication there. The exception is thrown directly by NSApplication, so NSCalendarDate is definitely a red herring. It’s easy to understand what this exception is about. Consider this tiny test program: import Cocoa func main() { let app1 = NSApplication() print(app1: (app1)) let app2 = NSApplication() print(app2: (app2)) } main() It prints: app1: *** Assertion failure in -[NSApplication init], NSApplication.m:1590 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Creating more than one Application' … So, the pr
2w
Reply to Fail to archive XCode
This error usually means what it says, that is, there’s no device registered to your developer account and thus Xcode can’t generate a valid development provisioning profile. The standard way to fix this is to attach an iOS device to your Mac via USB, and then using Xcode to build and run on that device. Automatic code signing will take care of registering the device with your developer account, creating a provisioning profile, and so on. You wrote: [quote='797981021, Amyislearning, /thread/797981, /profile/Amyislearning'] I’ve already added the device ID manually [/quote] How did you do that? You posted this question from Team ID 8________T. Is that the team you’re trying to build for. If so, note that our records show no registered devices for that team. [quote='797981021, Amyislearning, /thread/797981, /profile/Amyislearning'] my role shows as Admin instead of Account Holder? [/quote] The above-mentioned team is an Individual team, meaning that you are by definition the account holder. Ar
2w
Reply to SwiftData Inheritance Query Specialized Model
Hi Ziqiao, I've tried with iOS 26 Beta 7 and since Beta 8 (landed tonight) on device (because my Xcode is stuck on iOS Beta 6, don't know why) and the problem is solved. I can now query CollectionItem with predicate that contains inherited properties. Now I have only got problems with accesses to the children property in List. When i got the following hierarchy and the SwiftUI view List access to the Item.children property I got another kind of crash. Category: Work (parent: none) Category: Tech (parent: Work) Thread 1: Fatal error: Never access a full future backing data - PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(backing: SwiftData.PersistentIdentifier.PersistentIdentifierBacking.managedObjectID(0x9872c0007ba42159 ))) with Optional(7639D151-5D48-46AC-AB2A-7F0F50919AC5) But I guess it's a different kind of problem now.
2w
Xcode 26 and Plugin Support: Any Updates?
I’m new to iOS development. Previously, I’ve worked with Python and Django, mainly using JetBrains PyCharm PRO. In PyCharm, I really benefit from plugins like Rainbow Brackets , which help a lot with readability and code navigation. As someone who wears glasses, I find such visual aids very helpful for reducing eye strain. While exploring Xcode, I noticed that similar built-in features or up-to-date plugin support seem limited. Considering Apple’s strong focus on accessibility and user experience, I was a bit surprised by this. With Xcode 26 coming soon, I’m also wondering if there will be improvements in plugin support or built-in tools like Swift Linter and Swift Format. Are there any current tools or plugins you’d recommend to fill these gaps?
2
0
87
2w
Reply to On macOS, what is the appropriate way to disable the sidebar material in a NavigationSplitView?
@szymczyk The contents of my SidebarView is a custom tab view where each tab hosts views containing different content. Refer to the sidebar or inspector panels in Xcode for a good idea. In Xcode's case, they allow vibrancy in the sidebar even for the panels that are not lists. In the Inspector, there is no vibrancy. We're hoping to disable the vibrancy in the sidebar so that it matches the look-and-feel of the inspector panel.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Integrating Apple Fitness+ Workouts – How to Retrieve Metadata?
Platform & Version: iOS Version: 18.3.1 Development Environment: Xcode 16.2, macOS 14.6.1 Description of the Issue: We're exploring ways to better integrate Apple Fitness+ workouts into our app. We've noticed that some third-party apps, such as Strava and HealthFit, now display Fitness+ workout details, including the title, trainer, and an image. I’ve been investigating how this is possible, and the only relevant change I’ve found is that HKMetadataKeyAppleFitnessPlusCatalogIdentifier is now being set for Fitness+ workouts. However, I can’t find any public API or official documentation that explains how to use these identifiers to retrieve the associated workout details. Question: Is there an official API available to fetch metadata for Fitness+ workouts using these identifiers? Or are these third-party apps potentially accessing private APIs? If no API exists, is the only option to create a manual mapping of these identifiers—something that seems impractical given the constantly evolving Fitness
4
0
597
Feb ’25