Welcome to the Apple Developer Forums:

Find answers, ask questions, and share comments on development topics with fellow developers and Apple engineers. 

To get started, search for keywords (like “app distribution”), standard tags (like [SwiftUI]), or WWDC tags (like [WWDC21]).

Learn different ways to search and use the forums

See all WWDC21 tags

Posts

Sort by:
Post not yet marked as solved
6 Views

fail to connect using BSD socket api on IPV6 only network in iOS, if does not bind specific ineterface local address.

my client application always fail to connect using BSD socket api on ipv6-only network in iOS. bsd socket api connect fuction always return failure with 65(no route to host) but if bind socket using specific interface address(en0/ipv6), always succeed to connect. fail case : try to connect without binding. try to connect after binding using "::" , "0:0:0:0:0:0:0": success case: try to connect after biding using (en0/ipv6) local address (ex 2404:xxxx:fce:4551:xxxx:79c7:xxxx:xxxx) Does anyone know fail to connect on ipv6 only in iOS if does not bind specific interface local address.
Asked
Post not yet marked as solved
3 Views

MEComposeSessionHandler alert message not shown

When the mail extension invoke allowMessageSendForSession func, the error prompt did not show the error description. What am I missing? Below is the code:     enum ComposeSessionError: LocalizedError {         case invalidRecipientDomain                  var errorDescription: String? {             switch self {             case .invalidRecipientDomain:                 return "example.com is not a valid recipient domain"             }         }     }          func allowMessageSendForSession(_ session: MEComposeSession) async throws {         // Before Mail sends a message, your extension can validate the         // contents of the compose session. If the message isn't ready to be         // sent, throw an error.         throw ComposeSessionError.invalidRecipientDomain     }
Asked
Post not yet marked as solved
5 Views

canOpenURL returned an incorrect result in iOS 15 run in Xcode13

[[UIApplication sharedApplication] canOpenURL:url] don‘t work run in iOS 15 beta and Xcode13. But it works well in iOS 15 beta and Xcode12. Delete some schemes from LSApplicationQueriesSchemes. Some schemes can work and others still can't work. It has some randomness. I don't know whether it is a system bug or a new rule.
Asked
Post not yet marked as solved
6 Views

Ios 15 beta bug

Me when I updated to ios 15 beta version I found minor bug that didn’t still not corrected. That is, when closing a whatsapp status, i feel a lag. And when sliding down a youtube video, I see lag. My iphone is 7 plus, If anyone knows any ways to fix it, please help me. Or Is it my phone’s problem?
Asked
by Saaliih.
Post not yet marked as solved
14 Views

Ordered Apple Developer Program - Gets cancelled and charged

Good day everyone, Last August 3, I ordered my Apple Developer Program and the payment finally push through (because sometimes it just shows blank screen). Apple has emailed be that my order is being processed. I waited like 25 days thinking that I will get an email when the process has completed. Yesterday, I checked the order thinking that it takes too long then I discovered that the order has been cancelled and I have not billed for it. But when I check my account, Apple billed me on the same day and it did not even come back. I tried contacting them regarding it but the support does not work. It returns 503 Service Unavailable for 2 days now and the Phone Call is also not working. I really need assistance in regard with this matter. I came here to the forums since everything is offline on Apple Support. Anyone here have experienced this? Is the Apple Support down? I already tried different internet provider, different machines and different browser still the same. It returns bunch of errors when I submit my concern. Hoping someone can I assist me here on what to do. Thank you.
Asked
Post not yet marked as solved
14 Views

Test flight invitational code.

I would like go try axie infinity on my iphone but it keeps asking for invational code. How can i acquire one?
Asked
by Sirejesz.
Post not yet marked as solved
12 Views

Message when App Store has payment issue

My app was rejected by App Store three times for the following use case: Users start payment process, App Store has payment issue with the users and stop the payment. The app shows "Payment not Completed" . Apple says that I should not show that message but does not tell me what message to show. I changed the message to "Payment Failure". Apple rejected my app saying the message is not correct. Then I changed to have no message. Apple again failed me. I am desperate. What message/UI should I show in this use case?
Asked
by wildcloud.
Post not yet marked as solved
18 Views

Requirement for News app

Has anyone had any experience regarding approval for News app? Please share your experience. I'm trying to find the guideline for distribution of news app, but I haven't found anything. I know Play store has certain requirements for developer who wants to publish a News app, and I want similar information for App store.
Asked
by CTF.
Post not yet marked as solved
12 Views

post special characters on iOS14.5

When submitting a form with a special character as value on WKWebView, the value sent to the server side is different between iOS14.4 and iOS14.5. This is the same behavior for Safari. Have the specifications changed in iOS 14.5? HTML like this (special characters are 0xF076 0xF076 0xF076 0xF076 0xF076) input type="hidden" name="specialchar" id="specialchar" value="(special characters)" The value received on the server side. iOS14.5 &#57398 iOS14.4 f076f076f076f076f076
Asked
by moro.
Post not yet marked as solved
18 Views

Image-Capture-Core - withCompleteContentCatalog not firing (Rust + Obj-C)

From the imagecapturecore-rs crate here: https://github.com/brandonhamilton/image-capture-core-rs/issues/7 Only didOpenSessionWithError fires when connecting a PTP (picture transfer protocol) device with a None for the error value and an NSArray with a count of 0. decl.add_method( sel!(device:didOpenSessionWithError:), device_did_open_session_with_error as extern "C" fn(&Object, Sel, id, id), ); println!(" 📸 add_method didCloseSessionWithError"); decl.add_method( sel!(device:didCloseSessionWithError:), device_did_close_session_with_error as extern "C" fn(&Object, Sel, id, id), ); println!(" 📸 add_method didRemoveDevice"); decl.add_method( sel!(didRemoveDevice:), device_did_remove_device as extern "C" fn(&Object, Sel, id), ); println!(" 📸 add_method withCompleteContentCatalog"); decl.add_method( sel!(withCompleteContentCatalog:), device_did_become_ready as extern "C" fn(&Object, Sel, id), ); Do I need to be using the fancier cameraDevice.requestOpenSession() with the callback function from here? https://developer.apple.com/documentation/imagecapturecore/icdevice/3142916-requestopensession As seen on StackOverflow: https://stackoverflow.com/questions/68978185/apple-ptp-withcompletecontentcatalog-not-firing-rust-obj-c
Asked
by mikeumus.
Post marked as solved
18 Views

Practical Use of Combine's Subject

I'm trying to understand how Combine works. The following is my sample code. import UIKit import Combine class ViewController: UIViewController { // MARK: - Variables var cancellable: AnyCancellable? // MARK: - IBAction @IBAction func buttonTapped(_ sender: UIButton) { currentValueSubject.send(20) } // MARK: - Life cycle var currentValueSubject = CurrentValueSubject<Int, Never>(1) override func viewDidLoad() { super.viewDidLoad() let cancellable = currentValueSubject .sink { value in print("New value: \(value)") } currentValueSubject.send(5) currentValueSubject.send(10) //currentValueSubject.send(completion: .finished) currentValueSubject.send(15) //cancellable.cancel() } } If I run it with the iPhone simulator, I get New value: 1 New value: 5 New value: 10 New value: 15 If I tap the button, the app won't get a new value. I suppose that's because the subscription is cancelled at the end of viewDidLoad? If so, why does it get cancelled? I don't quite see a practical side of Combine's Subject. When is it useful? Thanks.
Asked
by Tomato.
Post not yet marked as solved
17 Views

Swift + OS X + Xcode : Change NavigationLink destination and text programtically

Hello, I am trying to learn Swift. I have the code below. With a button click I can move to a new view. What I would like to do is once the new view is displayed have the navigation link destination changed to "CurrentView" and the button text to "Previous View". Any insight on how to resolve this issue would be appreciated. Regards, Chris import SwiftUI struct ContentView: View {     var body: some View {         NavigationView {             NavigationLink(destination: NextContentView()){                 Text("Next View")             }         }     } }
Asked
by ChrisMH.
Post not yet marked as solved
13 Views

No result on Multicast Request for Enterprise Account

Hi, I applied multicast request for both Enterprise Account and Standard account through the following URL: https://developer.apple.com/contact/request/networking-multicast I got no response from either of them, but when I download the provisioning profile for Standard Account, I found the multicast function is allowed. However, the request for Enterprise Account has not been approved yet, even several weeks past. Anyone have the same issue? Please help me if you have any advice. Thanks!
Asked
by marvinxue.
Post not yet marked as solved
19 Views

How can I use syslog API on BigSur and after?

Hi, all. I try logging some message of my console application. Just like syslog daemon in linux, I want to change and apply facility and level printing if requested. So, I just try to use syslog API and os_log API both of them. And try to change syslog.conf, add asl.configuration in /etc/asl directory But, it seems not to be applied. Only I can see, log messages can be gotten by using "log" command not saved to file. How can i config just like syslog system in linux and apply this? Thansk.
Asked
Post not yet marked as solved
16 Views

TestFlight axie invitation

Hello Guys, can u send me a code for play Axie Infinity on TestFlight. I appreciate any information about it.
Asked
by Bredicson.