Welcome to the Apple Developer Forums

Post your questions, exchange knowledge, and connect with fellow developers and Apple engineers on a variety of software development topics.

For questions about using Apple hardware and services, visit Apple Support Communities

Posts

Sort by:
Post not yet marked as solved
0 Replies
26 Views
I have one app and the first year is coming up. I received the email reminder that I have 30 days before my IOS Distribution certificate expires. I can't figure out how to renew the certificate through a desktop computer. When I originally signed up for a developer account and added my app it was from a desktop (I don't own a Mac). However, I can't remember how I generated the original certificate.  Can someone help me out? Thanks
Posted
by
Post not yet marked as solved
0 Replies
9 Views
Hi, anyone aware of the limit of merchant ids per ADA . I was creating a Merchant ID on the web and got an error "Unable to add Merchant ID because Merchant ID limit 100 has been exceeded". I found the solution from this link, but I don't use Domain Name because I use it in App through Stripe. (I don't set the Domain Name when I create the ID from the website either). If anyone knows how to create a Merchant ID without using Domain Name and Domain Verification File, please let me know.
Posted
by
Post not yet marked as solved
0 Replies
14 Views
What is the most effective approach to to creating a type of "wizard" interface that takes the user through a process step-by-step, and allows the user to take the steps in any order as he goes along? For instance, the user could start out by selecting from three options: select contacts, select addresses, or selecting a message to send. When he selects one of those options, say select contacts, he sees the interface to allow him to perform that selection, and he sees the other two options to select at any time, which would be select addresses and select message. Say he then selects the option to select a message, he then sees an interface to selecta message and he also sees the other two options. And this continues indefinitely until he selects to send the message. I think the usual view controllers and segues would work for this. Would I need only one subclass of UINavigationController and three subclasses of UIViewControllers? Could this lead to any problems? Is it possible to do this with view controllers and segues? Is there a better way? I do use Swift, but this question doesn't require that I use only Swift, as you can see.
Posted
by
Post not yet marked as solved
0 Replies
14 Views
When I use NavigationSplitView and build for Mac Catalyst, I get the following error: Cannot find 'NavigationSplitView' in scope The app builds and runs fine for iOS 16. I've tried clearing DerivedData for the project. Am I missing a build setting or maybe this is a known issue? XCode 14.0.1 Ventura 13.0 Thanks!
Posted
by
Post not yet marked as solved
1 Replies
17 Views
I development a medical app, this connect with a BLE, and the user suffers an accident such as a fall, BLE send a notification to user app and app should send a sms an emergency contact I see in the apple documentation it is not possible to do it, but the app requires it
Posted
by
Post not yet marked as solved
0 Replies
15 Views
Hello, I have an issue with the automatic keyboard dismissing in a modal : If I present a modal with textfields, and I try to dismiss the modal to close the keyboard, the keyboard disappear (that's good) but it leave some space... Here is the example : And here is my code to reproduce the issue (iOS 16, real device) : struct ContentView: View {     @State private var isViewPresented: Bool = false     var body: some View {         Button {             isViewPresented = true         } label: {             Text("Show View")         }         .sheet(isPresented: $isViewPresented) {             FormView()         }     } } struct FormView: View {     var body: some View {         NavigationView {             ScrollView {                 VStack(spacing: 32) {                     TextField("Text 1", text: .constant(""))                         .frame(height: 42)                         .background(Color.red)                     TextField("Text 2", text: .constant(""))                         .frame(height: 42)                         .background(Color.red)                     TextField("Text 3", text: .constant(""))                         .frame(height: 42)                         .background(Color.red)                     TextField("Text 4", text: .constant(""))                         .frame(height: 42)                         .background(Color.red)                 }             }             .background(Color.yellow)             .navigationTitle("Form view")         }     } } As you can see, when I start to dismiss the modal, the keyboard disappear and then there is a black space who appears... Any suggestions ? Thanks, Alexandre
Posted
by
Post not yet marked as solved
0 Replies
29 Views
My team has a set of XCTestCases which create a new instance of WKWebView, execute some javascript with it, then assert some conditions afterward. Beginning with iOS 16, these tests never succeed because it seems like the WKWebView is experiencing some sort of crash or malfunction in its content process. When executing a single test of the type above, the following is present in the console: [Process] 0x142481000 - [PID=0] WebProcessProxy::didFinishLaunching: Invalid connection identifier (web process failed to launch) [Process] 0x142481000 - [PID=0] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash [Process] 0x7f7d86008220 - [pageProxyID=6, webPageID=7, PID=0] WebPageProxy::processDidTerminate: (pid 0), reason=Crash [Loading] 0x7f7d86008220 - [pageProxyID=6, webPageID=7, PID=0] WebPageProxy::dispatchProcessDidTerminate: reason=Crash [Loading] 0x7f7d86008220 - [pageProxyID=6, webPageID=7, PID=0] WebPageProxy::dispatchProcessDidTerminate: Not eagerly reloading the view because it is not currently visible I've tried ensuring that an app host is present for the test target these tests execute in and that had no effect. I've tried adding the webview to the apps view hierarchy and that had no effect. In iOS 15 and prior these same tests execute and pass fine. Was there some change in iOS 16 that may have caused this or any ideas on how to rectify this?
Posted
by
Post not yet marked as solved
0 Replies
17 Views
We are developing our Driver using DriverKit. In client App we successfully discover our driver but can't get IORegistry properties except IOClass. So in a client App we use following code to read properties:     private func debugRegistry(device: io_object_t) {         var dictionary: Unmanaged<CFMutableDictionary>?         IORegistryEntryCreateCFProperties(device, &dictionary, kCFAllocatorDefault, .zero)         if let dictionary = dictionary {             let values = dictionary.takeUnretainedValue()             print(values)         }     } output is: {     IOClass = IOUserService; } We tested same code on macOS and output contains about 20+ properties. It looks like IOKi doesn't allow to read other properties except IOClass. Environment: Xcode - Version 14.1 beta 2 (14B5024i). iPadOS - iOS 16.1 (20B5050f)
Posted
by
Post not yet marked as solved
0 Replies
12 Views
I have an application which should use Apple Pay. As soon as user accept payment and Apple Pay works well, like Face ID or PIN, I would like to send Apple Pay Token to PayU. Unfortunatelly I did not find and support in PayU (https://czech.payu.com/en/) In my ApplePayViewController I have method like: class ApplePayViewController: { func submitToken(payment: PKPayment, completion: @escaping (PKPaymentAuthorizationResult) -> Void) { let result = PKPaymentAuthorizationResult(status: .failure, errors: nil) let jsonPayment = try? JSONSerialization.jsonObject(with: payment.token.paymentData, options: []) as? Dictionary<String, AnyObject> if let jsonData = jsonPayment { let jsonTokenString = String(decoding: payment.token.paymentData, as: UTF8.self) print("Json Data String: \(jsonTokenString)") } // What should be sent to PayU? // paymentData? https://developer.apple.com/documentation/passkit/pkpaymenttoken/1617000-paymentdata // Or data from Payment Token Structure https://developer.apple.com/documentation/passkit/apple_pay/payment_token_format_reference#//apple_ref/doc/uid/TP40014929 // Data are sent to my server over API like // https://<URL>/api/send_payment&user=<username>&token=<token>&payment_data=<ApplePayToken> do { send_payment(data: paymentData, completion: { apiResponse in switch apiResponse { case .success(let zapisStatus): result.status = PKPaymentAuthorizationStatus.success completion(result) case .failure(let error): result.status = PKPaymentAuthorizationStatus.failure completion(result) } }) } } extension ApplePayViewController: PKPaymentAuthorizationViewControllerDelegate { func paymentAuthorizationViewController(_ controller: PKPaymentAuthorizationViewController!, didAuthorizePayment payment: PKPayment!, handler completion: @escaping (PKPaymentAuthorizationResult) -> Void) { let status = PKPaymentAuthorizationStatus(rawValue: 0)! switch status.rawValue { case 0: self.paymentStatus = PKPaymentAuthorizationStatus.success completion(PKPaymentAuthorizationResult(status: PKPaymentAuthorizationStatus.success, errors: nil)) case 1: self.paymentStatus = PKPaymentAuthorizationStatus.failure completion(PKPaymentAuthorizationResult(status: PKPaymentAuthorizationStatus.failure, errors: nil)) default: self.paymentStatus = PKPaymentAuthorizationStatus.failure completion(PKPaymentAuthorizationResult(status: PKPaymentAuthorizationStatus.failure, errors: nil)) } if payment.token.paymentData.count > 0 { self.submitToken(payment: payment) } } The data are send over by this code: public func getURLRequest(endpoint: String, data: Data) -> URLRequest{ guard let url = URL(string: RestAPIHelper.RestAPIKeys.url_pub + endpoint) else { fatalError() } var urlRequest = URLRequest(url: url) urlRequest.httpMethod = "POST" urlRequest.addValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type") urlRequest.httpBody = data return urlRequest } func send_payment(data: Data, completion: @escaping(Result<[UserPlatbyInfo], APIError>) -> Void) { let urlRequest = getURLRequest(endpoint: APIInterface.user_zapisplatbu.rawValue, data: data) let dataTask = URLSession.shared.dataTask(with: urlRequest) { respData, resp, _ in // Handle return status dataTask.resume() } Basically I don't know what PayU expects in order to accept ApplePayToken. PayU expects Apple Pay Token, but it is https://developer.apple.com/documentation/passkit/pkpaymenttoken/1617000-paymentdata or https://developer.apple.com/documentation/passkit/apple_pay/payment_token_format_reference#//apple_ref/doc/uid/TP40014929
Posted
by
Post not yet marked as solved
0 Replies
15 Views
My app is essentially a digital marketplace where users can set their prices and sell digital products to other users. I read the App Review policy and found out that I had to implement in-app purchases if I wanted to sell digital products on iOS. In the process of figuring out how this was going to be implemented, I realized that in-app purchase items have to be created ahead of time. This means dynamic pricing is not possible, so what do now? Is there not a way to programmatically create in-app purchases? If there is not a way to do this, and I cant use my own payment processor, what is the way forward?
Posted
by
Post not yet marked as solved
2 Replies
34 Views
I am working on minimizable side menu with collapsable sub menus in swift. Currently both the minimizing and collapsable submenu components are working. I have spent days trying to set the background color of the menu items. As it stands listRowBackground does nothing. I have read on stack overflow (and other websites) how to solve this issue, but none of them seem to work. Some say to use for each loops. Below I have SideMenu structs. The first one uses the listRowBackGround method to try to change the color. This method does not do anything. The other SideMenu struct uses a for each loop. This loop changes the color, but I cannot get the menu to move to the left hand side of the screen and not take up the entire width. Can someone help me with either of these approaches to keep the menu on the left hand side of the screen and change the row background color? Any help is appreciated! I have also updated Xcode to version 14, but it did not help. import SwiftUI struct SideMenu: View { let width: CGFloat @Binding var menuOpened: Bool var items: [Menu] = [.item0, .a, .b, .c] var body: some View { ZStack { VStack(alignment: .leading){ HStack{ List(items, children: \.items){ row in HStack{ if row.imageName != ""{ let image = Image(systemName: row.imageName) image.resizable() .aspectRatio(contentMode: .fit) .foregroundColor(.black) .frame(width: 32, height: 32, alignment: .center) }else{ Text(row.name).listRowBackground(Color.orange) } }.listRowBackground(Color.orange) .onTapGesture { if row.imageName == "line.horizontal.3"{ menuOpened.toggle() } } } .background(Color.red) .listStyle(.plain) .frame(width: menuOpened ? 275 : 80) Spacer() } } } } } struct Menu: Identifiable{ let id = UUID() var name = "" var imageName = "" var items: [Menu]? } struct ContentView: View { @State var menuOpened = true var body: some View { SideMenu(width: UIScreen.main.bounds.width/1.6, menuOpened: $menuOpened) } } extension Menu{ static var item1 = Menu(name: "a1") static var item2 = Menu(name: "a2") static var item3 = Menu(name: "a3") static var item0 = Menu(imageName: "line.horizontal.3") static var a = Menu(name: "a", items: [.item1, .item2, item3]) static var b = Menu(name: "b") static var c = Menu(name: "Settings") } //Here is a struct with a for each loop struct SideMenu: View { let width: CGFloat @Binding var menuOpened: Bool var items: [Menu] = [.item0, .a, .b, .c] var body: some View { ZStack { VStack(alignment: .leading){ HStack{ List { ForEach(items) { row in HStack{ if row.imageName != ""{ let image = Image(systemName: row.imageName) image.resizable() .aspectRatio(contentMode: .fit) .foregroundColor(.black) .frame(width: 32, height: 32, alignment: .center) }else{ Text(row.name).listRowBackground(Color.orange) } }.listRowBackground(Color.orange) .onTapGesture { if row.imageName == "line.horizontal.3"{ menuOpened.toggle() } } } .background(Color.red) .listStyle(.plain) .frame(width: menuOpened ? 275 : 80) Spacer() } } } } } }
Posted
by
Post not yet marked as solved
0 Replies
9 Views
I have the following problem to transfer my app to another apple account. When transferring apple says that the in app purchase status requirement must have status compliant. But this app doesn't have any in app purchase, I've tried everything and nothing.
Posted
by
Post not yet marked as solved
1 Replies
17 Views
I encountered a strange issue on iPhone 14. While making a call, before somebody answers, you can hear a dialing tone. The issue is I cannot change the volume while I hear a dialing tone. Though I'm changing the phone volume by pressing the volume buttons, nothing changes. Strange thing is that the volume changes I made suddenly start working exactly the moment somebody answers the call.
Posted
by
Post not yet marked as solved
0 Replies
30 Views
After renaming project I have been getting this error, no matter any solution I apply it keeps coming back. Not an expert with Xcode and i'm starting to get afraid that I might do more than damage to the project if I continue to try and fix it. Any Idea how I can fix this. Multiple commands produce'/Users/username/Library/Developer/Xcode/DerivedData/appName- hhxnebfjfgazokacipibkcifIrvm/Build/Products/Debug-iphonesimulator/.app' Target 'appName' (project 'appName") has create directory command with output '/Users/username/Library/ Developer/Xcode/DerivedData/appName-hhxnebfjfgazokacipibkcifIrvm/Build/Products/Debug- iphonesimulator/.app' Target 'appName' (project 'appName") has link command with output '/Users/username/Library/Developer/ Xcode/DerivedData/appName-hhxnebfjfgazokacipibkciflrvm/Build/Products/Debug-iphonesimulator/.app'
Posted
by
Post not yet marked as solved
0 Replies
24 Views
I am trying to convert PKDrawing data to uiimage. Thus I've used apple's API PKDrawing data to uiimage. But the colour intensity of the converted image increases surprisingly. I mean there is a difference between the canvas data and the converted uiimage. What could be the reason behind that? Here is the scenario Preview Drawing Data on CanvasView Preview after converting Drawing Data to uiimage
Posted
by
Post not yet marked as solved
1 Replies
23 Views
We have 1 subscription group with 2 auto renewable subscriptions, A and B. We would like to remove subscription A. Existing users that have subscription A should keep this subscription, keep being charged and be able to use the restore functionality. In our code we made sure that users with subscription A still have their access to our product. We don't want new users and users with subscription B being able to purchase or switch to subscription A via the iTunes screen in the iOS settings. How can we achieve this best? Reading some Stackoverflow and Apple Developer Forums posts regarding this topic seem to suggest to uncheck "Cleared for sale". But when we read the document on https://help.apple.com/app-store-connect/#/dev840c56fb6 it states: "When you remove an in-app purchase product from sale, customers that already purchased the product can’t restore it to their device or renew the in-app purchase if it’s an auto-renewable subscription. If you clear the product for sale, the status changes to Approved." So we think this is not to prefered way to do this (anymore).
Posted
by
Post not yet marked as solved
0 Replies
17 Views
Bonjour, Je souhaiterai télécharger l'application testflight pour le travail. Le problème c'est que les tablettes que nous utilisons sont dirigées à distance par notre employeur et s'il souhaite obtenir l'application c'est sous la forme d'achat intégré. Apparamment il faudrait que vous puissiez assigner 1-2 de nos tablettes à votre apps. Cela est-il possible?
Posted
by

Pinned Posts

Categories

See all