Issue using Codename One iOS Certificate Wizard, getting error "REST request failed" - ios

I have been trying to generate an iOS certificate from the Codename One Control Center, launched from Intellij. Every time I submit my apple iOS developer credentials, and then input the 2 factor authentication code, it returns with this error:
REST request failed due to internal CLI failure. See server error log.c5307525-1805-4360-d4ca9d46cad0
I enrolled in the Apple Developer Program, and I believe I've agreed to all of the Apple Developer agreements and such, and I have exactly one device registered, as well as that one device set as the trusted device, so it receives the 2 factor authentication notifications. I'm also not sure where I am expected to be able to see the "Server error log" as I have searched around for that.
I've only been able to find 2 other cases that seem similar to mine but neither give me a clear idea of what the problem is or how to fix it. They do however seem to resolve their problems. I really don't have any more ideas as to what the problem could be.
Codename One IOS signing
Unable to Login to iOS Account from CodeNameOne
Another odd thing about this problem is that usually I get this error after being prompted to input the 2-factor authentication code, but sometimes I'm never prompted to input the code before getting the error, yet I will still receive the 2-factor authentication code text message on my phone despite there being nowhere to use it.
Any help is appreciated.

I have made some updates to the certificate wizard to try to work around this issue. Please give it another try. If you run into another problem, please post the error message again, and I'll look it up in the logs.

Ok so after looking around a bit further, I was finally able to find a git issue post that seemed similar to mine, and at the very end of the thread (linked below), someone mentioned that you need to be signed into that apple id on the device, not just have it as a trusted device. My iOS phone was showing up in the account because I was logged into the Apple Developer App, but this is not enough. Thanks for helping.
https://github.com/codenameone/CodenameOne/issues/2779

Related

ItunesConnect - Your account will soon need to be migrated to federated auth [duplicate]

This post relates to a rapidly changing event.
I am getting this message on my App Store Connect:
Your account will soon need to be migrated to federated auth. You can start the process now or wait until August 28, 2020 for your account to be migrated automatically.
If I click on "Start the process now", then getting this:
{"data":null,"messages":{"warn":null,"error":["Not Found"],"info":null},"statusCode":"ERROR"}
And when I click on "Learn More", Safari can't open the page for me. It is giving this:
So can any of you please tell me what is this all about?
Looks like broken deploy on Apple’s end where they accidentally rolled out an internal page to third-party developers. AppleConnect and Quip are used internally so it’s not surprising to see them mentioned. (The link that is failing to load is behind Apple’s corporate VPN.)
I have contacted Apple Support on phone and they assure me that it is not for developers accounts and I should just ignore it as it is related to Apple Business Manager. And as a confirmation they sent an e-mail to confirm it with some links to help with understanding more about it.
https://support.apple.com/en-ie/guide/apple-business-manager/intro-to-federated-authentication-apdb19317543/web
I think it was a bug. Right now when I log in to my App Store Connect, I am not seeing any related error or message on the top portion of my portal. It simply got vanished.

App Store Connect message: Your account will soon need to be migrated to federated auth

This post relates to a rapidly changing event.
I am getting this message on my App Store Connect:
Your account will soon need to be migrated to federated auth. You can start the process now or wait until August 28, 2020 for your account to be migrated automatically.
If I click on "Start the process now", then getting this:
{"data":null,"messages":{"warn":null,"error":["Not Found"],"info":null},"statusCode":"ERROR"}
And when I click on "Learn More", Safari can't open the page for me. It is giving this:
So can any of you please tell me what is this all about?
Looks like broken deploy on Apple’s end where they accidentally rolled out an internal page to third-party developers. AppleConnect and Quip are used internally so it’s not surprising to see them mentioned. (The link that is failing to load is behind Apple’s corporate VPN.)
I have contacted Apple Support on phone and they assure me that it is not for developers accounts and I should just ignore it as it is related to Apple Business Manager. And as a confirmation they sent an e-mail to confirm it with some links to help with understanding more about it.
https://support.apple.com/en-ie/guide/apple-business-manager/intro-to-federated-authentication-apdb19317543/web
I think it was a bug. Right now when I log in to my App Store Connect, I am not seeing any related error or message on the top portion of my portal. It simply got vanished.

"Incomplete registration" error using "Sign in with Apple"

