Xcode 10 troubles: How can I put the app's build inside the archives panel and then load it on the App Store Connect site? - swift4

I completed to code my first app with Swift 4.
I have an Apple Developer account and I'd like to share my app on the App Store.
I've done all the correct procedure but, when I try to load the app's build on the App Store Connect site, I'm not able to do it!
Checking inside Xcode I've seen that my app's build isn't present in the archives panel (reading around, it looks to be the issue)... I tried to follow the indications given by the program's help instrument but I got crazy doing it!
How can I put the app's build inside the archives panel and then load it on the App Store Connect site?

Choosing Product > Archive in Xcode will create an archive of your project. After creating the archive, choose Window > Organizer to open the Organizer window. Click the Archives tab in the Organizer to access your archives and upload them to App Store Connect. Select an archive and click the Distribute App button to upload the archive to App Store Connect.

Related

Is it possible to add MacOS app from a Xcode project to Launchpad?

Made a simple macOS app for personal use and was wondering if there's a way to add the project app to the Launchpad instead of having having to run the app through Xcode simulator.
Since we're able to install apps from Xcode to our iOS units I was hoping there was a way to do the same for a Mac.
Yes. Open the Xcode project for the app that you want. Make sure that the target for your build is "My Mac". Then click Product→Archive. Once a new window opens with your archive, click Distribute App, then Copy App. Click Next then choose a location for the app to be put.
Note: you can skip this if you pay for a developer's account (I think). Next, right-click the app file and click Open. It will say it's from an untrusted developer (you) because you don't pay for the developer's program.
Now move the app into the Applications folder.
Yes, GO to Product→Archive→Distribute App→Copy App and move to application folder.

What steps can I take to get an ipa file generated by xcode onto a test ios device?

I want GUARANTEED steps to get this to work.
I've pulled my hair out on this task many times since I started doing this work 6 months ago, and the feedback from itunes and the organizer is non-existent.
I have full access, I can go into the apple dev centre and do whatever is necessary and I know my way around xcode now.
Currently, when I connect my iPhone and click applications under the iphone [on the left in the organizer] the add and remove buttons are disabled and I can't click and drag ipa files into it.
If I open itunes and click and drag my app into the applications area for my macbook, it works and overwrites the current app, but when I try to click update, then sync, it successfully syncs, but still has the button saying "update" instead of "install", and when I view the phone it says " failed to install" or some other ridiculously generic message.
I've also tried to create a new profile, but when i use the add button in the organizer to attempt to add it to my iPhone it accept the file, but doesn't shot i on the list. I click and drag and it's the same thing, no error and it looks like it'll accept it, but it doesn't show up on the list. So I can't seem to attempt to add a new profile.
BTW, The device is in the devices list and has a valid profile [and the profile has the device in the list of devices (and the UDIDs match)].
I'm looking for some solid steps to guarantee the app will be installed on the phone without these headaches.
Xcode: 4.5.1
iphone: 6.1.3
Any help you can give would be greatly appreciated. Honestly, I'm ready to quit my job because the stress this software is causing me, this is ridiculous.
(my frustration: I've had compilation errors that are resolved by restarting xcode, I've had to restart my computer to resolve profile issues, and far too many times I've had to flush everything just to deploy to the app store... I've never dealt with such a terrible awful piece of software and toolchain in my entire life [and I've used Windows and VS!])
Check out TestFlight - http://testflightapp.com
They give step by step instructions on how to distribute ad-hoc versions. Its very easy to set up.
Set up your provisioning profiles, build/archive your app, then distribute it via TestFlight.
See http://help.testflightapp.com/ for help.
Follow the Steps:
1 - Create a provision profile Distribution for your app ( don't forget to add the devices, witch will test this. Its very important because case you dont add then, they will not have permition to install the app.). After create download and double click it. Don't delete yet, you will need it to upload after.
2 - Go to your project, Build / Targets / Build Settings / Code Signing and set the provision profile you create.
3 - Build the project. If its ok, click in product, archive
4 - Click in Distribute, Save for Enterprise or Ad-Hoc Deployment. Save your .ipa
5 - Go to TestFlight Create the app and upload the build.
6 - Go to Apps Builds and click in your app.
7 - Go to Permitions and Upload the Provision Profile!! Now you can choose in this list who you want to notify about the app to download!
8 - (Optional) Go to People and create/manage your team giving the right priorities.
You should implement the SDK case you want to manage the Sessions. Its Very simple, just follow the tutorial Documentation and the sdk iOS SDK Download
Follow below steps to install .ipa file without using testflight
Extract the folder which contains files .ipa and .mobileprovision .
Open iTunes and connect your device.
Drag and drop .mobileprovision on Library->Apps group section of
iTunes.
Repeat above step with .ipa .
Sync your device and it's done.

XCode app not syncing to itunes

I created an app on Xcode and synced it to iPhone and it works fine. Now, i want to sync the app to iTunes so that i can copy the ipa file and send it to someone else for testing.
But the app is not getting synced to iTunes.
Is there any way to get the ipa file?
My app uses sqlite database. Is that the reason for not getting the app synced?
Try this:
1) Build a app. And you will get a .app
2) Open iTunes
3) Drag and drop a .app to the iTunes at left panel on top. For truely drop, you must see a Green "+" about cursor when you are draged a .app on panel.
4) iTunes will convert your .app to .ipa file
5) Look at Users/{you}/Music/iTunes/iTunes Media/Mobile Applications folder and find your IPA app file
Hope this helps you
I think you're over thinking this one, instead of deploying to your phone then syncing back to iTunes, try archiving your app, then making an ad-hoc distribution. This will give you the IPA
Now, I'm not completely sure about this but Apple may have specifically put protocols in place to keep your from making your own ad-hocs your the way you described.
In xcode go to Product->Archive. After the Archive operation completes, go to the Organizer, select your archive, select Share and in the "Select the content and options for sharing:" pane set Contents to "iOS App Store Package (.ipa) and Identity to iPhone Distribution (which should match your ad hoc/app store provisioning profile for the project).

