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
1 Views
Hi, it seems there is no support on ios for any planetary imaging cameras to connect to a telescope. There is plenty of windows support and some mac os support (drivers + software). Is anyone planning to develop apps for ipad/iphone for this? I do not want to buy a windows laptop and would like to avoid using my mac. An ipad is much more compact. Thanka
Posted
by
Post not yet marked as solved
0 Replies
3 Views
Hello, On a friend's Mac mini the shell command "system_profiler SPAudioDataType" returns nothing... Other commands like "system_profiler SPHardwareDataType" work and returns data. Is there something I could reset or so to make SPAudioDataType work ? Of course there are audio devices available and working on the Mac mini. Trying to find informations , I saw that, could it be related ? Thanks !
Posted
by
Post not yet marked as solved
0 Replies
2 Views
I have a client with existing products available on their website, and we are beginning to offer those products for sale as IAPs in their app. One of these products is a monthly subscription (let's just say it's $20/month), but the first month is priced higher (let's say $50) due to setup fees (the client truly does have justifiable reasons to charge more to cover their own up-front setup costs). How can we offer such a situation via IAPs on the App Store? My initial guess is to create a subscription IAP product with an introductory price that is set higher than the regular monthly price, but I have concerns this might be rejected after all the work to update the app to handle such an IAP product. Otherwise, I suppose we'd have to fire off two IAP product purchases in series, one for the non-consumable IAP that costs $30 once and another for the subscription IAP that costs $20 per month – but of course that's a pretty suboptimal user experience. Does anyone have experience with this? Or with other means to achieve the same ends?
Posted
by
Post not yet marked as solved
1 Replies
12 Views
My app (for iPad only) submission was rejected with the message: "We are unable to approve your app because it was built for iPadOS only using a pre-release version of iPadOS 16." I removed Xcode and re-installed the latest (14.0.1) from scratch, then resubmitted, but received another rejection. According to system report, I have the following: Version: 14.0.1 (14A400) Location: /Applications/Xcode.app Applications: Xcode: 14.0.1 (21336) Instruments: 14.0.1 (64555.252) SDKs: DriverKit: 21.4: iOS: 16.0: (20A360) iOS Simulator: 16.0: (20A360) macOS: 12.3: (21E226) tvOS: 16.0: (20J373) tvOS Simulator: 16.0: (20J373) watchOS: 9.0: (20R362) watchOS Simulator: 9.0: (20R362) Any ideas what might be wrong?
Posted
by
Post not yet marked as solved
1 Replies
13 Views
I recently noticed that whenever I click on an event that I’ve created with invitees, then the RSVP responses shows that invitees have not yet responded and the invite sends out again to everyone… This is very frustrating and annoys a lot of people… Whenever I’d like to check the Times, Notes, Invitee Responses on an event, then everyone receives an invite again and needs to respond again! Anyone else experiencing this issue?
Posted
by
Post not yet marked as solved
0 Replies
59 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
10 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
16 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
15 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
20 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
16 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
30 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
18 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
14 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
16 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
46 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
10 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

Pinned Posts

Categories

See all