Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,677 results found

Post

Replies

Boosts

Views

Activity

Issue keeping scroll position in SwiftUI
Hey there, Link to the sample project: https://github.com/dev-loic/AppleSampleScrolling Context We are working on creating a feed of posts in SwiftUI. So far, we have successfully implemented a classic feed that opens from the top, with bottom pagination — a standard use case. Our goal, however, is to allow the feed to open from any post, not just the first one. For example, we would like to open the feed directly at the 3rd post and then trigger a network call to load elements both above and below it. Our main focus here is on preserving the scroll position while opening the screen and waiting for the network call to complete. To illustrate the issue, I created a sample project (attached) with two screens: MainView, which contains buttons to open the feed in different states. ScrollingView, which initially shows a single element, simulates a 3-second network call, and then populates with new data depending on which button was tapped. I am currently using Xcode 26 beta 6, but I can also reproduce thi
3
0
213
1w
Apple terminated my only developer account, holding $30K, no explanation after multiple appeals. I have a family to support.
I'm a full-time indie iOS developer. This is my family's only income. On December 19th, Apple terminated my developer account with zero explanation, and they're holding $30,000 in earnings. Background Solo developer, working 12+ hours/day Five apps on the App Store This is my family's only source of income What happened December 19, 2025: Account terminated with this message: Upon further review of the activity associated with your Apple Developer Program membership, it's been determined that your membership, or a membership associated with your account, has been used for dishonest or fraudulent activity, in violation of the Apple Developer Program License Agreement. Given the severity of the identified issues, your account has been flagged for removal. No specifics. No evidence. No prior warnings. What I've tried ✅ Appealed immediately - rejected with template response ✅ Asked for ANY details about what I allegedly did - no response What I actually did (trying to figure out what triggered this) Used expedite
1
0
123
1w
Reply to [DriverKit SCSI] SCSI probe stalls for Target ID > 0 with IOUserSCSIParallelInterfaceController
Hi Kevin, Thank you very much for your guidance. I am happy to report that the issue has been resolved. I would like to share the root cause and the final solution here in case it helps other developers facing similar issues. As you suspected, it was indeed a bug in our code regarding capability reporting. Although we were successfully calling AsyncCreateTargetForID(1), the macOS SCSI stack was silently aborting the probe sequence after the initial TEST UNIT READY command. The issue was located in our implementation of UserReportHighestSupportedDeviceID. We were mistakenly hardcoding the return value to 0: // Buggy implementation kern_return_t IMPL(DRV_MAIN_CLASS_NAME, UserReportHighestSupportedDeviceID) { *id = 0; // Reported that the HBA only supports ID 0 return kIOReturnSuccess; } Because the HBA reported a maximum supported ID of 0, the macOS SCSI Family treated Target 1 as an out-of-bounds device. While the object was instantiated and visible in ioreg, the kernel refused to Register or Match it
Topic: App & System Services SubTopic: Drivers Tags:
1w
Reply to 通过Advanced commerce API 创建SKU的疑问
感谢给我们提出问题。以下是针对你的问题的解答: 1.You need to provide offer / promotion at the time of purchase using https://developer.apple.com/documentation/advancedcommerceapi/offer 2.A customer can subscribe to different SKUs via Advanced commerce API, and different subscription groups via regular IAP which created by App Store Connect. You may migrate a subscription that a customer purchased through In-App Purchase to a subscription you manage using the Advanced Commerce API, but it not mandatory. https://developer.apple.com/documentation/advancedcommerceapi/migrate-subscription-to-advanced-commerce-api The product identifier you create in app store connect is generic product identifier. Generic product Identifiers only contain placeholder information for prices, localizations, and subscription periods and is overridden at the time of purchase. It is suggest to provide a different SKU identifier at runtime. Note: You assign a SKU to each product, along with other information such as the display name, description, and
Topic: App & System Services SubTopic: StoreKit Tags:
1w
通过Advanced commerce API 创建SKU的疑问
关于通过Advanced commerce API 创建SKU,有几个问题: 1、通过Advanced commerce API创建的自动续费订阅的SKU是否支持推介优惠、促销优惠?如果可以,是在苹果connect设置吗? 2、已订阅通过connect创建的SKU的用户,是否可以重复订阅通过Advanced commerce API创建的SKU?还是要通过Advanced commerce API变更订阅? 3、Advanced commerce API创建的SKU ,用户订阅成功后,续费的扣款是否仍由苹果发起?还是由开发者自行发起?
1
0
153
1w
Reply to C function in library code gets stripped when distributed
After much much tweaking and testing. I finally called the C function from another place inside the library and this did work. It's only when called from the dylib that it fails. The symbol _say_hello_world was being stripped from the binary's symbol table during the release build. The function code existed in the binary (verified via dSYM), but Xcode's default Strip Style = All Symbols removes symbol names from the export table. Since dlsym() looks up symbols by name, it couldn't find the function. In the app's Xcode project (not Package.swift): Build Settings → Strip Style → Non-Global Symbols This preserves global symbols (like _say_hello_world) in the binary's symbol table while still stripping local/debug symbols. Limitation This setting cannot be controlled from Package.swift. SPM package authors must document that users need to set STRIP_STYLE = non-global in their app's build settings when using dlsym() with statically linked code. Basically, this is a dead end trying to keep the glo
Topic: Programming Languages SubTopic: General Tags:
1w
C function in library code gets stripped when distributed
This is a continuation of https://developer.apple.com/forums/thread/795348 I rambled too much and did not understand the underlaying problem. The problem is that I have a C function in a iOS library. I want to call this C function from a dylib that this library loads on runtime. When running directly from Xcode (either in debug or release mode) this works correctly. However, when the app is uploaded to testflight or distributed for debugging then the function is stripped and a null function pointer exception crashes the app. In the last post it was really hard to explain and I was pressed on time but I've created a minimal reproducible example: https://github.com/ospfranco/dylib_crash The instructions to run and reproduce the crash are on the README.
2
0
497
1w
Why is Xcode taking forever to install/launch app?
Ever since Xcode 15 and iOS 17 came out development has quite often been a nightmare of waiting and waiting -Xcode displaying endless circles saying preparing the device, connecting to the device, installing the device. But recently to add to this, installation and launching is just taking really forever. I'm currently running Xcode 15.1 and various versions of iOS 17 (I have several phones) and installing the app from Xcode takes about 7 - 10 minutes (compared to the same app installing in seconds with Xcode 14 for example). Then once its finally installed, it then takes further minutes to launch, Xcode often actually displays a dialog saying its taking longer than expected to launch the app, adding the footnote LLDB is likely reading from device memory to resolve symbols. What could be reasons, and solutions, for the excruciatingly slow installation time, and launch time? I really need to find a solution to this please - making a code change tweak, running, making another, running, making another,
12
0
7.4k
1w
Cannot submit any app for External TestFlight review – account-level error
Hello, I am unable to submit ANY of my apps for External TestFlight review. Every time I try to add a build to an external group and press Submit for Review, I immediately get this error: There was an error processing your request. Please try again later. This happens on multiple apps in the same account: LM Mobile (Apple ID: 6755979316) TPM Mobile (newly created app) All of the following have been verified and are active: Paid & Free App Agreements Banking & Tax forms App Privacy (Published) Test Information is fully completed Multiple clean builds uploaded (1.0.0 build 1 and 2) Correct distribution via App Store Connect selected in Xcode Admin + Account Holder role This clearly confirms that the problem is ACCOUNT-LEVEL on the backend. Case Number: 102766190091 Could an Apple engineer please check and reset the stuck External TestFlight submission state on the server side? Thank you.
2
0
198
1w
Reply to C function in library code gets stripped when distributed
Here is a more step by step breakdown of the problem I have a iOS library that exposes a C function. This function is marked with default visibility and used via attribute tags to prevent the compiler/linker from stripping it #ifdef __cplusplus #define DYLIB_EXPORT extern C __attribute__((visibility(default))) __attribute__((used)) #else #define DYLIB_EXPORT __attribute__((visibility(default))) __attribute__((used)) #endif DYLIB_EXPORT bool say_hello_world(); #import helper_functions.h #import bool say_hello_world() { NSLog(@Hello WORLD 🟢!); return true; } From a dynamic library, called sdk, I want to call this function. In this example it's a Rust lib unsafe extern C { fn say_hello_world() -> bool; } #[unsafe(no_mangle)] extern C fn sdk_init() -> i32 { unsafe { say_hello_world(); } return 0; } When the app is compiled and launched from Xcode (either on debug or release schemes) then this works, the following snippet works and prints the hello WORLD message: #import OpacityObjCWrapper.h #import helper
Topic: Programming Languages SubTopic: General Tags:
1w
Reply to Infinite loop getting "_dismiss changed"
I have managed to reproduce unwanted _dismiss changed behavior in the strangest way possible. If you add ANY StoreKit code then on swiping up (i.e. exiting the app) and returning it will produce a bunch of changes. In my app, this was an extremely disruptive bug as it would cause my WebView to reset, losing all state. Here's the code: import SwiftUI import StoreKit struct ContentView: View { @Environment(.dismiss) private var dismiss var body: some View { let _ = Self._printChanges() VStack { Image(systemName: globe) .imageScale(.large) .foregroundStyle(.tint) Text(Hello, world!) // Any StoreKit code causes `_dismiss changed.`. Comment the line below and it no longer happens ProductView(id: testing) } .padding() // Adding a View Modifier like .storeProductTask or .currentEntitlementTask also produces the issue } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1w