Search results for

“xcode github”

96,031 results found

Post

Replies

Boosts

Views

Activity

Contacts permission not requested on production build (iPhone 16/17 Pro Max)
I’m encountering an issue where my app does not show the Contacts permission prompt in the production environment. This has been observed on iPhone 16 Pro Max and iPhone 17 Pro Max devices, while other iPhone models appear to behave correctly. The behavior is consistent across Xcode builds, TestFlight, and the App Store version when using the production bundle identifier. Instead of returning .notDetermined, the app receives the device’s previous Contacts authorization status, so the system permission prompt is never shown. Expected behavior On first launch after install, the app should prompt the user for Contacts access. Actual behavior (Production build) The app does not prompt for Contacts permission and instead appears to reuse the previous permission state: If the user previously had no access → after uninstall/reinstall, still no access (no prompt shown) If the user previously had limited access → after reinstall, access becomes empty (0 contacts), still no prompt If the user previously had fu
8
0
762
2w
Core NFC on iPhone returns “Sandbox restriction” when starting NFCNDEFReaderSession with Personal Team / free account
Hi, I am trying to build a very simple iOS app in Xcode that starts an NFCNDEFReaderSession when I press a button. My goal right now is only to verify that the NFC reading process starts correctly on a real iPhone. I am not trying to publish the app on the App Store. When I try to start the session, I get this error in the console: -[NFCHardwareManager areFeaturesSupported:outError:]:435 XPC Error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.nfcd.service.corenfc was invalidated: Connection init failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.nfcd.service.corenfc was invalidated: Connection init failed at lookup with error 159 - Sandbox restriction.} and then my app reports that NFC is not available on this device. Important details: I added Near Field Communication Tag Reading in Signing & Capabilities. I added the NFC privacy usage description in the target settings. I am using a
0
0
116
2w
Reply to How to change app language on App Store Connect?
The value of the Languages field in the App Store is determined by the existence of the .lproj folders in your app bundle. When you add a localization for your app using Xcode, Xcode automatically adds the corresponding .lproj folder to your app bundle. Concretely, if you add the Italian localization to your app, localize the resources, and submit the new version to App Store, App Store will detect that your app supports Italian, and add Italian to the Languages field. For more information about how to localize your app, see Localizing and varying text with a string catalog, assuming that you are using SwiftUI + String catalog, the modern techniques. Note that, for Xcode to generate the .lproj folder, you need to localize the strings, and not just add the language. (For apps that don't use .lproj folders to manage localized resources, the system infers the support languages from the values of the CFBundleLocalizations key in their Info.plist.) Best, —— Ziqiao Chen  Worldwide Develo
2w
Reply to App Startup with Debugger in Xcode 26 is slow
I am now using Xcode 26.4 and an iOS 26.4.1 device iPhone 16 Pro, and the app performance at the start is still absolutely unusable, the app stutters. While on Xcode 16.4 everything is as fine as it was. Can somebody please take a look? Makes it really unproductive when working on Liquid Glass specific stuff. @Developer Tools Engineer @fpiovezan
2w
unable to create tasks to copy stub binary
Pulling my hair out here. After upgrading to Xcode Version 26.4.1 (17E202) I've started getting unable to create tasks to copy stub binary: can't determine architectures of binary: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Library/Application Support/MessagesApplicationStub/MessagesApplicationStub: Cannot open file handle for file at path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Library/Application Support/MessagesApplicationStub/MessagesApplicationStub: The file “MessagesApplicationStub” doesn’t exist. No matter what I do when trying to run the build (worked in previous versions). I've tried fresh install from App Store, direct package download, removing the SDKs, even previous versions and no matter what I get
1
0
155
2w
xcode 26.4.1 crash
Translated Report (Full Report Below) Process: Xcode [3078] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 26.4.1 (24909.0.3) Build Info: IDEApplication-24909000003000000~2 (17E202) Code Type: ARM-64 (Native) Role: Default Parent Process: launchd [1] Coalition: com.apple.dt.Xcode [1424] User ID: 501 Date/Time: 2026-04-24 17:26:21.8348 +0800 Launch Time: 2026-04-24 17:26:21.7161 +0800 Hardware Model: MacBookPro18,1 OS Version: macOS 26.5 (25F5058e) Release Type: User Crash Reporter Key: 7A149229-7AEE-0654-7878-1A66190C590A Incident Identifier: AC932530-5FCF-45B1-90F3-D26B40150344 Time Awake Since Boot: 3400 seconds System Integrity Protection: enabled Triggered by Thread: 0, Dispatch Queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid)) Exception Subtype: UNKNOWN_0x32 at 0x0000000112948000 Exception Codes: 0x0000000000000032, 0x0000000112948000 Termination Reason: Namespace CODESIGNING, Code 2, Invalid Page
1
0
434
2w
Minimum achievable latency for ending a Live Activity after app force-kill via APNs push-to-end
Context I'm building a study-timer feature for an iOS app (Flutter + native ActivityKit) that displays a Live Activity on the Lock Screen / Dynamic Island while a session is running. When the user force-quits the app by swiping it up from the App Switcher, I want the Live Activity to disappear as quickly as possible. I have already confirmed (from on-device testing and Apple Developer Forums thread 732418) that: applicationWillTerminate is not called on swipe-up force-kill, only on OS-initiated termination or crash. So synchronous Activity.end(...) from the app itself is not a solution for the force-kill path. Shortening staleDate does not visually dismiss the Live Activity once the app process is gone — the Widget Extension keeps rendering the last fresh snapshot and there is no body-reevaluation trigger on the stale transition post-app-death. (I implemented and verified this, then rolled it back.) The only Apple-official reliable mechanism is APNs push-to-end (Activity.request(pushType: .token) + server sen
0
0
86
2w
Reply to DeviceActivityReport extension not discovered at runtime (ClientError Code=2)
Hi Thanks a lot for your previous hint — it helped me fix the bundle setup. I now have the following confirmed: The report extension is correctly embedded under: Work4Fun.app/Extensions/UsageReportExtension.appex Info.plist uses: EXAppExtensionAttributes → EXExtensionPointIdentifier = com.apple.deviceactivityui.report-extension Entitlements include: com.apple.developer.family-controls com.apple.developer.family-controls.app-and-website-usage App Group The compiled binary clearly contains my code (UsageReportExtension.init, makeConfiguration, etc.) However, at runtime: DeviceActivityReport is instantiated (I see my view appear) System logs show: Plugin query method called But the extension is never actually executed: no init no makeConfiguration no output file written in App Group I also tried: deleting the app rebooting the device reinstalling from Xcode re-authorizing Screen Time → same result So it looks like: → iOS resolves the extension, but does not launch it Have you seen this behavior before?
Topic: App & System Services SubTopic: General Tags:
2w
I'm requesting help with Xcode debugging.
Hello everyone. I need help! I'm using Xcode solely to create an archive of a mobile application created with WinDev Mobile. When everything is working correctly, I simply retrieve the application's generated version from WinDev Mobile, launch the archive creation process, and add a new version to TestFlight! Then I can test the application on the iPhone. The current problem is that the application crashes, without any error message, in a specific use case. Hoping to get some help with this crash, I had the idea to test the application using Xcode. Once launched, a crash occurs if I follow the same process. There's an error message, which I'll paste below. What does this error mean? How can I relate it to my WinDev Mobile code? Have a good day.
1
0
46
2w
Reply to Xcode Command Line Tools update not wanted, but persists
Here is what happened: xxx/ % sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Password: xxx/ % sudo rm -rf /Library/Caches/com.apple.SoftwareUpdate/* sudo killall -9 softwareupdated zsh: no matches found: /Library/Caches/com.apple.SoftwareUpdate/* killall: warning: kill -kill 555: Operation not permitted xxx/ % softwareupdate -l Software Update Tool Finding available software Software Update found the following new or updated software: Label: Command Line Tools for Xcode 26.4-26.4.1 Title: Command Line Tools for Xcode 26.4, Version: 26.4.1, Size: 920104KiB, Recommended: YES, xxx/ %
2w
Certificate Error - Building a program for iOS for iPhone fails
Dear all, I am not able to transfer a programm to my iPhone 17, i get a certificate issue. Although i followed the general steps. If I was guided to this forum by the german apple support. Before in macOS Sonoma, with iOS 16 and iPhone 8 i have been able building programs for the iPhone. The Simulator has still no issues and works fine. Problem/Error: Certificate installation failed Installing a certificate in the keychain failed (Error Domain=DVTSecErrorDomain Code=-25295 The specified keychain is not a valid keychain file. UserInfo={NSLocalisedDescription=The specified keychain is not a valid keychain file.}) No profiles for '-.delme2' were found Xcode couldn't find any iOS App Development provisioning profiles matching '-.delme2'. Furthermore, when I try to download a certificate myself via (https://developer.apple.com/account/resources/) I get the error: Unable to find a team with the given Team ID 'XXXXXXXCENSORED' to which you belong. Please contact Apple Developer Program Support. https://deve
0
0
46
2w
Reply to Xcode Command Line Tools update not wanted, but persists
@BillInPoint Those are the official documentation steps that fixed the issue. We should investigate why isn't working for you. May I ask you to do some experimentation for me before we file a bug? I’m not positive as I did not want to test it in any of my computers, but I believe you can do this by running a few commands by opening the terminal and run the following command to delete the hidden file that triggers the update prompt from this documentation https://discussions.apple.com/thread/254465907?sortBy=rank sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Sometimes the system is still internally pointing to the deleted developer directory. Resetting it ensures macOS knows the tools are truly gone from https://discussions.apple.com/thread/253466183?sortBy=rank sudo xcode-select --reset Next, clear the cache where macOS stores pending software updates, and force the update daemon to restart from https://discussions.apple.com/thread/253598128?sortBy=rank sudo rm -rf /Libra
2w
Reply to ITMS-90429: Invalid Swift Support on libswiftCompatibilitySpan.dylib after update to Xcode 26.4.1
You didn't miss a think and it seems you are using the latest Xcode and still producing the ITMS-90429 error without moving the framework. Very weird. But we should get to the bottom of the issue. May I ask you to file a bug? nce you open the bug report, please post the FB number here for my reference. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Albert
  Worldwide Developer Relations.
2w
Can't enter sandbox environment for IAP testing on any of my apps - always getting -100 error with no [Environment: Sandbox] indicator
Body: I'm experiencing a persistent issue that has affected multiple apps I've developed, and I'm hoping to get some guidance from the community or Apple engineers. The Problem: When testing In-App Purchases, my app never enters the sandbox environment. The payment prompt does NOT show the [Environment: Sandbox] indicator, and I always receive error code -100 (Invalid Product Identifier). This issue has occurred across multiple apps I've built, including a previous app that I ultimately had to release as a paid download (rather than freemium with IAP) because I couldn't resolve this same problem. Now I'm facing the identical issue with my new app, AI Job Assistant. What I've Checked (all correct): ✅ Paid App Agreement status is Active in App Store Connect ✅ Bundle ID matches exactly between Xcode/HBuilderX and App Store Connect ✅ Product IDs in code match those created in App Store Connect (case-sensitive, no spaces) ✅ All IAP products have complete metadata (name, description, pricing, 640x920 scree
0
0
145
2w
Contacts permission not requested on production build (iPhone 16/17 Pro Max)
I’m encountering an issue where my app does not show the Contacts permission prompt in the production environment. This has been observed on iPhone 16 Pro Max and iPhone 17 Pro Max devices, while other iPhone models appear to behave correctly. The behavior is consistent across Xcode builds, TestFlight, and the App Store version when using the production bundle identifier. Instead of returning .notDetermined, the app receives the device’s previous Contacts authorization status, so the system permission prompt is never shown. Expected behavior On first launch after install, the app should prompt the user for Contacts access. Actual behavior (Production build) The app does not prompt for Contacts permission and instead appears to reuse the previous permission state: If the user previously had no access → after uninstall/reinstall, still no access (no prompt shown) If the user previously had limited access → after reinstall, access becomes empty (0 contacts), still no prompt If the user previously had fu
Replies
8
Boosts
0
Views
762
Activity
2w
Core NFC on iPhone returns “Sandbox restriction” when starting NFCNDEFReaderSession with Personal Team / free account
Hi, I am trying to build a very simple iOS app in Xcode that starts an NFCNDEFReaderSession when I press a button. My goal right now is only to verify that the NFC reading process starts correctly on a real iPhone. I am not trying to publish the app on the App Store. When I try to start the session, I get this error in the console: -[NFCHardwareManager areFeaturesSupported:outError:]:435 XPC Error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.nfcd.service.corenfc was invalidated: Connection init failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.nfcd.service.corenfc was invalidated: Connection init failed at lookup with error 159 - Sandbox restriction.} and then my app reports that NFC is not available on this device. Important details: I added Near Field Communication Tag Reading in Signing & Capabilities. I added the NFC privacy usage description in the target settings. I am using a
Replies
0
Boosts
0
Views
116
Activity
2w
Reply to How to change app language on App Store Connect?
The value of the Languages field in the App Store is determined by the existence of the .lproj folders in your app bundle. When you add a localization for your app using Xcode, Xcode automatically adds the corresponding .lproj folder to your app bundle. Concretely, if you add the Italian localization to your app, localize the resources, and submit the new version to App Store, App Store will detect that your app supports Italian, and add Italian to the Languages field. For more information about how to localize your app, see Localizing and varying text with a string catalog, assuming that you are using SwiftUI + String catalog, the modern techniques. Note that, for Xcode to generate the .lproj folder, you need to localize the strings, and not just add the language. (For apps that don't use .lproj folders to manage localized resources, the system infers the support languages from the values of the CFBundleLocalizations key in their Info.plist.) Best, —— Ziqiao Chen  Worldwide Develo
Replies
Boosts
Views
Activity
2w
Reply to App Startup with Debugger in Xcode 26 is slow
I am now using Xcode 26.4 and an iOS 26.4.1 device iPhone 16 Pro, and the app performance at the start is still absolutely unusable, the app stutters. While on Xcode 16.4 everything is as fine as it was. Can somebody please take a look? Makes it really unproductive when working on Liquid Glass specific stuff. @Developer Tools Engineer @fpiovezan
Replies
Boosts
Views
Activity
2w
unable to create tasks to copy stub binary
Pulling my hair out here. After upgrading to Xcode Version 26.4.1 (17E202) I've started getting unable to create tasks to copy stub binary: can't determine architectures of binary: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Library/Application Support/MessagesApplicationStub/MessagesApplicationStub: Cannot open file handle for file at path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Library/Application Support/MessagesApplicationStub/MessagesApplicationStub: The file “MessagesApplicationStub” doesn’t exist. No matter what I do when trying to run the build (worked in previous versions). I've tried fresh install from App Store, direct package download, removing the SDKs, even previous versions and no matter what I get
Replies
1
Boosts
0
Views
155
Activity
2w
xcode 26.4.1 crash
Translated Report (Full Report Below) Process: Xcode [3078] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 26.4.1 (24909.0.3) Build Info: IDEApplication-24909000003000000~2 (17E202) Code Type: ARM-64 (Native) Role: Default Parent Process: launchd [1] Coalition: com.apple.dt.Xcode [1424] User ID: 501 Date/Time: 2026-04-24 17:26:21.8348 +0800 Launch Time: 2026-04-24 17:26:21.7161 +0800 Hardware Model: MacBookPro18,1 OS Version: macOS 26.5 (25F5058e) Release Type: User Crash Reporter Key: 7A149229-7AEE-0654-7878-1A66190C590A Incident Identifier: AC932530-5FCF-45B1-90F3-D26B40150344 Time Awake Since Boot: 3400 seconds System Integrity Protection: enabled Triggered by Thread: 0, Dispatch Queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid)) Exception Subtype: UNKNOWN_0x32 at 0x0000000112948000 Exception Codes: 0x0000000000000032, 0x0000000112948000 Termination Reason: Namespace CODESIGNING, Code 2, Invalid Page
Replies
1
Boosts
0
Views
434
Activity
2w
Minimum achievable latency for ending a Live Activity after app force-kill via APNs push-to-end
Context I'm building a study-timer feature for an iOS app (Flutter + native ActivityKit) that displays a Live Activity on the Lock Screen / Dynamic Island while a session is running. When the user force-quits the app by swiping it up from the App Switcher, I want the Live Activity to disappear as quickly as possible. I have already confirmed (from on-device testing and Apple Developer Forums thread 732418) that: applicationWillTerminate is not called on swipe-up force-kill, only on OS-initiated termination or crash. So synchronous Activity.end(...) from the app itself is not a solution for the force-kill path. Shortening staleDate does not visually dismiss the Live Activity once the app process is gone — the Widget Extension keeps rendering the last fresh snapshot and there is no body-reevaluation trigger on the stale transition post-app-death. (I implemented and verified this, then rolled it back.) The only Apple-official reliable mechanism is APNs push-to-end (Activity.request(pushType: .token) + server sen
Replies
0
Boosts
0
Views
86
Activity
2w
Reply to DeviceActivityReport extension not discovered at runtime (ClientError Code=2)
Hi Thanks a lot for your previous hint — it helped me fix the bundle setup. I now have the following confirmed: The report extension is correctly embedded under: Work4Fun.app/Extensions/UsageReportExtension.appex Info.plist uses: EXAppExtensionAttributes → EXExtensionPointIdentifier = com.apple.deviceactivityui.report-extension Entitlements include: com.apple.developer.family-controls com.apple.developer.family-controls.app-and-website-usage App Group The compiled binary clearly contains my code (UsageReportExtension.init, makeConfiguration, etc.) However, at runtime: DeviceActivityReport is instantiated (I see my view appear) System logs show: Plugin query method called But the extension is never actually executed: no init no makeConfiguration no output file written in App Group I also tried: deleting the app rebooting the device reinstalling from Xcode re-authorizing Screen Time → same result So it looks like: → iOS resolves the extension, but does not launch it Have you seen this behavior before?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
I'm requesting help with Xcode debugging.
Hello everyone. I need help! I'm using Xcode solely to create an archive of a mobile application created with WinDev Mobile. When everything is working correctly, I simply retrieve the application's generated version from WinDev Mobile, launch the archive creation process, and add a new version to TestFlight! Then I can test the application on the iPhone. The current problem is that the application crashes, without any error message, in a specific use case. Hoping to get some help with this crash, I had the idea to test the application using Xcode. Once launched, a crash occurs if I follow the same process. There's an error message, which I'll paste below. What does this error mean? How can I relate it to my WinDev Mobile code? Have a good day.
Replies
1
Boosts
0
Views
46
Activity
2w
Reply to Xcode Command Line Tools update not wanted, but persists
Here is what happened: xxx/ % sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Password: xxx/ % sudo rm -rf /Library/Caches/com.apple.SoftwareUpdate/* sudo killall -9 softwareupdated zsh: no matches found: /Library/Caches/com.apple.SoftwareUpdate/* killall: warning: kill -kill 555: Operation not permitted xxx/ % softwareupdate -l Software Update Tool Finding available software Software Update found the following new or updated software: Label: Command Line Tools for Xcode 26.4-26.4.1 Title: Command Line Tools for Xcode 26.4, Version: 26.4.1, Size: 920104KiB, Recommended: YES, xxx/ %
Replies
Boosts
Views
Activity
2w
Certificate Error - Building a program for iOS for iPhone fails
Dear all, I am not able to transfer a programm to my iPhone 17, i get a certificate issue. Although i followed the general steps. If I was guided to this forum by the german apple support. Before in macOS Sonoma, with iOS 16 and iPhone 8 i have been able building programs for the iPhone. The Simulator has still no issues and works fine. Problem/Error: Certificate installation failed Installing a certificate in the keychain failed (Error Domain=DVTSecErrorDomain Code=-25295 The specified keychain is not a valid keychain file. UserInfo={NSLocalisedDescription=The specified keychain is not a valid keychain file.}) No profiles for '-.delme2' were found Xcode couldn't find any iOS App Development provisioning profiles matching '-.delme2'. Furthermore, when I try to download a certificate myself via (https://developer.apple.com/account/resources/) I get the error: Unable to find a team with the given Team ID 'XXXXXXXCENSORED' to which you belong. Please contact Apple Developer Program Support. https://deve
Replies
0
Boosts
0
Views
46
Activity
2w
Reply to Xcode Command Line Tools update not wanted, but persists
@BillInPoint Those are the official documentation steps that fixed the issue. We should investigate why isn't working for you. May I ask you to do some experimentation for me before we file a bug? I’m not positive as I did not want to test it in any of my computers, but I believe you can do this by running a few commands by opening the terminal and run the following command to delete the hidden file that triggers the update prompt from this documentation https://discussions.apple.com/thread/254465907?sortBy=rank sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Sometimes the system is still internally pointing to the deleted developer directory. Resetting it ensures macOS knows the tools are truly gone from https://discussions.apple.com/thread/253466183?sortBy=rank sudo xcode-select --reset Next, clear the cache where macOS stores pending software updates, and force the update daemon to restart from https://discussions.apple.com/thread/253598128?sortBy=rank sudo rm -rf /Libra
Replies
Boosts
Views
Activity
2w
Reply to ITMS-90429: Invalid Swift Support on libswiftCompatibilitySpan.dylib after update to Xcode 26.4.1
You didn't miss a think and it seems you are using the latest Xcode and still producing the ITMS-90429 error without moving the framework. Very weird. But we should get to the bottom of the issue. May I ask you to file a bug? nce you open the bug report, please post the FB number here for my reference. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Albert
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
2w
Reply to Does your Canvas in Xcode crash all the time due to AXRemoteElement-BackgroundFetch?
I'm seeing the crash in the iOS 26.4 preview canvas; the Xcode version doesn't matter. ❌ Xcode 26.4 / iOS 26.4 preview canvas ✅ Xcode 26.4 / iOS 26.3 preview canvas ❌ Xcode 26.3 / iOS 26.4 preview canvas ✅ Xcode 26.3 / iOS 26.3 preview canvas
Replies
Boosts
Views
Activity
2w
Can't enter sandbox environment for IAP testing on any of my apps - always getting -100 error with no [Environment: Sandbox] indicator
Body: I'm experiencing a persistent issue that has affected multiple apps I've developed, and I'm hoping to get some guidance from the community or Apple engineers. The Problem: When testing In-App Purchases, my app never enters the sandbox environment. The payment prompt does NOT show the [Environment: Sandbox] indicator, and I always receive error code -100 (Invalid Product Identifier). This issue has occurred across multiple apps I've built, including a previous app that I ultimately had to release as a paid download (rather than freemium with IAP) because I couldn't resolve this same problem. Now I'm facing the identical issue with my new app, AI Job Assistant. What I've Checked (all correct): ✅ Paid App Agreement status is Active in App Store Connect ✅ Bundle ID matches exactly between Xcode/HBuilderX and App Store Connect ✅ Product IDs in code match those created in App Store Connect (case-sensitive, no spaces) ✅ All IAP products have complete metadata (name, description, pricing, 640x920 scree
Replies
0
Boosts
0
Views
145
Activity
2w