iOS Build Error

@bamazy, I really want to help you. But unless you do the tasks I ask, I don’t know how much more help I can be?

  1. have you put the MinOSVersiojn in your build.settings yet? This will hopefully mask the pages of Warnings coming from the Appdoeal plugins. If you have, where is the link to the pastebin of the “entire” console log that I asked for? You have to build for the store so I can see the errors and the messages that led up to the build failure.

  2. Have you tried building the HelloWorld sample app using your provisioning profile and tried to upload it with Application Loader from Corona’s build options? This is important to rule out problem in your project or with your build.settings or plugins that you’re using. Please let me know the results.

With out these two I can’t provide you any further help.

As to your questions two posts up. Xcode should probably be logged in with your Apple Developer account. Logins to the web portal for App Store Connect and the Certificates, IDs and Profiles site probably doesn’t matter. That’s all setup and once you download a valid provisioning profile for the store, the websites are not used again.

You do need to be logged in to your developer account inside Application Loader, but the error you’re showing seems to be happening before you get to Application Loader.

Keychain Access keeps track of your public/private keys (I.e. certificates). You may need to be logged in there to get your certificates installed correctly.

Generally Corona will check your provisioning profiles to make sure they are valid (built against a valid certificate, if you choose upload to the App Store it’s got to be a valid distribution profile, etc.). Its the last condition that is failing.

In one of your screenshots above, you posted the contents of your provisioning profile folder, but it looks weird. First it’s case sensitive so it should be "Provisioning Profile with capital letters. Please open a terminal and paste in this command:

ls -l ~/Library/MobileDevice/Provisioning\ Profiles/\*

exactly like that and then copy/paste the results back. 

Please do **all** of this and share the results. Multiple posts for each step would likely be helpful.

Rob

@Rob, I really appreciate your help.  :rolleyes:

I tried the second option to build a TestApp. First, I went to the Developer Central and added an identifier, then I added to provisioning profiles for Development and Distribution. Then I downloaded and installed the profiles. Then from App Store Connect, I added a new app, chose the exact identifier I have just created as bundle id. And then I restarted the Corona, restarted it, created a new project, clicked on CTRL+B to get the build form menu. Then chose the distribution profile for the newly created TestApp, and chose “Send to App Store”, it asked me the password for the keychain. I typed my root password which I use to sign in to Mac. I got the same error message. Which means I can not build with the option “Send to App Store” selected. 

I selected “Show in Finder” option and clicked on the Build button. After 25 seconds the build is ready. I opened Xcode and then I opened Application Loader. On Application Loader, when I try to choose the newly built file, I can not select it as it is passive. I think it’s because it looks for .ipa files. So, I create a new folder named TestApp, put the newly built application inside it and compress it by right clicking on the folder. Then I have zip file and I change the extension to ipa so that I have TestApp.ipa file. Then again from the Application Loader I chose the TestApp.ipa and this time it shows me the name I gave to the app on App Store Connect page. After some time sending assets for verification, I get the same error message that apps must contain a provisioning profile in a file named embedded.mobileprovision.

This is the log from the built process: https://pastebin.com/RwVWU8HD

I think something related to the keychain or keychain password might be the problem. 

Rob, I deleted mobile provisions folder, deleted everything related to Apple Developer Certificate, Distribution, etc. from Keychain Access, restarted the Mac, tried to select the appropriate profile from the build screen but there was none there. I installed the previously downloaded profiles, but again none was available to select. Then I went to the Developer Portal and edited the sample app keys and noticed that for the distribution, I needed either select the newly created certificate or the previous one. I chose the new certificate, saved, downloaded and installed the new profiles, then restarted Corona and this time I was able to select the app profile from the list. And I was able to select Send to App Store and build the sample app!!!  B)

It’s almost two weeks that I have been trying to solve this problem. During this time you spent your precious time to help me to solve the problem! I deeply appreciate your help and your time! 

So you’re good to go?

Rob

Yes, Rob. So far I have uploaded one app to App Store and tested on TestFlight. Thanks a lot for the help.