Search results for

xcode github

94,736 results found

Post

Replies

Boosts

Views

Activity

Reply to Live Activity triggered by AlarmKit remains as an empty state
Thank you for the post and providing detailed information. I am curious about how you are handling Live Activity events in code as you didn’t provide any focused sample. I recommend reviewing our samples to see how it works well to dismiss Live Activities. Handling Live Activities with AlarmKit and ensuring they behave correctly with the Dynamic Island can be tricky, especially concerning state management and user interactions. Make sure that when your app dismisses the Live Activity, it explicitly ends the activity using the APIs. Before dismissing, ensure the Live Activity’s state is updated to reflect that it is no longer active or relevant. Ensure that your logic for starting a Live Activity does not inadvertently create multiple instances. Use unique identifiers and conditions to check if an activity for a particular alarm is already running before starting a new one. As an interim measure, clearly communicate to users the intended method to dismiss Live Activities (using the X button)
Jan ’26
something that's probably easy to fix but it's driving me crazy
hy! apple developer community! No, I have a problem that's driving me crazy: Multiple commands produce '/Users/giulia/Library/Developer/Xcode/DerivedData/ScheduledStudy-dcmmhcdncitvfkdditbjoipfalqg/Build/Products/Debug-iphonesimulator/singintestwidgetExtension.appex/Info.plist'. Can you help me fix it? I know it's probably stupid, but I've been trying to fix it for days. There aren't two info.plist file, and that's why I don't quite understand. If you could help me, you'd be doing me a favor. Thanks for your time. P.S. I'm sorry, but I'm just starting out with programming and I'm also quite young.
6
0
179
Jan ’26
Reply to App Startup with Debugger in Xcode 26 is slow
Thank you, this has been helpful! If you don't mind, could you collect one more piece of data for us? Add the following to your ~/.lldbinit: log enable gdb-remote packets --timestamp -f /tmp/log_packets.txt Like before, make sure Xcode is closed. Then, launch the app to experience the slow startup, stop the application, and attach /tmp/log_packets.txt to the bug reported you opened. Please make sure you only do the experiment once, so that the log doesn't contain more than one run. Thank you for assisting us!
Jan ’26
Reply to Provisioning profile missing entitlement
I want to start by understanding your goals. The com.apple.developer.ubiquity-kvstore-identifier value starts with your Team ID, and the app’s Team ID changed as part of the app transfer. That means that your new version of the app won’t be able to access settings created by the old version. Is that OK? If so, we can dig into why Xcode is being snarky. But if it’s not OK — if, for example, you’ve stored critical user data in the iCloud key-value store [1] — then things get more complex. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] This is something I strongly recommend against. The UserDefaults subsystem, and thus the key-value store, is intended for preferences, not critical user data.
Jan ’26
Detecting host app bundle ID from keyboard extension to enable "return to app" after deep link
I'm building a voice-to-text keyboard extension that needs to open the main app briefly for audio recording (since keyboard extensions can't record audio), then return the user to their original app. The flow I'm trying to achieve: User is in WhatsApp (or Messages, Slack, etc.) User taps Voice button in my keyboard My main app opens via deep link (myapp://keyboard/dictation) App starts recording App automatically returns user to WhatsApp I cannot find a way to detect which app the keyboard is running inside, or which app opened my main app via the deep link. UIInputViewController.textDocumentProxy - No host app information available UIApplication.OpenURLOptionsKey.sourceApplication in application(_:open:options:) - When opened from a keyboard extension, does this return the host app bundle ID or the keyboard extension bundle ID? Private APIs (for research only, not production): _hostBundleID on UIInputViewController - blocked/returns nil on iOS 18 KVC approaches - all blocked Hardcoded app support - Works but
0
0
54
Jan ’26
Reply to Notarization wipes the "Icon?" file
I agree with red_menace that you don’t want to be using a custom icon for this. That’s super brittle. If you using Script Editor to save a new application, it has already set up all the bits you need: % plutil -p Test811273.app/Contents/Info.plist { … CFBundleIconFile => applet CFBundleIconName => applet … } % file Test811273.app/Contents/Resources/applet.icns Test811273.app/Contents/Resources/applet.icns: Mac OS X icon… % file Test811273.app/Contents/Resources/Assets.car Test811273.app/Contents/Resources/Assets.car: Mac OS X bill of materials (BOM) file To get the right icon, replace applet.icns with your own: % cp /Applications/Pages.app/Contents/Resources/AppIcon.icns Test811273.app/Contents/Resources/applet.icns % rm Test811273.app/Contents/Resources/Assets.car After doing this, zip and unzip the app so that the Finder refreshes. Now, in this case I nixed the Assets.car entirely, so that macOS falls back to applet.icns. A better way to do it would be to use Xcode to build
Topic: Code Signing SubTopic: Notarization Tags:
Jan ’26
Reply to Notarization Rejection - The binary is not signed with a valid Developer ID certificate
There are two ways you could interpret that error: Focus on the “valid Developer ID certificate” part. Focus on the “The binary is not signed” part. My experience is that the latter interpretation is more helpful. That is, there’s nothing wrong with your Developer ID certificate but rather there’s something wrong with your packaging that’s preventing the notary service from verifying its code signature. Having said that, this is a strange: [quote='811481021, AbsurdFish, /thread/811481, /profile/AbsurdFish'] Re-tested with minimal test package - same error persists [/quote] How are you creating this minimal test? With Xcode? Here’s the diagnostic test I recommend: Create a new test project in Xcode, using the macOS > App template. Choose Product > Archive. In the Xcode organiser, click Distribute App and follow the Custom > Direct Distribution > Export path. That produces a folder containing your app binary. Use ditto to create a zip archive from that, as explained in Pac
Topic: Code Signing SubTopic: Notarization Tags:
Jan ’26
Reply to How to properly register a macOS System Extension in an Electron app?
What ssmith_c said plus… com.apple.developer.system-extension.install is a restricted entitlement, that is, one that must be authorised by a provisioning profile. If you were using Xcode, it would take care of this for you. Given that you’re not, you have to do this by hand. There are a bunch of resources to help you with this: Creating distribution-signed code for macOS has general info about that. TN3125 Inside Code Signing: Provisioning Profiles has background on how provisioning profiles work. Resolving Trusted Execution Problems has a ‘child’ post that explains how to debug issues like this. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Jan ’26
Reply to Electron app passkey capabilities
Passkey support is driven by the Associated Domains capability. See Supporting associated domains. That capability is available to both App Store apps and apps that you distribution directly using Developer ID signing. See Developer Account Help > Reference > Supported capabilities (macOS). These docs are very Xcode focused. I’m not sure how you set this up if you’re not using Xcode. My general advice in situations like this is to create a small test project using Xcode to confirm that things are working there, then map what Xcode does to your third-party tools. Alternatively, you can seek help via the support channel for those tools. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Jan ’26
Legacy Team ID prevents adding AppClip
My iOS app was created with a legacy Team ID in 2011. When I try to add an AppClip to the app, the Team ID on the AppClip is the new Team ID. Xcode prevents the build from completing. The com.apple.developer.parent-application-identifiers entitlement (null) of an App Clip must match the application-identifier entitlement ('TYXXXXXP2.com.it-guy.MyApp') of its containing parent app. How can this be resolved? Can the AppClip Team ID be changed in Identifiers on the developer.apple.com?
3
0
172
Jan ’26
Xcode Automatic Signing Failure After Adding Keychain Capability – Mac Device Incorrectly Identified as iPod
Environment: MacBook Air Apple M2 (macOS Tahoe 26.1) Xcode 26.0 (17A324) Automatic signing enabled Feedback ID: FB21537761 Issue: I'm developing a multiplatform app and encountered an automatic signing failure immediately after adding the Keychain capability. Xcode displays the following error: Automatic signing failed Xcode failed to provision this target. Please file a bug report at https://feedbackassistant.apple.com and include the Update Signing report from the Report navigator. Provisioning profile Mac Team Provisioning Profile: com.xxx. xxx doesn't include the currently selected device FIRF‘s MacBook Air (identifier 00008112-000904CA3441xxxx). What I've Investigated/Tried: Checked the developer account devices and found that the device with identifier 00008112-000904CA3441xxxx is incorrectly labeled as an “iPod” (it is actually my MacBook Air). Attempted to manually enroll the Mac again, but it still appears as an iPod in the device list. Tried creating a provisioning profile
1
0
169
Jan ’26
Reply to Difficult to use XCode with Apple Watch
We'd appreciate getting bug reports about any difficulties connecting to your Apple Watch from Xcode. Before reporting this issue, please install the CoreDevice logging profile to your Mac, iPhone, and Apple Watch, and also the sysdiagnose profile to Apple Watch. These profiles enable us to gather logs that help detail the issue you're experiencing. Once you reproduce the connection issue after installing those profiles, please capture a sysdiagnose from both the Mac and Apple Watch, and attach the files to your bug report so that we have the logs to investigate. Once you file the bug report with the sysdiagnose files attached, make sure to post the FB number here for the record.
Jan ’26
Has Apple officially not noticed this issue? can't download iOS 26.2 Simulator
I’m using macOS Tahoe 26, and Xcode is version 26.2. I’ve tried all the methods suggested online, but I still can’t download it. In addition, iOS 26.* and iOS 18.* simulators also fail to download. The error messages are shown below. Download failed. Domain: DVTDownloadableErrorDomain Code: 41 User Info: { DVTErrorCreationDateKey = 2026-01-06 01:25:11 +0000; } Download failed. Domain: DVTDownloadableErrorDomain Code: 41 Failed fetching catalog for assetType (com.apple.MobileAsset.iOSSimulatorRuntime), serverParameters ({ RequestedBuild = 23C54; }) Domain: DVTDownloadsUtilitiesErrorDomain Code: -1 Download failed due to a general networking error. (Catalog download for com.apple.MobileAsset.iOSSimulatorRuntime) Domain: com.apple.MobileAssetError.Download Code: 47 User Info: { tryAgainLater = 1; } System Information macOS Version 26.0 (Build 25A354) Xcode 26.2 (24553) (Build 17C52) Timestamp: 2026-01-06T09:25:11+08:00
1
0
329
Jan ’26