Search results for

xcode simulator is not listed in visual studio.

351,614 results found

Post

Replies

Boosts

Views

Activity

Reply to Attach a debugger to app launched via `devicectrl`
Since we're talking about debuggers here, I just want to say that having DWARF (1) in your user name is excellent — thanks for the chuckle! As to attaching your custom debugger to a process with devicectl, this is not possible with the currently available commands provided by that tool. Our folks who work on the tooling around that command are interested in hearing what your needs are, so please send them some information on the type of functionality you need through Feedback Assistant. Once you've done that, please post the FB number here for reference. — Ed Ford,  DTS Engineer (1): https://dwarfstd.org
1d
Apple developer account
Hi Community! I have enrolled for an Apple Developer Account. Only 4 hours left until the 48-hour deadline runs out. On the account page it says pending in orange when I click on my name, but it also says that I need to complete payment. I have received an invoice and receipt from Apple confirming that it’s paid, so I’m not planning to pay again. Does this sound like everything is correct and I can just look forward to it, or does it sound like something is wrong? From people’s experience here, does it often take more than 48 hours? Petter
1
0
208
1d
Present User an error message when SwiftData save fails
Have a data model that sets certain fields as unique. If the user attempts to save a duplicate value, the save fails quietly with no indication to the user that the save failed. The program is on Mac OS 26.0.1 @Environment(.modelContext) var modelContext @Query private var typeOfContracts: [TypeOfContract] @State private var typeName: String = @State private var typeCode: String = @State private var typeDescription: String = @State private var contracts: [Contract] = [] @State private var errorMessage: String? = Data Entered @State private var showAlert: Bool = false var body: some View { Form { Text(Enter New Contract Type) .font(.largeTitle) .foregroundStyle(Color(.green)) .multilineTextAlignment(.center) TextField(Contract Type Name, text: $typeName) .frame(width: 800, height: 40) TextField(Contract Type Code, text: $typeCode) .frame(width: 800, height: 40) Text(Contract Type Description) TextEditor(text: $typeDescription) .frame(width: 800, height: 200) .scrollContentBackground(.hidden) .backg
7
0
106
1d
Reply to Finding source for SwiftData array behaviour
I am not completely clear what your question is, but based on the description, it seems to be related to the order of SwiftData array, and so I'd start with that. In a SwiftData model that contains an array, the array element can be a Codable type or a SwiftData model, as shown below: @Model class Department { @Relationship(deleteRule: .cascade, inverse: Employee.department) var employees: [Employee] = [Employee]() // Relationship var aliasNames: [String] = [] // `String` is Codable ... } @Model class Employee { var department: Department? ... } Here employees is a SwiftData relationship, and aliasNames is an attribute of a string array. Every time you fetch Department and access the attribute and relationship, the elemet order of department.aliasNames is the same, but that of department.employees is not. The reason is that SwiftData uses Core Data as its default store, and in Core Data, a too-many relationship is expressed as a set (NSSet), which doesn't have order. Core Data supports order
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1d
IOS app on MacOS 15 local network access
Our app is developed for iOS, but some users also run it on macOS (as an iOS app via Apple Silicon). The app requires local network permission, which works perfectly on iOS. Previously, the connection also worked fine on macOS, but since the recent macOS update, the app can no longer connect to our device. Additionally, our app on macOS doesn't prompt for local network permission at all, whereas it does on iOS. Is this a known issue with iOS apps running on macOS? Has anyone else experienced this problem, or is there a workaround? Any help would be appreciated!
5
0
757
1d
Reply to IOS app on MacOS 15 local network access
Some of our macOS app customers are reporting this same issue for our app. The fixes listed in this forum and others that I have found are much too technical for our customers. Will updating to a specific macOS release and uninstalling/reinstalling our app fix this issue? Are there work-arounds or fixes that we can implement in our App Store app code? Are there user-friendly work-arounds or fixes that our customers can perform on their own?
1d
Is ContactAccessButton broken?
Simple question - on iOS 26 ContactAccessButton does not appear to show any UI when attempting to search for a contact in either the contact access picker on the ContactAccessButton. This behavior occurs in the Apple provided sample code , as well as a basic example: struct ContentView: View { @State var searchText : String = var body: some View { VStack { TextField(Search, text: $searchText) ContactAccessButton( queryString: searchText, ignoredEmails: nil, ignoredPhoneNumbers: nil, approvalCallback: { identifiers in print(identifiers) }) } .padding() } } Am I doing something wrong or is this just not working?
1
0
42
1d
Unable to provision target
I have added an in-app purchase function into my app, and have enabled in-app purchase profile in developer portal(it's on by default and is marked gray in developer portal, I don't know if that's how it supposed to look like). I have issued the agreements and tried signing the app both manually and automatically, but neither of that worked. App can be built successfully in simulator but does not show the simulation window, but cannot build on real device or archive. Errors: Missing com.apple.developer.in-app-purchase, com.apple.developer.in-app-purchase.non-consumable, and com.apple.developer.in-app-purchase.subscription entitlements. Automatic signing failed Xcode failed to provision this target.
1
0
35
1d
Using #Preview with a PartialyGenerated model
I have an app that streams in data from the Foundation Model and I have a card that shows one of the outputs. I want my card to accept a partially generated model but I keep getting a nonsensical error. The error I get on line 59 is: Cannot convert value of type 'FrostDate.VegetableSuggestion.PartiallyGenerated' (aka 'FrostDate.VegetableSuggestion') to expected argument type 'FrostDate.VegetableSuggestion.PartiallyGenerated' Here is my card with preview: import SwiftUI import FoundationModels struct VegetableSuggestionCard: View { let vegetableSuggestion: VegetableSuggestion.PartiallyGenerated init(vegetableSuggestion: VegetableSuggestion.PartiallyGenerated) { self.vegetableSuggestion = vegetableSuggestion } var body: some View { VStack(alignment: .leading, spacing: 8) { if let name = vegetableSuggestion.vegetableName { Text(name) .font(.headline) .frame(maxWidth: .infinity, alignment: .leading) } if let startIndoors = vegetableSuggestion.startSeedsIndoors { Text(Start indoors: (startIndoors)) .frame
1
0
27
1d
Reply to Background App Refresh
Just following up as I am still in need of a resolution. Quinn was handling this from the code/operation side, so wasn't really tracking this thread. However, there are two common issues here from the framework usage side. The first one is that by calling scheduleAppRefresh at app launch, you're unintentionally preventing your own task from reliably firing. Basically, here is what happens: Your app stopped running at some earlier point in the day for normal reasons (free up device memory, etc.). It came time to run your task, so the system launched your app. Your app started up, you configured the background task framework, then ran scheduleAppRefresh. scheduleAppRefresh scheduled your task to run 10 mins from now. Duet (the daemon that supports the background task framework) assessed your task state, determined that you had not tasks ready to run (since the next one isn't runnable for 10 min...) and suspended your app. Secondly, I think you probably want to use BGProcessingTask, NOT
1d
Background App Refresh
Hi, I have a couple questions about background app refresh. First, is the function RefreshAppContentsOperation() where to implement code that needs to be run in the background? Second, despite importing BackgroundTasks, I am getting the error cannot find operationQueue in scope. What can I do to resolve that? Thank you. func scheduleAppRefresh() { let request = BGAppRefreshTaskRequest(identifier: peaceofmindmentalhealth.RoutineRefresh) // Fetch no earlier than 15 minutes from now. request.earliestBeginDate = Date(timeIntervalSinceNow: 15 * 60) do { try BGTaskScheduler.shared.submit(request) } catch { print(Could not schedule app refresh: (error)) } } func handleAppRefresh(task: BGAppRefreshTask) { // Schedule a new refresh task. scheduleAppRefresh() // Create an operation that performs the main part of the background task. let operation = RefreshAppContentsOperation() // Provide the background task with an expiration handler that cancels the operation. task.expirationHandler = { ope
23
0
394
1d
How are Assets removed?
Hello, I'm trying to figure out the behavior of AssetPackManager.shared.remove(assetPackWithID: ). I'm working with MapKit tiles and currently working on trying projecting them correctly which involves serving the AssetPack locally, downloading, checking alignment, and then deleting and changing. My question is that remove(assetPackWithID: ) completes successfully and the asset pack is removed. This is confirmed by trying to remove the AssetPack again which throws an error. However, the asset is still appearing on MapKit after the removal. This is a bit odd as this persists not only with force killing, but also restarting the device. Please advise on how to properly remove an AssetPack. Thank you iPhone 15 Pro Max (iOS 26.0.1) iPhone 17 Pro Max (iOS 26.0.1)
1
0
132
1d
IAP Product Not Getting Approved – Stuck in Review Loop
I’m stuck in a loop where my in-app purchase (IAP) product cannot be reviewed because my app version is in “Rejected” status. In order to submit the IAP for review, I need to submit a new app version and select the IAP product. But since the current version is rejected, I can't select the IAP during submission. As a result, RevenueCat can't fetch the IAP products, and the app appears to not use in-app purchases, which leads to another rejection. I’d like to know the correct steps to break this cycle and properly submit both the app and the IAP for review. Any guidance is appreciated!
2
0
110
1d