Search results for

“Xcode”

93,890 results found

Post

Replies

Boosts

Views

Activity

Reply to .storeButton(.visible, for: .policies) shows “Terms of Service Unavailable” — how does it work?
Same query here. I've tried everything I can think of to get the terms link to render content based on App Store Connect configuration. I can only get it working in local development in Xcode builds by passing a dedicated url to the supposedly custom terms link field, which, according to both common sense and official developer documentation, isn't necessary. I've set the policy link there, which works, but the terms link never renders the proper content, despite having opted into the standard EULA.
2w
Reply to Can I move Xcode files to an external SSD safely?
The only parts of Xcode that can't be moved to external storage are the parts that take up the bulk of your storage. You haven't said anything about your storage (internal or external) or your development needs, so I can't provide any more detailed information. In some cases, you can reduce Xcode's storage. You may be able to remove some or all of the simulator runtimes. Generally speaking, this is one of those cases where you have to weight the cost of your time and trouble against the cost of a computer with more internal storage.
2w
Can I move Xcode files to an external SSD safely?
Hi everyone, I’m running out of space on my Mac and I need to use an external SSD to free up room, especially because Xcode is taking a lot of storage. I want to know if it’s safe to move some Xcode files—projects, derived data, or system-related files—to an external SSD. Which files can I move safely, and which should stay on the internal drive? I want to avoid breaking anything or causing issues with Xcode or macOS. Also, is it the same situation if I use an external HDD instead of an SSD? Are there additional risks or performance issues to consider?
3
0
112
2w
How do you support Preferred Font Size / Dynamic Type on macOS?
On macOS 26, how do you support the Preferred Text Size value as defined in the Accessibility Settings? Historically, Dynamic Type has not been available on macOS. However, the user has some control over text size through the Accessibility Settings. On macOS 26, a small subset of applications are honouring changes to that value include Finder, Mail, and sidebars in many applications. Dynamic sizing in table views has been available on macOS for awhile. But Mail.app, in particular, is also adjusting the font sizes used in the message's body pane while the Finder is adjusting font sizes used for Desktop icons. I can't find an NSNotification that is fired when the user adjusts the Accessibility Text Size slider, nor can I find an API to read the current value. NSFont.preferredFont(forTextStyle:options:) looks promising but the fonts returned do not appear to take the user's Accessibility setting into account. (Nor do they update dynamically.) SwiftUI's Text(Apple).font(.body) performs similarly to NSFont in that
2
0
443
2w
Reply to Account security and passkeys
Hi @umiushi, These questions apply to all Apple Accounts and are not developer-specific, so I suggest for you to post your questions on the Apple Support Community: Apple Support Community https://discussions.apple.com/welcome The Apple Developer Forums are intended to help the developer community with code-level questions about Apple frameworks and services. Thanks for understanding. Cheers, Paris X Pinkney |  WWDR | DTS Engineer
2w
Is it a bug in UIActivityViewController to Airdrop ?
Context: Xcode 26.3, iOS 18.7.6 on iPhone Xs In this iOS app, I call UIActivityViewController to let user Airdrop files from the app. When trying to send a URL whose file name contains some characters like accentuated (-, é, '), the transfer fails. Removing those characters makes it work without problem. The same app running on Mac (in iPad mode) works with both cases. I also noticed that even when airdrop fails, there is no error reported by activityVC.completionWithItemsHandler = { activity, success, items, error in } Are those known issues ?
Topic: UI Frameworks SubTopic: UIKit Tags:
4
0
262
2w
Reply to Provisioning profile missing entitlement: com.apple.developer.icloud
Thank you for your replies. Unfortunately, this didn't help either. I developed an app with SwiftDate in a GroupContainer. The data model is stable, and all relationships are optional. The next step should be to switch to an iCloudContainer. Both computers are on the same network and have internet access and access to the developer account. I disabled and re-enabled automatic signing. No change. A comparison of the project.pbxproj files showed two new lines in the non-functional project: 913a913 CODE_SIGN_IDENTITY = Apple Development; 948a949 PROVISIONING_PROFILE_SPECIFIER = ; I manually deleted these two lines and restarted Xcode. There was no change in behavior; the same error occurred. I also manually downloaded the profile from the developer website and tried to sign it manually. But this deployment profile has the same error again: Entitlements: 8 included, 1 Missing What surprises me is that the working version on the MacBook lists 12 entitlements. The entitlements are identical on both systems
2w
Xcode 26.3 incompatible with FireBase and WeTest?
Popular automated testing systems like FireBase [1] and WeTest [2] expect the uploaded test to include the Debug-iphoneos directory generated by Xcode. However, in all of our builds on Xcode 26.3, this folder is created but remains empty. There are some other folders with the same name in subdirectories, but these only contain intermediate build files. Now we're looking for configuration or settings in Xcode to restore the original behavior, where the top-level Debug-iphoneos directory gets populated with a complete image of the test target, include the binary and resource files. Any suggestions would be much appreciated! [1] https://firebase.google.com/docs/test-lab/ios/run-xctest [2] https://www.wetest.net/documents/detail/automation/d8yaA7yz
0
0
36
2w
Swift Data Recovery
Hi Writing an app in Swift on Xcode for my iPhone, all software is the latest version. If after making a minor change and re-building all the application data has disappeared, is there a way to see if it is still in the .modelContainer and just not showing up?
2
0
643
2w
Reply to Provisioning profile missing entitlement: com.apple.developer.icloud
[quote='879687022, DTS Engineer, /thread/818501?answerId=879687022#879687022'] If that doesn't help, try to remove the iCloud capability [/quote] Yeah, that’s what I recommend you do first. As Ziqiao says, it’s all disabled, so removing it doesn’t cost you anything. And I think it’ll get your app building again. Once you’re back in that stable state, you can add it back in and let Xcode’s automatic code siging do its thing. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
2w
Reply to Swift compiler fails in Release (-O) when using generic ObservableObject with @Published on iOS < 26 in Xcode 26.3
Thanks for your reply. I have already filed a report through Feedback Assistant. Case-ID: 18609190 (Apple DTS incident) Feedback ID: 22081725 The issue was submitted on Feb 28, 2026, but so far there has been no update in Feedback Assistant. The problem is still reproducible in Xcode 26.3 with Release (-O) builds when targeting iOS 16/17/18. Could you please help check whether this Feedback has been routed to the appropriate Swift/Xcode engineering team, and whether there is any information about which future Xcode version might include a fix? Thank you very much for your help.
2w
Reply to App group broken on Sequoia
Right -- think I've had a breakthrough: the entitlements file for the appex shows its app ID as follows: [Key] com.apple.application-identifier [Value] [String] $(AppIdentifierPrefix)$(PRODUCT_BUNDLE_IDENTIFIER) while the main app shows a proper value: [Key] com.apple.application-identifier [Value] [String] XXXXXXXXXX.com.mydomain.MyApp For some reason, the Xcode variables weren't being substituted in the FileProvider! The surprise here is simply that the app worked for so long without the entitlements being validated... Anyway. I've confirmed that the app now presents the entitlements validated flag correctly on our older machines; once I hear back from the employee running this on Sequoia that it works now, I'll accept the answer here. Thanks!
Topic: Code Signing SubTopic: Entitlements Tags:
2w
Reply to Device Token Not Invalidated After App Uninstall (iOS 26.4 Beta)
@Engineer Thank you for your previous response. We re-verified the behavior, and it appears that the device token that was active before the app was uninstalled is still valid. As a result, two push notifications were delivered to the same device. If you can share the apns-id of two such notifications sent and received (within the last couple of days), we can double check, but what you are describing should not be possible. As requested, I am sharing the details below. Notification sent to the latest token (obtained after reinstalling the app) Request curl -v --http2 --cert cert.p12: --cert-type P12 -H apns-topic: {{bundle_id}} -H apns-push-type: alert -d '{aps:{alert:test1}}' https://api.sandbox.push.apple.com/3/device/{{latest_token}} (timestamp: 2026-03-13T04:37:20Z) APNs response apns-id: 9963707F-7469-1CB3-231A-66B9EC9CFEB3 Xcode log when the notification was received in the foreground (real device) - - - Push Payload Start - - - Push received timestamp: 2026-03-13T04:37:24Z [AnyHashable(a
2w
Reply to .storeButton(.visible, for: .policies) shows “Terms of Service Unavailable” — how does it work?
Same query here. I've tried everything I can think of to get the terms link to render content based on App Store Connect configuration. I can only get it working in local development in Xcode builds by passing a dedicated url to the supposedly custom terms link field, which, according to both common sense and official developer documentation, isn't necessary. I've set the policy link there, which works, but the terms link never renders the proper content, despite having opted into the standard EULA.
Replies
Boosts
Views
Activity
2w
Reply to Can I move Xcode files to an external SSD safely?
The only parts of Xcode that can't be moved to external storage are the parts that take up the bulk of your storage. You haven't said anything about your storage (internal or external) or your development needs, so I can't provide any more detailed information. In some cases, you can reduce Xcode's storage. You may be able to remove some or all of the simulator runtimes. Generally speaking, this is one of those cases where you have to weight the cost of your time and trouble against the cost of a computer with more internal storage.
Replies
Boosts
Views
Activity
2w
Can I move Xcode files to an external SSD safely?
Hi everyone, I’m running out of space on my Mac and I need to use an external SSD to free up room, especially because Xcode is taking a lot of storage. I want to know if it’s safe to move some Xcode files—projects, derived data, or system-related files—to an external SSD. Which files can I move safely, and which should stay on the internal drive? I want to avoid breaking anything or causing issues with Xcode or macOS. Also, is it the same situation if I use an external HDD instead of an SSD? Are there additional risks or performance issues to consider?
Replies
3
Boosts
0
Views
112
Activity
2w
Reply to Apple watch Xcode pairing & connection issues
same issue os: 26.3.1(25D2128) Xcode : 26.4 beta 3 (17E5179g) iPhone 15pro: 26.3.1 (23D8133) Apple Watch : 26.3.
Replies
Boosts
Views
Activity
2w
How do you support Preferred Font Size / Dynamic Type on macOS?
On macOS 26, how do you support the Preferred Text Size value as defined in the Accessibility Settings? Historically, Dynamic Type has not been available on macOS. However, the user has some control over text size through the Accessibility Settings. On macOS 26, a small subset of applications are honouring changes to that value include Finder, Mail, and sidebars in many applications. Dynamic sizing in table views has been available on macOS for awhile. But Mail.app, in particular, is also adjusting the font sizes used in the message's body pane while the Finder is adjusting font sizes used for Desktop icons. I can't find an NSNotification that is fired when the user adjusts the Accessibility Text Size slider, nor can I find an API to read the current value. NSFont.preferredFont(forTextStyle:options:) looks promising but the fonts returned do not appear to take the user's Accessibility setting into account. (Nor do they update dynamically.) SwiftUI's Text(Apple).font(.body) performs similarly to NSFont in that
Replies
2
Boosts
0
Views
443
Activity
2w
Reply to Account security and passkeys
Hi @umiushi, These questions apply to all Apple Accounts and are not developer-specific, so I suggest for you to post your questions on the Apple Support Community: Apple Support Community https://discussions.apple.com/welcome The Apple Developer Forums are intended to help the developer community with code-level questions about Apple frameworks and services. Thanks for understanding. Cheers, Paris X Pinkney |  WWDR | DTS Engineer
Replies
Boosts
Views
Activity
2w
Reply to White border appears during app transition despite full-opacity 1024x1024 icon (SVG and PNG tested)
Replicated with Icon Composer 1.3 Beta 2, Xcode 26.2, iOS 26
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
Is it a bug in UIActivityViewController to Airdrop ?
Context: Xcode 26.3, iOS 18.7.6 on iPhone Xs In this iOS app, I call UIActivityViewController to let user Airdrop files from the app. When trying to send a URL whose file name contains some characters like accentuated (-, é, '), the transfer fails. Removing those characters makes it work without problem. The same app running on Mac (in iPad mode) works with both cases. I also noticed that even when airdrop fails, there is no error reported by activityVC.completionWithItemsHandler = { activity, success, items, error in } Are those known issues ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
4
Boosts
0
Views
262
Activity
2w
Reply to Provisioning profile missing entitlement: com.apple.developer.icloud
Thank you for your replies. Unfortunately, this didn't help either. I developed an app with SwiftDate in a GroupContainer. The data model is stable, and all relationships are optional. The next step should be to switch to an iCloudContainer. Both computers are on the same network and have internet access and access to the developer account. I disabled and re-enabled automatic signing. No change. A comparison of the project.pbxproj files showed two new lines in the non-functional project: 913a913 CODE_SIGN_IDENTITY = Apple Development; 948a949 PROVISIONING_PROFILE_SPECIFIER = ; I manually deleted these two lines and restarted Xcode. There was no change in behavior; the same error occurred. I also manually downloaded the profile from the developer website and tried to sign it manually. But this deployment profile has the same error again: Entitlements: 8 included, 1 Missing What surprises me is that the working version on the MacBook lists 12 entitlements. The entitlements are identical on both systems
Replies
Boosts
Views
Activity
2w
Xcode 26.3 incompatible with FireBase and WeTest?
Popular automated testing systems like FireBase [1] and WeTest [2] expect the uploaded test to include the Debug-iphoneos directory generated by Xcode. However, in all of our builds on Xcode 26.3, this folder is created but remains empty. There are some other folders with the same name in subdirectories, but these only contain intermediate build files. Now we're looking for configuration or settings in Xcode to restore the original behavior, where the top-level Debug-iphoneos directory gets populated with a complete image of the test target, include the binary and resource files. Any suggestions would be much appreciated! [1] https://firebase.google.com/docs/test-lab/ios/run-xctest [2] https://www.wetest.net/documents/detail/automation/d8yaA7yz
Replies
0
Boosts
0
Views
36
Activity
2w
Swift Data Recovery
Hi Writing an app in Swift on Xcode for my iPhone, all software is the latest version. If after making a minor change and re-building all the application data has disappeared, is there a way to see if it is still in the .modelContainer and just not showing up?
Replies
2
Boosts
0
Views
643
Activity
2w
Reply to Provisioning profile missing entitlement: com.apple.developer.icloud
[quote='879687022, DTS Engineer, /thread/818501?answerId=879687022#879687022'] If that doesn't help, try to remove the iCloud capability [/quote] Yeah, that’s what I recommend you do first. As Ziqiao says, it’s all disabled, so removing it doesn’t cost you anything. And I think it’ll get your app building again. Once you’re back in that stable state, you can add it back in and let Xcode’s automatic code siging do its thing. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
2w
Reply to Swift compiler fails in Release (-O) when using generic ObservableObject with @Published on iOS < 26 in Xcode 26.3
Thanks for your reply. I have already filed a report through Feedback Assistant. Case-ID: 18609190 (Apple DTS incident) Feedback ID: 22081725 The issue was submitted on Feb 28, 2026, but so far there has been no update in Feedback Assistant. The problem is still reproducible in Xcode 26.3 with Release (-O) builds when targeting iOS 16/17/18. Could you please help check whether this Feedback has been routed to the appropriate Swift/Xcode engineering team, and whether there is any information about which future Xcode version might include a fix? Thank you very much for your help.
Replies
Boosts
Views
Activity
2w
Reply to App group broken on Sequoia
Right -- think I've had a breakthrough: the entitlements file for the appex shows its app ID as follows: [Key] com.apple.application-identifier [Value] [String] $(AppIdentifierPrefix)$(PRODUCT_BUNDLE_IDENTIFIER) while the main app shows a proper value: [Key] com.apple.application-identifier [Value] [String] XXXXXXXXXX.com.mydomain.MyApp For some reason, the Xcode variables weren't being substituted in the FileProvider! The surprise here is simply that the app worked for so long without the entitlements being validated... Anyway. I've confirmed that the app now presents the entitlements validated flag correctly on our older machines; once I hear back from the employee running this on Sequoia that it works now, I'll accept the answer here. Thanks!
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
2w
Reply to Device Token Not Invalidated After App Uninstall (iOS 26.4 Beta)
@Engineer Thank you for your previous response. We re-verified the behavior, and it appears that the device token that was active before the app was uninstalled is still valid. As a result, two push notifications were delivered to the same device. If you can share the apns-id of two such notifications sent and received (within the last couple of days), we can double check, but what you are describing should not be possible. As requested, I am sharing the details below. Notification sent to the latest token (obtained after reinstalling the app) Request curl -v --http2 --cert cert.p12: --cert-type P12 -H apns-topic: {{bundle_id}} -H apns-push-type: alert -d '{aps:{alert:test1}}' https://api.sandbox.push.apple.com/3/device/{{latest_token}} (timestamp: 2026-03-13T04:37:20Z) APNs response apns-id: 9963707F-7469-1CB3-231A-66B9EC9CFEB3 Xcode log when the notification was received in the foreground (real device) - - - Push Payload Start - - - Push received timestamp: 2026-03-13T04:37:24Z [AnyHashable(a
Replies
Boosts
Views
Activity
2w