I am attempting to submit a new iOS app to Apple that uses "Sign in with Apple" to authenticate users. In all my local testing, this works perfectly.
During Apple's review process, they ran into an error and provided this screenshot:
Unfortunately, the error message is in Chinese, but Google Translate say it means "Incomplete registration".
The weird thing about this is that the error message is in place of where there should be a button. Here is how the screen looks when I try it:
Does anyone know how to get into this state where there is an error instead of a button to continue with the sign-in process?
Is it possible that this is human-error on the part of the reviewer, and they for some reason don't have the Apple ID account setup correctly on the device?
I'm not sure if it is relevant, but I am using Firebase authentication to handle the sign-in process. It appears from the screenshot that this occurs before any requests are made to the backend though.
Update:
I found another question that has a similar error message in English. It may be related to my issue, but I have been unable to reproduce this error by using an incorrect Bundle ID as the accepted answer suggests. I just wanted to add this info, as it may have some relevance.
I don't currently have a physical iOS device to test on. Is it possible that this error is only displayed on real devices or only when using a signed .ipa?
Update - App was approved:
I resubmitted my app for review and it was approved, so it seems that human-error or some glitch in Apple's process caused it to be rejected initially. Although my problem is solved, I still have no idea how the reviewer managed to get into the state displayed in the screenshot.
The "Sign-Up Not Completed"/未完成註冊 may be caused by using + signs instead of encoded spaces (%20) in the URL when you redirect to https://appleid.apple.com/auth/authorize
Source: https://forums.developer.apple.com/thread/122458

iTunesConnect "We can't process your request." when going to "App-Specific Shared Secret"

Whenever i try to navigate to App-Specific Shared Secret within ItunesConnect the dialog box attempts to load briefly then I get directed to a crash page titled
"We can't process your request".
I've reset safari clearing all website data and also used other computers.
I've contacted Apple who are sending an email shortly requesting more information but wondered if anyone else had come across a similar fault?
Another very easy solution which worked for me:
Use safari
SOLVED
The problem was due to not previously having created a master shared secret.
Once I did this then I could generate the shared secret for the specific application.
I has a similar issue, when I was getting invited to join Apple Developer Program. I tried joining through the invitation link and I would always get the "We can't process your request" message.
The solution was to:
Log in to an iPhone/iPad with that particular Apple id.
Try to install an app.
You will get a terms and condition pop up that you should accept.
Install the app
Wait for a while until Apple fast servers update your status (around 1 hour for me)
Now you should be able to proceed without the weird message.
I think need to update Mac OS to latest will solve problem. Alternatively you can use google chrome browser.

App rejected due to an IPV6 Swift3 error. How do I fix it?

A few days ago, Apple rejected my app, indicating that it didn't have IPV6 support, however I don't need that support since my app does not require internet access.
I asked the following:
Hi, my app does not need any internet connection yet.
So, why it's required to have support to IPV6?
They said:
Thank you for your response and for your question. In order to bring your app into compliance with Guideline 2.1 it would be appropriate for your app not to crash when logging in.
end
So, why do I need that Support?
If is necessarily, how do I can do it?
Please I need help
Test your app extensively and fix the crash. Enter wrong values, don't enter anything at all, intentionally try to break your app and get it to crash. Then you will find your error and you can fix.
EDIT BASED ON COMMENT BELOW
"My app don`t need conect with external database, because I got the information inside" - in this case, no, you do not need to add IPv6 support because you are not communicating with the internet for logging in purposes.
You can keep the login given it is only going to be 2 people using the app, just resolve the crash when logging in.
To test, enter a variety of incorrect passwords and usernames to ensure that there is no crash on incorrect entries, and confirm that correct entries do not crash the app.
Original Answer
Apple indicated that because there is a login feature, they think it is trying to communicate with an external database (ie a database that is not on the device). If there is no external database, just fix the crash is what they are asking.
Based on your question, you have eluded to the app not communicating externally for logging in. While some may find this odd, it is not uncommon. An example for those wondering would be a childrens app for iPad. The iPad might be shared amongst several children and as such each child might complete different sections or features of the app so an account local to the device is a good idea if there is no cloud support.
If there is external communication, you need to handle the case for no internet access. The question has been answered extensively, however this was the first result I found:
Detect Internet Connection and display UIAlertview Swift 3
Update: Why do I need to Support the case for no internet connection?
A use case:
John has just downloaded your app. He has just walked through the steps to create an account, but he has accidentally set his device to Aeroplane Mode.
John hits the "Create Now" button but nothing is happening. There is no error or success alert appearing, the screen has not changed, he can't see a loading icon. John is confused and getting frustrated because he's certain that he has completed everything in the form.
John doesn't understand that he needs internet connectivity to successfully submit a request to create an account. John decides to delete your app from his device and leaves a bad review.
John really could have used an alert saying "You need internet connection to sign up to this app. Please check you are connected and try again". This would have made John a whole lot happier and he probably would have continued to use your app with all of it's amazing features.
More information can be found in the guidelines that Apple mentioned, and further to this, the Apple Design Principles Guide is an invaluable resource.
I hope this makes sense.

Resources