how to create binary of iphone application

On reading the iTunesConnect_DeveloperGuide.pdf, i came across the term binary. This is the paragraph found in the pdf:
To submit your application through iTunes Connect and get it posted on the
App Store successfully, make sure you have the following:
Application binary (includes 57px icon), large 512px icon for use on the App Store,
primary screenshot, contract information, export compliance information and applica-
tion metadata
It is also mentioned that the binary should be a zipped file.
Can anyone please explain what is a binary and how to create one?
Thanks
This is the method I found out. Please correct me if there is any mistake:
Find the file ending in ".app" in the Products folder of your application in Xcode.
Right-click on it and choose Show In Finder.
From there, right-click again and choose Compress.
The resulting zipped file is the binary of your iphone application.
In this case, what Apple really means is the complete Application Bundle. You create it by building your project with XCode for the iPhone OS target. Don't forget to sign it for App Store Distribution during the XCode build process, as described in Apple's iTunes Connect / Developer Pogram Portal documentation.
To submit an app update, just log on to iTunes Connect (itunesconnect.apple.com) and click on "Manage Applications". Click on the application you want to update. From there, there is the icon of the app and next to it, a button that says "Add Version". Click it, and from there just follow iTunes Connect's advice! If you submit a NEW application with the same name but a different version, it will just add a NEW application to the app store (if it doesn't give you an error)! Then, v1.0 and v1.1 will BOTH be available for download.

How do I build an xcode project for the itunes store?

I've got my apps running on my iphone, great, however to list on the itunes store I need the "universal binary" thing.
I've tried finding answers, but I can't seem to find a concise useable explanation to doing this in xcode. I always get errors when I try to build a binary. Can anyone point me towards a basic step-by-step procedure I can follow to creating a universal executable binary which can be uploaded on the itunes store?
One more thing, is there some type of app, like the rename project app, or applescript thing, that can do this for me with a few clicks?
Try this:
Prepare a new provisioning profile for App Store
Make sure you have Ad Hoc distribution working OK.
Go onto the Program Portal > Provisioning > Distribution
New Profile button
Distribution Method: App Store
Profile Name: MyApp App Store (or whatever)
App ID: MyApp (you have already created one right?)
Submit button
Set up the new profile/configuration in XCode
Download the certificate (you can click on the Distribution tab to reload that tab while it's being generated) and load it into XCode
In XCode, open your project and go to Project > Edit Project Settings (or double-click on the first item under Groups & Files panel)
Configurations tab, click on your existing Ad Hoc distribution configuration, that already works, and click Duplicate button. Call the new one "App Store"
Click on Build tab, then under Code Signing > Code Signing Entity in the popup choose "iPhone Distribution - MyCompanyName" under "MyApp App Store"
Build & Upload to iTunes Connect
Clean all for good luck, then set Active Configuration to "App Store", build & go. Test it on your iPhone.
Find your built app in the Finder, in your project directory > build > App Store-iphoneos > MyApp.app ... right click and "Compress MyApp.app"
Upload resulting MyApp.zip to iTunes Connect.
A Universal Binary has nothing to do with it. To distribute through the App Store, you need to create a Distribution provisioning profile. The iPhone developer portal has step-by-step directions for this. look under the "Distribution" tab.
I followed the instructions listed by sbwoodside but had problems with the last part (Build & Upload to iTunes Connect). I realized that the built version didn't run on the device. This is what worked for me:
Build & Upload to iTunes Connect
Clean all for good luck.
Go to "Edit Scheme" and in the Archive menu, select the App Store
build configuration.
Select iOS Device or a specific device in the drop down menu and go
to Product->Archive.
Once Xcode is done archiving, it will open the organizer window and
show the archives section. Select the last archive and click
"Submit".
You will be asked to enter your distribution certificate. Select
the one created for the App Store.
XCode will upload the app to iTunes Connect without the need of
using Application Loader. For this to work, the app has to be in
"Ready to Upload" status in iTunes Connect.
You won't get to test the last version with the device. Therefore it's best to make an ad hoc version before to be able to test all features and once everything is working, duplicate the ad hoc configuration for the app store.
Once you have your provisioning profiles downloaded and installed you need to make some changes within XCode to get the app to work on your iPhone and eventually to submit to the iTunes store. You'll also need to add an Entitlemests.plist object to your project. You also need to tweak your build profile and your info.plist to point to your application name.
But as Mark B already said, just got through the developer portal and follow those instructions. Just make sure your define the right provisioning profile for the purpose.