Search results for

Xcode

92,318 results found

Post

Replies

Boosts

Views

Activity

Reply to Enhanced Security Capability < iOS 26
A quick update. Based on the work so far in FB20939056 it seems that my analysis of the issue was pretty solid. iOS 26 was specifically changed to allow the type mismatch between the entitlement claim and the provisioning profile authorisation (r. 152513118). That fix is not in iOS 18, and hence the app doesn’t run. Curiously, if you deploy this to the App Store it should run on iOS 18, because App Store apps are re-signed by Apple and thus don’t need a provisioning profile to authorise their entitlement claims. Of course that’s a risky option. The standard way to mitigate such risks is with TestFlight. I haven’t tried this there. My best guess is that it’ll fail in the same way, but I wouldn’t be surprised if it worked. My understanding of the provisioning machinery for TestFlight is not as good on iOS and it is on macOS. If you try this, please reply here to let me know if it worked or not. On obvious, albeit clunky, workaround is to remove the capability when running on iOS 18 devices and add it back when
Topic: Privacy & Security SubTopic: General Tags:
Nov ’25
Can new Xcode build unsupported deployment target IPA?
In the official explanation, deployment targets refers to the OS range supported by this version of Xcode for uploading apps to App Store Connect. On the Xcode Support page (https://developer.apple.com/support/xcode/), I can find the deployment targets supported by each Xcode version. My question is: can I use a newer version of Xcode to build an IPA with an older deployment target that isn’t listed? For example, can I use Xcode 26 to build an iOS 12 IPA (just build, not debug)? In my opinion, since the new SDKs still contain many old macros restricted to earlier iOS versions, it should be possible, but I’m not sure if that’s correct. Thanks.
1
0
77
Nov ’25
Reply to Check whether app is built in debug or release mode
Thanks for the replay @DTS Engineer. You are right on my requirement, currently I am looking for iOS but I would be happy with a solution that works across apple platforms as well. If so, to what end? To answer your query on why I want to detect debug build I won't be able to share my exact use-case but I will share a parallel use-case that currently Apple uses: Currently Apple allows developers to send push notifications to iOS with APNS. From what I understand, APNS exposes sandbox and production environments which are controlled with aps-environment entitlement. Since, Apple controls the tooling side of iOS development, they can inject entitlement based on the provisioning profile. I want to achieve something similar to this where the REST API domain used by my framework is decided based on either provisioning profile or build type. A lot of the time it’s not the build configuration that matters, it’s the way that the app was signed. Or the way that’s it’s run (from Xcode or like a user would).
Nov ’25
Xcode Cloud Build timeouted by cloning our Bitbucket-Server Repository
We want to replace our CI/CD pipelines in Azure DevOps with Xcode Cloud and are currently facing a critical hurdle. For some time now, we’ve observed that the PoC pipelines in Xcode Cloud are having major issues cloning our repositories stored on our Bitbucket Server. More and more pipeline runs are timing out because Xcode Cloud cannot receive the data. Today I spoke with our network team to check whether we might have an issue on our side affecting access to the repository, but we couldn’t find any problems. Cloning the repository to an external machine only takes 30 seconds, so the host’s bandwidth doesn’t seem to be the problem. However, our network specialists did discover one message: Significance: Request abnormal event: high total time Connection abnormal event: client has a slow receive rate If this is the bottleneck in the system, we may ultimately have to stay with Azure DevOps and Fastlane in order to continue providing our product teams with reliable builds. I look forw
3
0
90
Nov ’25
“iOS 26 + BGContinuedProcessingTask: Why does a CPU/ML-intensive job run 4-5× slower in background?”
Hello All, I’m a mobile-app developer working with iOS 26+ and I’m using BGContinuedProcessingTask to perform background work. My app’s workflow includes the following business logic: Loading images via PHImageRequest. Using a CLIP model to extract image embeddings. Using an .mlmodel-based model to further process those embeddings. For both model inferences I set computeUnits = .cpuAndNeuralEngine. When the app is moved to the background, I observe that the same workload(all three workload) becomes on average 4-5× slower than when the app is in the foreground. In an attempt to diagnose the slowdown, I tried to profile with Xcode Instruments, but since a debugger was attached, the performance in background appeared nearly identical to foreground. Even when I detached the debugger, the measured system resource metrics (process CPU usage, system CPU usage, memory, QoS class, thermal state) showed no meaningful difference. Below are some of the metrics I captured: Process CPU: 177% (Foreground) → 153% (B
1
0
120
Nov ’25
Reply to `xcresulttool merge` broken on Xcode 26.1+
Thanks for those bug reports. Using them I was able to track down the lead bug for this (r. 162628085). AFAICT this isn’t fixed in any shipping or seeded version of Xcode, up to and including the current Xcode 26.2b2 (17C5038g). However, as always, I encourage you to re-test with new seeds as they’re released. In the meantime, it’s possible that you might be able to work around this crash by pass absolute paths, rather than relative paths, to xcresulttool. Please try this and lemme know how you get along. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Nov ’25
Reply to memory leak in dlopen / dlcose, or user error?
I tried this here in my office and didn’t see any leaks or unbounded memory growth. Here’s what I did: Using Xcode 26.1 on macOS 15.7.1 [1], I created a new project from the macOS > Command Line Tool template. I then added a dynamic library target to that. I populated them with the code shown at the end of this post. I build both targets using Xcode. I then ran the tool from Terminal: % ./Test806035 will run will open and close, iteration: 0 did close and close … will open and close, iteration: 999 did close and close did run, press return to loop, pid: 47371 In other Terminal window, I rans leaks against the process. It showed no leaks. I ran heap against the process: % heap Test806035 … COUNT BYTES AVG CLASS_NAME TYPE BINARY ===== ===== === ========== ==== ====== 134 4288 32.0 Class.data (class_rw_t) C libobjc.A.dylib 27 11360 420.7 non-object 5 512 102.4 xpc_string_t (Storage) C libxpc.dylib 5 256 51.2 xpc_dictionary_t (Storage) C libxpc.dylib 5 240 48.0 xpc_string_t ObjC libxpc.dylib
Nov ’25
Reply to Age Range API - Sandbox Testing Available
DTS Engineer Apple Use isEligibleForAgeFeatures to determine whether a person using your app is in an applicable region ... Hi, thank you for information. Could you please share where isEligibleForAgeFeatures is placed in - there is no such property in AgeRangeService.shared in Xcode 26.2.0-Beta. Google doesn't know anything at all about it. Thank you.
Topic: App & System Services SubTopic: General Tags:
Nov ’25
Reply to Unknown error occured while sign in into xcode using apple id
This works if you’re using a macOS 15 (or later) guest on a macOS 15 (or later) host [1]. It won’t work for a macOS 14 guest, regardless of the host. In Virtualization Resources you’ll find a bunch of links to resources related to virtualisation for developers, including links to: The Apple Support article that describes the limitations of Apple Account support in the guest. A forums thread that talks about the same. And another forums thread about getting Xcode working in the guest. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] To be clear, the guest must have been created on a macOS 15 host. It won’t work if you: Create the guest on a macOS 14 host and then move it a macOS 15 host Or create the guest on a macOS 14 host and then upgrade your host to macOS 15
Topic: Code Signing SubTopic: General Tags:
Nov ’25
Reply to Check whether app is built in debug or release mode
[quote='807924021, SoumyaMahunt, /thread/807924, /profile/SoumyaMahunt'] Is this approach reliable? [/quote] No. You can disable preview support using a build settings, even in the Debug build configuration. Indeed, that’s something I do all the time. Lemme confirm I understand your requirements: You’re working on a framework. You want to create an XCFramemwork from that. And give that XCFramework to other developers. And then inside that framework you want to check whether the host app was built with the Debug build configuration. Is that right? If so, to what end? And are you sure that you want to check the build configuration? A lot of the time it’s not the build configuration that matters, it’s the way that the app was signed. Or the way that’s it’s run (from Xcode or like a user would). And those questions have different answers. Is this iOS? Or macOS? Or both? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Nov ’25
XCode StoreKit helper application failure - Purchase Fails with NSCocoaErrorDomain Code=4099 and ASDErrorDomain Code=5115
XCode version = 26 && macOS version = 26 Running the app from XCode (not in release mode) I want to implement in app purchases for my macOS application, for that i want to first test it locally through StoreKit config file. Steps i have done uptill now: Added the capability in target-> Signing & Capabilities -> In_App Purchase(while adding this i had got the popup: Make changes to In-App Purchase by changing all configurations - i have no idea about it, Researched on it - didnt got something) Added the storekit config file -> added Group for autorenewable subscription -> reference name & product ID (i have used same Bundle ID and product ID, also i have used different both but still the same issue in both case) - also added it to scheme Added the storeManager implementation that is: import StoreKit class IAPManager { // Shared instance (optional singleton pattern) static let shared = IAPManager() private init() { } // Array to store fetched products var products:
0
0
38
Nov ’25
Screen Time shield not hiding after “Access App” custom button on Shield on TestFlight (works in local debug)
Hi, I am building an iOS app that uses FamilyControls / ManagedSettings to restrict apps. Flow of my app: In my main app, the user chooses which apps to restrict using FamilyActivityPicker (for example, they select Instagram). I save the selection in an App Group. I then use ManagedSettingsStore in the main app to add those app tokens into store.shield.applications, so a Screen Time shield appears when the user opens Instagram. In my ShieldConfigurationExtension, I show a shield UI with a primary button called “Access App”. In my ShieldActionExtension, when the user taps “Access App”, I want to immediately hide the shield and allow Instagram. To hide the shield, I am using this code in my ShieldActionExtension: final class ShieldActionExtension: ShieldActionDelegate { // ... override func handle( action: ShieldAction, for application: ApplicationToken, completionHandler: @escaping (ShieldActionResponse) -> Void ) { switch action { case .primaryButtonPressed: handlePrimaryButton(for: application, completion
1
0
562
Nov ’25
OTP AutoFill Fails to Distribute Code Across Multiple UITextFields on iOS 26.x
Issue Summary: On iOS 26.0.1 to 26.3, apps using multiple UITextFields for OTP input face a critical issue where the system autofill pastes the entire OTP string into a single text field, usually the focused one, rather than splitting digits across fields. Delegate events like textDidChange: do not trigger consistently on autofill, breaking existing input handling logic. Expected Behavior: OTP autofill should distribute each digit correctly across all OTP UITextFields. Delegate or control events should fire on autofill to enable manual handling. (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { if (string.length > 1) { // Autofill detected - distribute OTP manually for (int i = 0; i < string.length && i < self.arrayOTPText.count; i++) { UITextField *field = self.arrayOTPText[i]; field.text = [NSString stringWithFormat:@%c, [string characterAtIndex:i]]; } UITextField *lastField = self.arrayOTPText[string.length - 1]; [l
0
0
80
Nov ’25
When xcode is tried again, it always fails to install the app
When xcode is installed on a mobile phone, the first run always fails. The second run usually works normally.The certificate signatures have been checked and all are normal。This problem will also occur if you stop the running xcode and then run it again。please help me. Mac mini:Apple M2 Pro mas os 15.2 (24C101) Xcode: Version 16.2 (16C5032a) The first failed print is as follows: 无法安装“xxx” Domain: IXUserPresentableErrorDomain Code: 14 Recovery Suggestion: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.uRA3Gt/extracted/Payload/xxx.app : 0xe8008001 (An unknown error has occurred.) User Info: { DVTErrorCreationDateKey = 2025-11-20 02:50:17 +0000; IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker; } Failed to install the app on the device. Domain: com.apple.dt.CoreDeviceError Code: 3002 User Info: { NSURL = file:///Users/shenchunxing/Library/Developer/Xcode/DerivedData/VideoGo-dwhfrhswidapcydbmfuamplrtvso/Build/Prod
1
0
109
Nov ’25