Search results for

“xcode github”

96,025 results found

Post

Replies

Boosts

Views

Activity

Reply to Xcode won't sign into ChatGPT Codex account anymore
Hi, thank you again. We were unable to reproduce this on our end with Xcode 26.4.1 and Codex 0.129.0-alpha.9, so it may be something specific to your configuration. Could you navigate to Xcode Settings → Components → Other Components → Codex and check the version listed there? It should read 0.129.0-alpha.9. If it shows a different version or indicates an update is available, try deleting it and redownloading the agent executable, then attempt signing in again. Let us know if that resolves the issue or if you're still seeing the login loop afterward, and we can dig deeper from there.
12h
static analyzer error in std::sort
I'm getting a static analysis warning on the following code. I don't think it could be my error, but I guess it's more likely a static analysis false positive than a C++ standard library bug. The warning says Method called on moved-from object of type 'std::basic_string'. Tested in Xcode 26.5 RC. Reported as FB22735405. #include #include #include #include template < class traits = std::char_traits, class Allocator = std::allocator > struct UTF8StringLess { bool operator()( const std::basic_string& inFirst, const std::basic_string& inSecond ) const; }; template inline bool UTF8StringLess::operator()( const std::basic_string& inFirst, const std::basic_string& inSecond ) const { CFStringRef theFirst = ::CFStringCreateWithCString( nullptr, inFirst.c_str(), kCFStringEncodingUTF8 ); CFStringRef theSecond = ::CFStringCreateWithCString( nullptr, inSecond.c_str(), kCFStringEncodingUTF8 ); CFComparisonResult compResult = ::CFStringCompare( theFirst, theSecond, kCFCompareCaseInsensitiv
1
0
12
14h
[iOS 26.x] WKWebView crashes with NSInternalInconsistencyException — KVO inconsistency on configuration.enforcesChildRestrictions from STScreenTimeConfigurationObserver
Summary We are seeing a recurring fatal NSInternalInconsistencyException on iOS 26.x devices. The crash originates entirely from system frameworks (Foundation / WebKit / Screen Time / NSXPCConnection) — there are no app frames in the stack. The exception is raised from an XPC reply on a worker thread, so the host app cannot wrap it in @try/@catch. The crash appears to be a KVO consistency check failing inside the platform's internal Screen Time observer (STScreenTimeConfigurationObserver) when it observes WKWebView's configuration.enforcesChildRestrictions key path. The exception message states the value of the intermediate key configuration changed without an appropriate KVO notification. Environment iOS versions: 26.2.1 (also seen on 26.0.x – 26.2.x) Devices: iPhone 13 (iPhone14,5), iPhone 16 Plus, others App orientation: portrait Process state at crash: BACKGROUND (most occurrences) App uses WKWebView in several screens (link preview, in-app web, 3rd-party SDK web views) Crash is
1
0
185
15h
Reply to Agents in Xcode: Codex Sign In not working
Thank you for your post. Are you encountering the issue with the RC 26.5? I think I have seen that issue with previous version where the tokens getting stuck in your Keychain. Ensure you are actively connected without VPN or proxies. As requires a stable connection to internal services to validate the token. If your network connection dropped briefly during the auth handoff, it will fail silently and leave you in the Not Signed In state. Also can you delete any cache? In your terminal: rm -rf ~/Library/Caches/com.apple.dt.Xcode If the issue persists please let me know and we can file a bug to see the issue in Xcode 25.6 RC. Albert
  Worldwide Developer Relations.
