Search results for

“xcode github”

96,036 results found

Post

Replies

Boosts

Views

Activity

Claude integration in Xcode 26.4 results in 401 after some time
Setup: macOS 26.4 Xcode 26.4 Claude premium subscription Claude account logged in Xcode settings The issue usually surfaces after initially setting up Claude integration in Xcode and then leaving Xcode open for at least a day or so. The integration works initially (right after logging in). But then after some time it starts responding with this error. Failed to authenticate. API Error: 401 {type:error,error:{type:authentication_error,message:OAuth token has expired. Please obtain a new token or refresh your existing token.},request_id:req_011Ya.....} Restarting Xcode does not help. The only thing that helps is log out from Claude account and log back in. Sounds like the token refresh logic is broken or missing. Please improve moving forward.
1
0
189
Apr ’26
Reply to Layout recursion error message
Hi Quinn, thanks for the reply, that's very interesting. Practically, I have to type the name of each library generating my logs: typing the Process name doesn't seem to log anything (although the system proposes it to me). On the other side, if I type the PID, then I get all system logs again. Even for the app's main module, I have to enter a Library name of this form: myApp.debug.dylib. But apart of that, it works very well: I can event retrieve my printf statements by adding stdio in the filter. The only issue is that such a composite filter is a little bit tricky to enter. I thought that it was possible to reuse it through the Recents section of the filter menu. But, after giving a try, it appears that this section is cleared on each Xcode launch... that's too bad. It would be very useful to have a way to store frequent filters some way, or maybe to active one from the Scheme (e.g. as it can be done for the OS_ACTIVITY_MODE). Anyway, your post was very helpful, thanks again!
Topic: UI Frameworks SubTopic: AppKit Tags:
Apr ’26
Reply to Network access blocked by system
Thanks for the post. I wanted to make sure to see as nothing has changed on Xcode, but could be macOS requesting for permission. What version of macOS and build are you using? macOS manages privacy permissions using a system called TCC. When you build and run your app via Xcode, the system checks the app's signature to see if it has permission, and creates a new entry in System Settings. I have an idea, however there are engineers here that will have better suggestions than mine. Looking forward to other developers suggestions. I would personally check and reset the bundle ID. Check System Settings > Privacy & Security > Local Network. Is there anything there? Open the Terminal app on your Mac. You will need your app's Bundle Identifier (e.g., com.yourname.yourapp). You can find this in Xcode by clicking your project file in the navigator and looking under the General tab. Run the following command, replacing [YOUR_BUNDLE_ID] with your actual bundle identifier: tccutil res
Apr ’26
Network access blocked by system
I’m building an app on macOS 26.4 with Xcode 26.4. When I build and run my app it started prompting me for network access, which it didn’t do before with Xcode 26. It did that repeatedly, and I had been approving the prompts and the app had been working. Now the app’s network features are not working, and I assume its because its being blocked by macOS, even though I accepted the network requests each time. In System Settings - Privacy and Security - Local Network, the app has many repeated entries, like 20, and all of them are turned on.
2
0
129
Apr ’26
Reply to Apple Developer Program License Agreement Updated & Accepted
Thank you so much for the post. There is a part that was interesting to me, you said you having issues with Visual Studio 2022? What about when you use Xcode 26.x+? Do you have the same issue? Go to the Mac you are using as your build host. Open Xcode. Go to Xcode (in the top menu bar) > Settings (or Preferences) > Accounts. Select your Apple ID. If it says your session has expired or requires action, sign in again. Even if it looks fine, click the - (minus) button to remove the account, and then the + (plus) button to add it back. Are you the owner of the developer account? Only the Account Holder can accept the main Apple Developer Program License Agreement. Are you are an Admin or Developer on a company account? Please let me know about Xcode? Thanks Albert Pascual
  Worldwide Developer Relations.
