Search results for

Xcode

92,303 results found

Post

Replies

Boosts

Views

Activity

Is testing of Age Range API available in xcode simulator?
From https://developer.apple.com/forums/thread/803945?answerId=862153022#862153022, the testing of Age Range API was not available through xcode simulator back in Oct 2025. Is this available now? In particular: Is requestAgeRange testing available through simulator? Is requestAgeRange testing with sandbox account available through simulator? Is isEligibleForAgeFeatures available through simulator? Is isEligibleForAgeFeatures testing with sandbox account available through simulator? If the answer is yes to any of the above, which version of the xcode and ios version should I use? So far I didn't get any of the above working on the simulator, and I can't find any documentation on the answers above. Thank you!
0
0
154
2w
Reply to "Signing certificate" and post-installation assignment fail due to IOPCIPrimaryMatch
I'm not sure why Xcode Signing Certificate status is Failed with the above configuration. It doesn't seem to me that DriverKit and the provisioning file expect & as the expected value. Based on the above, isn't it Xcode that expects &? I'm suspicious of Xcode's behavior. I was able to get a look at your account configuration this morning, and I think I can explain what's going on. For reference, I looked at the bundle with this structure: com.0.DextPCIe **Short answer: ** Change your Entitlement.plist configuration to Development Only entitlement configuration: com.apple.developer.driverkit.transport.pci IOPCIPrimaryMatch 0xFFFFFFFF&0x00000000 ...and I think you'll find that your build will suddenly work fine. Note that it's perfectly fine to use the configuration above for normal testing and development. The entitlement above does match all devices, but your IOKitPersonalities dictionary controls what you ACTUALLY match against, so having an broad entitlement doesn'
Topic: Code Signing SubTopic: Entitlements Tags:
2w
Reply to Love the coding assistant in Xcode
I too love the coding assistant. That is, until I get the evil beachball of death when scrolling the assistant panel down. This happens for me with both ChatGPT and Claude.AI, about 10 or 11 times a day. The only recourse I have is to Force Quit Xcode (26.1) and restart. It is particularly annoying when the cars happens in the middle of a fix or modification.
2w
Shortcut to wrap selected lines in a #if/#endif
I'm looking for a way to make the following possible in Xcode (26.0 or later): I select one or more lines of code. I then enter a hotkey (or select a menu item) that results in adding the line: #ifdef SOME_MACRO before the selection and adding the line: #endif after the selection. Example: Start with the following lines of code: BOOL x = NO; int y = 4; NSString *str = @Hello; If I then highlight the int y = 4; line and use the proper hotkey or menu, the result would be: BOOL x = NO; #ifdef SOME_MACRO int y = 4; #endif NSString *str = @Hello; Is something like this possible in Xcode? I looked at code snippets but that doesn't seem to support wrapping existing code. I looked at the Xcode Settings under Editor and Shortcuts and didn't see a way to add such a custom shortcut.
0
0
32
2w
Reply to Canvas fails with "Runtime Linking Failure" in Swift Package
Hi, Sorry to hear you are having problems getting previews working. The best next step will be to file a feedback with diagnostics so we can take a look. We will need the diagnostics Xcode Previews generates in order to make sure we understand the error the previews system is encountering. Install the logging profile using instructions available here: https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift On your mac running Xcode, and on your physical preview device (if you are using one). Install the logging profile using the following instructions on your mac running Xcode; and if you are using one, your physical preview device (iOS or visionOS): https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift Then when you reproduce the problem in Xcode: Either (a) an error banner will appear, click the Diagnostics button in that banner; or (b) if you're not seeing an error but you still want to provide diagnostics you can get the same diagnostic
2w
KeyChain Sharing with App Extensions
Hi, We are trying to use Apple Security API for KeyChain Services. Using the common App Group : Specifying the common app group in the kSecAttrAccessGroup field of the KeyChain query, allowed us to have a shared keychains for different apps (targets) in the app group, but this did not work for extensions. Enabling the KeyChain Sharing capability : We enabled the KeyChain Sharing Ability in the extensions and the app target as well, giving a common KeyChain Access group. Specifying this in the kSecAttrAccessGroup field also did not work. This was done in XCode as we were unable to locate it in the Developer portal in Indentifiers. We tried specifying $AppIdentifier.KeyChainSharingGroup in the kSecAttrAccessGroup field , but this did not work as well The error code which we get in all these 3 cases when trying to access the Keychain from the extension is error code 25291 (errSecNotAvailable). The Documentation says this error comes when No Trust Results are available and printing the error in xcode
4
0
121
2w
Reply to HCE in iPhone
I am experiencing exactly the same. For me it is the call to CardSession.isEligible(), returns True when deployed via Xcode and False when obtaining the App via TestFlight or AppStore(Production). This is using an EU phone/ iCloud Account. I feel it would be useful for Apple to provide more information on what is going on 'under-the-hood' when CardSession.isEligible() is being called; is it checking an IP? GPS location? A credit-card/payment information to determine whether the user/phone is EU/EEA eligible? Because it is not the Location set in Media/Purchases - this makes no difference!
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Running headless app as root for handling VPN and launching microservices
Hi Quinn For your specific question: No, I do not expect this to work with no one logged. My idea is that the user launches some app, this app requests the Device password so it can execute with elevated priviliedges. Then the headless app, the Go microservices while listening to some commands given through another GUI we implemented. The whole concept already works if launched from Xcode as root. It is launching as a normal user by clicking some icon or starting an app that has proven elusive.
2w
Reply to Shared Library constructor in XCode 16.4 and 26 linker/runtime
[quote='867839022, MoLotus, /thread/808485?answerId=867839022#867839022, /profile/MoLotus'] I clicked 'Accepted Answer' by mistake and can't undo it? [/quote] Indeed )-: See tip 12 in Quinn’s Top Ten DevForums Tips for more about that. [quote='867839022, MoLotus, /thread/808485?answerId=867839022#867839022, /profile/MoLotus'] Note that the comment facility here is failing to post comments [/quote] Well, they post but there’s a bug causing them to not show up immediately (i. 98940414)-: In general, I recommend that you reply as a reply. See tip 5 for more on that. Coming back to your technical issue, this seems to be working for me in Xcode 26.1. Here’s what I did: Using Xcode 26.1 on macOS 15.7.1, I created a new project from the macOS > Command Line Tool template, selecting C as the language. I changed main.c to this: #include #include __attribute__((constructor(200))) void foo(void); __attribute__((constructor(101))) void bar(void); void foo(void) { printf(foon); } void bar(void) { pr
2w
Reply to Xcode is a mess!
If you have multiple issues, it’s generally best to put them in different threads. That’s because different folks have different expertise, and it’s unlikely that any one person will be able to help you with all of your issues at once. In this case, I can address your second question: [quote='808920021, chps67, /thread/808920, /profile/chps67'] In Xcode 16 why is it no longer possible to arrange my files as I did before [/quote] I’m not 100% sure I understand this, but I suspect it’s because Xcode now has two ways to organise items in the Project navigator: Groups, as used by older versions of Xcode Folders, which are new [1] With groups you can explicitly manage the position and order of items in the Project navigator. With folders, Xcode does that implicitly, replicating the file system hierarchy and showing all the items alphabetically. Folders have some really important advantages — most notably, they radically reduce the number of project file merge conflicts — but if
2w
Reply to Xcode is a mess!
Well, that's your opinion. I've managed to release a number of Swift apps without seeing the issues you describe. I've got no idea why you can't organise your folders properly. What's the problem? You ask why it's no longer possible to do something, but you haven't really explained what it is that you're missing. You can still right-click a file or folder and create a new group, new group from selection, new folder, and new folder from selection. And you can drag files and folders onto the Project pane and choose how they're added. I don't understand what it is that you're having a problem with? Rather than posting here, why not raise feedback tickets and explain where you're seeing issues? Give Apple a record of the problems and a chance to fix them. You can do that at: https://feedbackassistant.apple.com/ then post the FB number(s) here. Also, Xcode 26 is out, so you could try that out and see if any of your issues are fixed.
2w
Error in validating binary for the iPad multitasking
When I try to validate my app I get the following error: Invalid bundle. Because your app supports Multitasking on iPad, you need to include the LaunchScreen.storyboard launch storyboard file in your com.augmentedReality.virtualTags bundle. Use UlLaunchScreen instead if the app's MinimumOSVersion is 14 or higher and you prefer to configure the launch screen without storyboards. For details, see: https:// developer.apple.com/documentation/bundleresources/information_property_list/ uilaunchstoryboardname (ID: 236f630a-a014-48e8-910a-77d9c0ff6f51) What should I do to fix it? In the previous Xcode version and on another app it did not appear. MacBook Pro M5, Tahow 26.1, Xcode 26.1.1
1
0
42
2w