16h
Can't enroll; support is totally useless
https://developer.apple.com/enroll/identity/status Your enrollment could not be completed. Your enrollment in the Apple Developer Program could not be completed at this time. That's all I get. I contacted email support, they took seven days to respond with this message: Hello, Thank you for contacting Developer Support. I would first like to apologize for this delayed answer. It is certainly not the normal waiting time for an answer from Developer Support. We are currently facing a huge number of requests from our customers and your patience is well appreciated. I understand you are having issues submitting your enrollment. We can’t verify your identity with the Apple Developer app or provide further assistance with the Apple Account for Apple developer programs. You can still take advantage of great content using your Apple Account in Xcode to develop and test apps on your own device. Learn more about Xcode development. If you have additional questions related to this request, reply to this
2
0
72
16h
Xcode 26 – Organizer does not show “App Store Connect” for watchOS standalone app (only Release Testing available)
Hello, I am trying to upload a watchOS standalone app to App Store Connect using Xcode 26.3, but Organizer does not show the “App Store Connect” upload option. It only displays: • Release Testing (Ad Hoc) • Enterprise • Debugging Project setup • Target type: watchOS App (standalone, not companion) • PRODUCT_TYPE = com.apple.product-type.application • PRODUCT_BUNDLE_PACKAGE_TYPE = APPL • WRAPPER_EXTENSION = app • SUPPORTED_PLATFORMS = watchos watchsimulator • Archive configuration: Release • Base SDK: watchOS The app does not depend on iOS. Bundle ID Originally: com.example.app.watchkitapp Recreated as: com.example.app HealthKit capability enabled in: • Developer Portal • Xcode (Signing & Capabilities) Signing • Apple Distribution certificate active • App Store provisioning profile created • Manual signing configured for Release (Apple Distribution + App Store profile) • Also tested Automatic signing • Deleted old Ad Hoc profiles • Cleared Derived Data and regenerated archive App Store Co
3
0
136
22h
Reply to Error downloading the Predictive Code Completion Model
I tried almost all the methods mentioned above, but none of them worked for me. However, I eventually solved it. It was quite simple as well. Close SIP (csrutil disable). Delete folders exceeding 2GB in /System/Library/AssetsV2/com_apple_MobileAsset_UAF_FM_CodeLM/purpose_auto/ Open Xcode and re-download the model done 上面的方法我几乎都试过了,对我来说是不工作的。但是,最后我还是解决了。也很简单。 关闭sip。 删除/System/Library/AssetsV2/com_apple_MobileAsset_UAF_FM_CodeLM/purpose_auto/中超过2G的文件夹 打开Xcode重新下载model done
22h
Error downloading the Predictive Code Completion Model
Hi, I'm setting up Xcode and after updating MacOS to 15.2 and Xcode to 16.2, I cannot download the Predictive Code Completion Model. I've done some research and I haven't found any solution, specially since most people suggest that it randomly fixed itself, which for me hasn't been the case. I've tried restarting my Mac, uninstalling and reinstalling Xcode multiple times, I've also reinstalled MacOS from Recovery and haven't found any success (I'm also not running Xcode inside a VM, as I've seen this can cause some problems in this case). This is the error that I receive when I attempt to download the model: And here are the details: The operation couldn’t be completed. (IDELanguageModelKit.IDEModelDownloadAdapter.(unknown context at $11eba9a90).DownloadError error 3.) Domain: IDELanguageModelKit.IDEModelDownloadAdapter.(unknown context at $11eba9a90).DownloadError Code: 3 User Info: { DVTErrorCreationDateKey = 2024-12-26 23:09:25 +0000; } -- There was an error processing t
5
0
1.2k
22h
Xcode 16.2 : Unable to install Platform Support Runtimes + Predictive Code Completion Model
Summary : I tried everything from uninstalling completely XCODE to upgrading the macOS without any success. Cleanup Xcode & Upgrade macOS to 15.3.1 This scripts were used to clean up the xcode and residual files. Also used CleanMyMac for the rest ! VERSION= # -16.2.0 ## Xcode Deep Clean # 1. Delete Xcode Itself sudo rm -rf /Applications/Xcode${VERSION}.app # 2. Remove Xcode Cache and Derived Data sudo rm -rf ~/Library/Caches/com.apple.dt.Xcode sudo rm -rf ~/Library/Developer/Xcode sudo rm -rf ~/Library/Application Support/Xcode sudo rm -rf ~/Library/Developer/CoreSimulator sudo rm -rf ~/Library/Developer/Shared # 3. Remove Command Line Tools (CLT) sudo rm -rf /Library/Developer/CommandLineTools # 4. Remove Xcode Preferences and Supporting Files sudo rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist sudo rm -rf ~/Library/Logs/CoreSimulator sudo rm -rf ~/Library/Saved Application State/com.apple.dt.Xcode.savedState
13
0
1.4k
22h
setAlternateIconName system alert ignores CFBundleLocalizations and forces English in iOS 26.1+ (Unexpectedly triggers sceneWillResignActive)
Environment: Xcode Version: Xcode 26.3 Affected iOS Versions: iOS 26.1 and later Working iOS Versions: iOS 26.0 and earlier Tested Devices: iPhone 15 Pro (iOS 26.2) - ❌ Bug presents iPhone 17 (iOS 26.1) - ❌ Bug presents iPhone Air (iOS 26.0) - ✅ Works as expected iPhone 16 Pro Max (iOS 18.0) - ✅ Works as expected Description: We have identified a severe localization regression regarding the setAlternateIconName(_:completionHandler:) API starting from iOS 26.1. Our application is strictly restricted to support only Traditional Chinese (zh-TW / zh-Hant). We have correctly configured CFBundleLocalizations, CFBundleDevelopmentRegion, and explicitly set CFBundleAllowMixedLocalizations to YES in our Info.plist. In iOS 26.0 and earlier, when changing the app icon, the system alert correctly displays in Traditional Chinese. However, in iOS 26.1 and later, the alert unexpectedly falls back to English, completely ignoring the app's localization constraints and the user's preferred device language. Cru
2
0
362
22h
SwiftData in-memory ModelContainer causes DefaultStore validation errors on consecutive xcodebuild test runs
When running parallel Swift Testing tests that each create their own in-memory ModelContainer, the first xcodebuild test run succeeds but all subsequent runs fail with DefaultStore save failed validation errors — unless DerivedData is deleted between runs. Setup Each test suite creates an isolated in-memory container with a unique name: ModelConfiguration(UUID().uuidString, schema: schema, isStoredInMemoryOnly: true) The @Model class has non-optional properties (e.g. var v: String, var entityDicMoveNr: Int) that are always set in init. Symptoms on second run SwiftData.DefaultStore save failed with error: Error Domain=NSCocoaErrorDomain Code=1560 Multiple validation errors occurred. NSValidationErrorKey=v, NSValidationErrorValue=null NSValidationErrorKey=entityDicMoveNr, NSValidationErrorValue=null NSValidationErrorKey=historyBackup, NSValidationErrorValue=null The errors appear before test code executes — during SwiftData's internal DefaultStore auto-save. Properties that are always initialized in Swift show
2
0
113
1d
RealityKit custom component: `has()` returns `true` but typed subscript returns `nil` in SwiftPM test runner
swift test (SwiftPM CLI) fails to decode RealityKit custom components from USD files, even though entity.components.has(MyComponent.self) returns true. Typed access via entity.components[MyComponent.self] returns nil. This forces projects that use RealityKit custom components to use xcodebuild test exclusively. Minimal repro: github.com/mesqueeb/swiftpm-realitykit-custom-component-repro Repro steps git clone https://github.com/mesqueeb/swiftpm-realitykit-custom-component-repro cd swiftpm-realitykit-custom-component-repro swift test --filter componentsPresentButNotDecodableInSwiftTest Observed ✅ entity.components.has(ReproComponent.self) returns true ❌ entity.components[ReproComponent.self] returns nil Expected If has(...) returns true for a registered custom component, typed lookup should decode and return non-nil. Notes Running the same test via xcodebuild test works correctly The component is properly registered and the USDA file correctly references it This affects any project that relies on custom Reality
1
0
196
1d
Reply to Xcode won't sign into ChatGPT Codex account anymore
Hi, thank you again. We were unable to reproduce this on our end with Xcode 26.4.1 and Codex 0.129.0-alpha.9, so it may be something specific to your configuration. Could you navigate to Xcode Settings → Components → Other Components → Codex and check the version listed there? It should read 0.129.0-alpha.9. If it shows a different version or indicates an update is available, try deleting it and redownloading the agent executable, then attempt signing in again. Let us know if that resolves the issue or if you're still seeing the login loop afterward, and we can dig deeper from there.
Replies
Boosts
Views
Activity
12h
static analyzer error in std::sort
I'm getting a static analysis warning on the following code. I don't think it could be my error, but I guess it's more likely a static analysis false positive than a C++ standard library bug. The warning says Method called on moved-from object of type 'std::basic_string'. Tested in Xcode 26.5 RC. Reported as FB22735405. #include #include #include #include template < class traits = std::char_traits, class Allocator = std::allocator > struct UTF8StringLess { bool operator()( const std::basic_string& inFirst, const std::basic_string& inSecond ) const; }; template inline bool UTF8StringLess::operator()( const std::basic_string& inFirst, const std::basic_string& inSecond ) const { CFStringRef theFirst = ::CFStringCreateWithCString( nullptr, inFirst.c_str(), kCFStringEncodingUTF8 ); CFStringRef theSecond = ::CFStringCreateWithCString( nullptr, inSecond.c_str(), kCFStringEncodingUTF8 ); CFComparisonResult compResult = ::CFStringCompare( theFirst, theSecond, kCFCompareCaseInsensitiv
Replies
1
Boosts
0
Views
12
Activity
14h
[iOS 26.x] WKWebView crashes with NSInternalInconsistencyException — KVO inconsistency on configuration.enforcesChildRestrictions from STScreenTimeConfigurationObserver
Summary We are seeing a recurring fatal NSInternalInconsistencyException on iOS 26.x devices. The crash originates entirely from system frameworks (Foundation / WebKit / Screen Time / NSXPCConnection) — there are no app frames in the stack. The exception is raised from an XPC reply on a worker thread, so the host app cannot wrap it in @try/@catch. The crash appears to be a KVO consistency check failing inside the platform's internal Screen Time observer (STScreenTimeConfigurationObserver) when it observes WKWebView's configuration.enforcesChildRestrictions key path. The exception message states the value of the intermediate key configuration changed without an appropriate KVO notification. Environment iOS versions: 26.2.1 (also seen on 26.0.x – 26.2.x) Devices: iPhone 13 (iPhone14,5), iPhone 16 Plus, others App orientation: portrait Process state at crash: BACKGROUND (most occurrences) App uses WKWebView in several screens (link preview, in-app web, 3rd-party SDK web views) Crash is
Replies
1
Boosts
0
Views
185
Activity
15h
Reply to Agents in Xcode: Codex Sign In not working
Thank you for your post. Are you encountering the issue with the RC 26.5? I think I have seen that issue with previous version where the tokens getting stuck in your Keychain. Ensure you are actively connected without VPN or proxies. As requires a stable connection to internal services to validate the token. If your network connection dropped briefly during the auth handoff, it will fail silently and leave you in the Not Signed In state. Also can you delete any cache? In your terminal: rm -rf ~/Library/Caches/com.apple.dt.Xcode If the issue persists please let me know and we can file a bug to see the issue in Xcode 25.6 RC. Albert
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
16h
Can't enroll; support is totally useless
https://developer.apple.com/enroll/identity/status Your enrollment could not be completed. Your enrollment in the Apple Developer Program could not be completed at this time. That's all I get. I contacted email support, they took seven days to respond with this message: Hello, Thank you for contacting Developer Support. I would first like to apologize for this delayed answer. It is certainly not the normal waiting time for an answer from Developer Support. We are currently facing a huge number of requests from our customers and your patience is well appreciated. I understand you are having issues submitting your enrollment. We can’t verify your identity with the Apple Developer app or provide further assistance with the Apple Account for Apple developer programs. You can still take advantage of great content using your Apple Account in Xcode to develop and test apps on your own device. Learn more about Xcode development. If you have additional questions related to this request, reply to this
Replies
2
Boosts
0
Views
72
Activity
16h
Reply to Spatial Audio: <<<< FigAudioSession(AV) >>>> signalled err=-19224 at <>:612
Unmodified code from here https://developer.apple.com/documentation/visionos/playing-spatial-audio-in-visionos I am not mirroring my screen. No sound connected to Xcode and I get the error in the log. No sound if my VisionPro is not connected to Xcode. I have a Gen 1 Vision Pro and using Xcode 26.4.1
Replies
Boosts
Views
Activity
16h
Spatial Audio: <<<< FigAudioSession(AV) >>>> signalled err=-19224 at <>:612
Ok trying to play Spatial Audio on my VisionPro. OS26.4, using Xcode 26.4.1. Every attempt gives me the following error. <<<< FigAudioSession(AV) >>>> signalled err=-19224 at <>:612 I have tried the sample code at https://developer.apple.com/documentation/visionos/playing-spatial-audio-in-visionos and it gives the same error.
Replies
2
Boosts
0
Views
423
Activity
16h
Xcode 26 – Organizer does not show “App Store Connect” for watchOS standalone app (only Release Testing available)
Hello, I am trying to upload a watchOS standalone app to App Store Connect using Xcode 26.3, but Organizer does not show the “App Store Connect” upload option. It only displays: • Release Testing (Ad Hoc) • Enterprise • Debugging Project setup • Target type: watchOS App (standalone, not companion) • PRODUCT_TYPE = com.apple.product-type.application • PRODUCT_BUNDLE_PACKAGE_TYPE = APPL • WRAPPER_EXTENSION = app • SUPPORTED_PLATFORMS = watchos watchsimulator • Archive configuration: Release • Base SDK: watchOS The app does not depend on iOS. Bundle ID Originally: com.example.app.watchkitapp Recreated as: com.example.app HealthKit capability enabled in: • Developer Portal • Xcode (Signing & Capabilities) Signing • Apple Distribution certificate active • App Store provisioning profile created • Manual signing configured for Release (Apple Distribution + App Store profile) • Also tested Automatic signing • Deleted old Ad Hoc profiles • Cleared Derived Data and regenerated archive App Store Co
Replies
3
Boosts
0
Views
136
Activity
22h
Reply to Error downloading the Predictive Code Completion Model
I tried almost all the methods mentioned above, but none of them worked for me. However, I eventually solved it. It was quite simple as well. Close SIP (csrutil disable). Delete folders exceeding 2GB in /System/Library/AssetsV2/com_apple_MobileAsset_UAF_FM_CodeLM/purpose_auto/ Open Xcode and re-download the model done 上面的方法我几乎都试过了,对我来说是不工作的。但是,最后我还是解决了。也很简单。 关闭sip。 删除/System/Library/AssetsV2/com_apple_MobileAsset_UAF_FM_CodeLM/purpose_auto/中超过2G的文件夹 打开Xcode重新下载model done
Replies
Boosts
Views
Activity
22h
Error downloading the Predictive Code Completion Model
Hi, I'm setting up Xcode and after updating MacOS to 15.2 and Xcode to 16.2, I cannot download the Predictive Code Completion Model. I've done some research and I haven't found any solution, specially since most people suggest that it randomly fixed itself, which for me hasn't been the case. I've tried restarting my Mac, uninstalling and reinstalling Xcode multiple times, I've also reinstalled MacOS from Recovery and haven't found any success (I'm also not running Xcode inside a VM, as I've seen this can cause some problems in this case). This is the error that I receive when I attempt to download the model: And here are the details: The operation couldn’t be completed. (IDELanguageModelKit.IDEModelDownloadAdapter.(unknown context at $11eba9a90).DownloadError error 3.) Domain: IDELanguageModelKit.IDEModelDownloadAdapter.(unknown context at $11eba9a90).DownloadError Code: 3 User Info: { DVTErrorCreationDateKey = 2024-12-26 23:09:25 +0000; } -- There was an error processing t
Replies
5
Boosts
0
Views
1.2k
Activity
22h
Xcode 16.2 : Unable to install Platform Support Runtimes + Predictive Code Completion Model
Summary : I tried everything from uninstalling completely XCODE to upgrading the macOS without any success. Cleanup Xcode & Upgrade macOS to 15.3.1 This scripts were used to clean up the xcode and residual files. Also used CleanMyMac for the rest ! VERSION= # -16.2.0 ## Xcode Deep Clean # 1. Delete Xcode Itself sudo rm -rf /Applications/Xcode${VERSION}.app # 2. Remove Xcode Cache and Derived Data sudo rm -rf ~/Library/Caches/com.apple.dt.Xcode sudo rm -rf ~/Library/Developer/Xcode sudo rm -rf ~/Library/Application Support/Xcode sudo rm -rf ~/Library/Developer/CoreSimulator sudo rm -rf ~/Library/Developer/Shared # 3. Remove Command Line Tools (CLT) sudo rm -rf /Library/Developer/CommandLineTools # 4. Remove Xcode Preferences and Supporting Files sudo rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist sudo rm -rf ~/Library/Logs/CoreSimulator sudo rm -rf ~/Library/Saved Application State/com.apple.dt.Xcode.savedState
Replies
13
Boosts
0
Views
1.4k
Activity
22h
Reply to Xcode 16.2 : Unable to install Platform Support Runtimes + Predictive Code Completion Model
I tried almost all the methods mentioned above, but none of them worked for me. However, I eventually solved it. It was quite simple as well. Close SIP. Delete folders exceeding 2GB in /System/Library/AssetsV2/com_apple_MobileAsset_UAF_FM_CodeLM/purpose_auto/ Open Xcode and re-download the model done
Replies
Boosts
Views
Activity
22h
setAlternateIconName system alert ignores CFBundleLocalizations and forces English in iOS 26.1+ (Unexpectedly triggers sceneWillResignActive)
Environment: Xcode Version: Xcode 26.3 Affected iOS Versions: iOS 26.1 and later Working iOS Versions: iOS 26.0 and earlier Tested Devices: iPhone 15 Pro (iOS 26.2) - ❌ Bug presents iPhone 17 (iOS 26.1) - ❌ Bug presents iPhone Air (iOS 26.0) - ✅ Works as expected iPhone 16 Pro Max (iOS 18.0) - ✅ Works as expected Description: We have identified a severe localization regression regarding the setAlternateIconName(_:completionHandler:) API starting from iOS 26.1. Our application is strictly restricted to support only Traditional Chinese (zh-TW / zh-Hant). We have correctly configured CFBundleLocalizations, CFBundleDevelopmentRegion, and explicitly set CFBundleAllowMixedLocalizations to YES in our Info.plist. In iOS 26.0 and earlier, when changing the app icon, the system alert correctly displays in Traditional Chinese. However, in iOS 26.1 and later, the alert unexpectedly falls back to English, completely ignoring the app's localization constraints and the user's preferred device language. Cru
Replies
2
Boosts
0
Views
362
Activity
22h
SwiftData in-memory ModelContainer causes DefaultStore validation errors on consecutive xcodebuild test runs
When running parallel Swift Testing tests that each create their own in-memory ModelContainer, the first xcodebuild test run succeeds but all subsequent runs fail with DefaultStore save failed validation errors — unless DerivedData is deleted between runs. Setup Each test suite creates an isolated in-memory container with a unique name: ModelConfiguration(UUID().uuidString, schema: schema, isStoredInMemoryOnly: true) The @Model class has non-optional properties (e.g. var v: String, var entityDicMoveNr: Int) that are always set in init. Symptoms on second run SwiftData.DefaultStore save failed with error: Error Domain=NSCocoaErrorDomain Code=1560 Multiple validation errors occurred. NSValidationErrorKey=v, NSValidationErrorValue=null NSValidationErrorKey=entityDicMoveNr, NSValidationErrorValue=null NSValidationErrorKey=historyBackup, NSValidationErrorValue=null The errors appear before test code executes — during SwiftData's internal DefaultStore auto-save. Properties that are always initialized in Swift show
Replies
2
Boosts
0
Views
113
Activity
1d
RealityKit custom component: `has()` returns `true` but typed subscript returns `nil` in SwiftPM test runner
swift test (SwiftPM CLI) fails to decode RealityKit custom components from USD files, even though entity.components.has(MyComponent.self) returns true. Typed access via entity.components[MyComponent.self] returns nil. This forces projects that use RealityKit custom components to use xcodebuild test exclusively. Minimal repro: github.com/mesqueeb/swiftpm-realitykit-custom-component-repro Repro steps git clone https://github.com/mesqueeb/swiftpm-realitykit-custom-component-repro cd swiftpm-realitykit-custom-component-repro swift test --filter componentsPresentButNotDecodableInSwiftTest Observed ✅ entity.components.has(ReproComponent.self) returns true ❌ entity.components[ReproComponent.self] returns nil Expected If has(...) returns true for a registered custom component, typed lookup should decode and return non-nil. Notes Running the same test via xcodebuild test works correctly The component is properly registered and the USDA file correctly references it This affects any project that relies on custom Reality
Replies
1
Boosts
0
Views
196
Activity
1d