Apr ’26
[KeyChain Framework] KeyChain Item is accessible post App Transfer without rebuilding the KeyChain
We have utilised the KeyChain Framework for Adding items into KeyChain. We have Generated KeyPair using 'SecKeyGeneratePair' API as below (OSStatus)generateAssymetricKeyPair:(NSUInteger)bitSize{ OSStatus sanityCheck = noErr; SecKeyRef publicKeyRef = NULL; SecKeyRef privateKeyRef = NULL; NSString *appGrpIdentifier = @group.com.sample.xyz // Set the private key attributes. NSDictionary *privateKeyAttr = @{(id)kSecAttrIsPermanent: @YES, (id)kSecAttrApplicationTag: [TAG_ASSYMETRIC_PRIVATE_KEY dataUsingEncoding:NSUTF8StringEncoding], (id)kSecAttrCanEncrypt:@NO, (id)kSecAttrCanDecrypt:@YES, (id)kSecAttrAccessGroup: appGrpIdentifier }; // Set the public key attributes. NSDictionary *publicKeyAttr = @{(id)kSecAttrIsPermanent: @YES, (id)kSecAttrApplicationTag: [TAG_ASSYMETRIC_PUBLIC_KEY dataUsingEncoding:NSUTF8StringEncoding], (id)kSecAttrCanEncrypt:@YES, (id)kSecAttrCanDecrypt:@NO, (id)kSecAttrAccessGroup: appGrpIdentifier }; // Set top level attributes for the keypair. NSDictionary *keyPairAttr = @{(id)kSecAttrKeyTy
1
0
117
Apr ’26
Xcode 26.4 refuses to pair with my Series 4 iWatch
Watch has latest watchOS 10.6.2. Xcode tries to connect and fails. I insured that both the Mac and the watch are using the same WiFi network (2.4) - and the mac has no other network interface. I have successfully paired to my iPhone and iPad. I quit and restarted Xcode. I close and reopen the Devices and Simulators window (to get it to retry). I restarted my watch. The watch is at 98% battery level. Suggestions? [Or do I need to purchase a new watch?]
4
0
189
Apr ’26
Reply to Layout recursion error message
I don’t have any good input on the original issue that kicked off this thread, but I wanted to address this: [quote='883180022, -dp, /thread/806471?answerId=883180022#883180022, /profile/-dp'] if someone knows a good solution to disable all system logs while keeping my own [/quote] Xcode 15 introduced a new Console area with excellent integration with the system log. For example, consider this program: import Foundation import Network import os.log let log = Logger(subsystem: , category: ) func main() { let c = NWConnection(host: example.com, port: 80, using: .tls) c.stateUpdateHandler = { newState in log.log(did change state, state: ( (newState) )) } c.start(queue: .main) log.log(will enter main loop) dispatchMain() } main() IMPORTANT This is not meant to work. It tries to connect to the HTTP port using TLS, which won’t end well. The goal is to generate a bunch of log entries from Network framework, which it absolutely does (-: When I run this (Xcode 26.4 on macOS 26.3.1) I see this: will e
Topic: UI Frameworks SubTopic: AppKit Tags:
Apr ’26
Reply to App Bundle ID
App Store Connect doesn’t have a way to do this. From its perspective, the bundle ID uniquely identifies the app and there’s no way to merge app records, or change the bundle ID for an app record. With Xcode this isn’t usually a problem, because you can change the bundle ID for your app in the project. So, you’d take your new project and change its bundle ID to be that of the original test project and away you go. I don’t know if that’s possible with your third-party tooling; I recommend that you ask that via the support channel for that tooling. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Apr ’26
watchOS 11.2 Debug Tunnel Timeout: iPhone Connected, Watch stuck in "Waiting to Reconnect" (Xcode 16.4)
Hello, I am experiencing a critical blocking issue developing a watchOS app. While the iPhone 15 Pro Max is fully Connected via USB (confirmed green light in Network Settings), the Apple Watch Series 7 (watchOS 11.2) remains unreachable by Xcode. Mac: Mac Mini (macOS 15/16). Devices: iPhone 15 Pro Max (iOS 18+), Apple Watch Series 7 (watchOS 11.2). Xcode: 16.4 / Build 26.4. Hardware: Direct USB-C connection (USB 2.0 480Mb/s protocol). Technical Evidence of Protocol Failure: Missing Staging Folders: ~/Library/Developer/Xcode/watchOS DeviceSupport does not exist, implying the handshake fails before symbol stripping/sync begins. CoreDevice Error: Consistently receiving: Previous preparation error: A connection to this device could not be established.; Timed out while attempting to establish tunnel using negotiated network parameters. Missing Keychain Entries: No com.apple.coredevice keys found in Keychain Access, suggesting the Trusted Host handshake is incomplete. mDNS/Discovery: xcru
1
0
50
Apr ’26
Reply to Xcode Source Control pull/push hangs indefinitely, terminal Git works normally After Tahoe 26.3 (25D125) Update
Same issue here, it started for me during the developer beta and never went away. I was also getting the error about post-quantum key exchange. I upgraded my git server (a little docker container running the default git and openssh setup) and the warning went away. Xcode still hangs on pull/fetch though. I can push without issue. I can pull from the command line without issue.
Apr ’26
Reply to No identity found: Command CodeSign failed with a nonzero exit code
Hi! I'm also new to iOS development and I have exactly the same issue. macOS 26.4 (25E246) Xcode Version 26.4 (17E192) What I've tried: Generated Apple Development certificate through Xcode → Settings → Accounts → Manage Certificates multiple times. Certificate and private key appear in Keychain Access but never paired (cert not expandable in My Certificates, which remains empty). Generated CSR manually via Keychain Access Certificate Assistant, uploaded to developer.apple.com, downloaded .cer, imported — same result, no pairing. Generated key and CSR entirely via openssl CLI, uploaded CSR to developer portal, downloaded cert, created .p12 with -legacy flag (standard openssl 3.x p12 fails with MAC verification failed on import). Imported p12 — certificate and public key import but private key silently dropped. Class 0x0000000F (private key) never appears in security dump-keychain, only 0x00000010 (public key) and 0x80001000 (certificate). security import of the PEM private key reports The sp
Apr ’26
Claude integration in Xcode 26.4 results in 401 after some time
Setup: macOS 26.4 Xcode 26.4 Claude premium subscription Claude account logged in Xcode settings The issue usually surfaces after initially setting up Claude integration in Xcode and then leaving Xcode open for at least a day or so. The integration works initially (right after logging in). But then after some time it starts responding with this error. Failed to authenticate. API Error: 401 {type:error,error:{type:authentication_error,message:OAuth token has expired. Please obtain a new token or refresh your existing token.},request_id:req_011Ya.....} Restarting Xcode does not help. The only thing that helps is log out from Claude account and log back in. Sounds like the token refresh logic is broken or missing. Please improve moving forward.
Replies
1
Boosts
0
Views
189
Activity
Apr ’26
Reply to Layout recursion error message
Hi Quinn, thanks for the reply, that's very interesting. Practically, I have to type the name of each library generating my logs: typing the Process name doesn't seem to log anything (although the system proposes it to me). On the other side, if I type the PID, then I get all system logs again. Even for the app's main module, I have to enter a Library name of this form: myApp.debug.dylib. But apart of that, it works very well: I can event retrieve my printf statements by adding stdio in the filter. The only issue is that such a composite filter is a little bit tricky to enter. I thought that it was possible to reuse it through the Recents section of the filter menu. But, after giving a try, it appears that this section is cleared on each Xcode launch... that's too bad. It would be very useful to have a way to store frequent filters some way, or maybe to active one from the Scheme (e.g. as it can be done for the OS_ACTIVITY_MODE). Anyway, your post was very helpful, thanks again!
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Apr ’26
Reply to Network access blocked by system
Thanks for the post. I wanted to make sure to see as nothing has changed on Xcode, but could be macOS requesting for permission. What version of macOS and build are you using? macOS manages privacy permissions using a system called TCC. When you build and run your app via Xcode, the system checks the app's signature to see if it has permission, and creates a new entry in System Settings. I have an idea, however there are engineers here that will have better suggestions than mine. Looking forward to other developers suggestions. I would personally check and reset the bundle ID. Check System Settings > Privacy & Security > Local Network. Is there anything there? Open the Terminal app on your Mac. You will need your app's Bundle Identifier (e.g., com.yourname.yourapp). You can find this in Xcode by clicking your project file in the navigator and looking under the General tab. Run the following command, replacing [YOUR_BUNDLE_ID] with your actual bundle identifier: tccutil res
Replies
Boosts
Views
Activity
Apr ’26
Network access blocked by system
I’m building an app on macOS 26.4 with Xcode 26.4. When I build and run my app it started prompting me for network access, which it didn’t do before with Xcode 26. It did that repeatedly, and I had been approving the prompts and the app had been working. Now the app’s network features are not working, and I assume its because its being blocked by macOS, even though I accepted the network requests each time. In System Settings - Privacy and Security - Local Network, the app has many repeated entries, like 20, and all of them are turned on.
Replies
2
Boosts
0
Views
129
Activity
Apr ’26
Reply to Apple Developer Program License Agreement Updated & Accepted
Thank you so much for the post. There is a part that was interesting to me, you said you having issues with Visual Studio 2022? What about when you use Xcode 26.x+? Do you have the same issue? Go to the Mac you are using as your build host. Open Xcode. Go to Xcode (in the top menu bar) > Settings (or Preferences) > Accounts. Select your Apple ID. If it says your session has expired or requires action, sign in again. Even if it looks fine, click the - (minus) button to remove the account, and then the + (plus) button to add it back. Are you the owner of the developer account? Only the Account Holder can accept the main Apple Developer Program License Agreement. Are you are an Admin or Developer on a company account? Please let me know about Xcode? Thanks Albert Pascual
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
Apr ’26
[KeyChain Framework] KeyChain Item is accessible post App Transfer without rebuilding the KeyChain
We have utilised the KeyChain Framework for Adding items into KeyChain. We have Generated KeyPair using 'SecKeyGeneratePair' API as below (OSStatus)generateAssymetricKeyPair:(NSUInteger)bitSize{ OSStatus sanityCheck = noErr; SecKeyRef publicKeyRef = NULL; SecKeyRef privateKeyRef = NULL; NSString *appGrpIdentifier = @group.com.sample.xyz // Set the private key attributes. NSDictionary *privateKeyAttr = @{(id)kSecAttrIsPermanent: @YES, (id)kSecAttrApplicationTag: [TAG_ASSYMETRIC_PRIVATE_KEY dataUsingEncoding:NSUTF8StringEncoding], (id)kSecAttrCanEncrypt:@NO, (id)kSecAttrCanDecrypt:@YES, (id)kSecAttrAccessGroup: appGrpIdentifier }; // Set the public key attributes. NSDictionary *publicKeyAttr = @{(id)kSecAttrIsPermanent: @YES, (id)kSecAttrApplicationTag: [TAG_ASSYMETRIC_PUBLIC_KEY dataUsingEncoding:NSUTF8StringEncoding], (id)kSecAttrCanEncrypt:@YES, (id)kSecAttrCanDecrypt:@NO, (id)kSecAttrAccessGroup: appGrpIdentifier }; // Set top level attributes for the keypair. NSDictionary *keyPairAttr = @{(id)kSecAttrKeyTy
Replies
1
Boosts
0
Views
117
Activity
Apr ’26
Xcode 26.4 refuses to pair with my Series 4 iWatch
Watch has latest watchOS 10.6.2. Xcode tries to connect and fails. I insured that both the Mac and the watch are using the same WiFi network (2.4) - and the mac has no other network interface. I have successfully paired to my iPhone and iPad. I quit and restarted Xcode. I close and reopen the Devices and Simulators window (to get it to retry). I restarted my watch. The watch is at 98% battery level. Suggestions? [Or do I need to purchase a new watch?]
Replies
4
Boosts
0
Views
189
Activity
Apr ’26
Reply to Layout recursion error message
I don’t have any good input on the original issue that kicked off this thread, but I wanted to address this: [quote='883180022, -dp, /thread/806471?answerId=883180022#883180022, /profile/-dp'] if someone knows a good solution to disable all system logs while keeping my own [/quote] Xcode 15 introduced a new Console area with excellent integration with the system log. For example, consider this program: import Foundation import Network import os.log let log = Logger(subsystem: , category: ) func main() { let c = NWConnection(host: example.com, port: 80, using: .tls) c.stateUpdateHandler = { newState in log.log(did change state, state: ( (newState) )) } c.start(queue: .main) log.log(will enter main loop) dispatchMain() } main() IMPORTANT This is not meant to work. It tries to connect to the HTTP port using TLS, which won’t end well. The goal is to generate a bunch of log entries from Network framework, which it absolutely does (-: When I run this (Xcode 26.4 on macOS 26.3.1) I see this: will e
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Apr ’26
Reply to App Bundle ID
App Store Connect doesn’t have a way to do this. From its perspective, the bundle ID uniquely identifies the app and there’s no way to merge app records, or change the bundle ID for an app record. With Xcode this isn’t usually a problem, because you can change the bundle ID for your app in the project. So, you’d take your new project and change its bundle ID to be that of the original test project and away you go. I don’t know if that’s possible with your third-party tooling; I recommend that you ask that via the support channel for that tooling. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Apr ’26
Reply to watchOS 11.2 Debug Tunnel Timeout: iPhone Connected, Watch stuck in "Waiting to Reconnect" (Xcode 16.4)
Partial installation observed: A placeholder icon for the app appeared on the Watch but installation is hung. The app cannot be deleted from the Watch UI, and Xcode continues to report a Connection Timeout. This confirms the initial manifest is sent, but the secure tunnel for the actual binary transfer/validation fails.
Replies
Boosts
Views
Activity
Apr ’26
watchOS 11.2 Debug Tunnel Timeout: iPhone Connected, Watch stuck in "Waiting to Reconnect" (Xcode 16.4)
Hello, I am experiencing a critical blocking issue developing a watchOS app. While the iPhone 15 Pro Max is fully Connected via USB (confirmed green light in Network Settings), the Apple Watch Series 7 (watchOS 11.2) remains unreachable by Xcode. Mac: Mac Mini (macOS 15/16). Devices: iPhone 15 Pro Max (iOS 18+), Apple Watch Series 7 (watchOS 11.2). Xcode: 16.4 / Build 26.4. Hardware: Direct USB-C connection (USB 2.0 480Mb/s protocol). Technical Evidence of Protocol Failure: Missing Staging Folders: ~/Library/Developer/Xcode/watchOS DeviceSupport does not exist, implying the handshake fails before symbol stripping/sync begins. CoreDevice Error: Consistently receiving: Previous preparation error: A connection to this device could not be established.; Timed out while attempting to establish tunnel using negotiated network parameters. Missing Keychain Entries: No com.apple.coredevice keys found in Keychain Access, suggesting the Trusted Host handshake is incomplete. mDNS/Discovery: xcru
Replies
1
Boosts
0
Views
50
Activity
Apr ’26
Reply to Agreed to legal agreements but still get "required agreement is missing or has expired"
I have the same issue, not able to create new app in app store connect, or upload from xcode. I can not find any unsigned agreements.
Topic: Code Signing SubTopic: Notarization Tags:
Replies
Boosts
Views
Activity
Apr ’26
Reply to Xcode Source Control pull/push hangs indefinitely, terminal Git works normally After Tahoe 26.3 (25D125) Update
Same issue here, it started for me during the developer beta and never went away. I was also getting the error about post-quantum key exchange. I upgraded my git server (a little docker container running the default git and openssh setup) and the warning went away. Xcode still hangs on pull/fetch though. I can push without issue. I can pull from the command line without issue.
Replies
Boosts
Views
Activity
Apr ’26
Claude Agent OAuth token silently expires and fails to refresh in Xcode 26.4 — requires manual re-auth every 12-24 hours
Claude Agent OAuth token silently expires and fails to refresh in Xcode 26.4 — requires manual re-auth every 12-24 hours. this was not happening in 26.3, its a regression in 26.4 Details and sysdiagnose submitted: FB22421882
Replies
1
Boosts
0
Views
110
Activity
Apr ’26
Reply to No identity found: Command CodeSign failed with a nonzero exit code
Hi! I'm also new to iOS development and I have exactly the same issue. macOS 26.4 (25E246) Xcode Version 26.4 (17E192) What I've tried: Generated Apple Development certificate through Xcode → Settings → Accounts → Manage Certificates multiple times. Certificate and private key appear in Keychain Access but never paired (cert not expandable in My Certificates, which remains empty). Generated CSR manually via Keychain Access Certificate Assistant, uploaded to developer.apple.com, downloaded .cer, imported — same result, no pairing. Generated key and CSR entirely via openssl CLI, uploaded CSR to developer portal, downloaded cert, created .p12 with -legacy flag (standard openssl 3.x p12 fails with MAC verification failed on import). Imported p12 — certificate and public key import but private key silently dropped. Class 0x0000000F (private key) never appears in security dump-keychain, only 0x00000010 (public key) and 0x80001000 (certificate). security import of the PEM private key reports The sp
Replies
Boosts
Views
Activity
Apr ’26