How to create Provisioning File - ios

I new to iOS development, and I want to run my app on my iPhone. I have connected it to my laptop but no prompts show up. I read all these tutorials on how to add a device and stuff but it really is confusing for me, because none of it is happening for me.
I am probably going to be down voted cause this is a stupid question, but my brain is rattled: How do I create a provisional file, and use a device for development? Please make it really detailed, cause Apple's description are kind of vague.
(The thing is when I press the plus button in iOS Provisional Profile in Member Center, it can't detect a device that has been connected. If that way is wrong, you know why I am confuse.)

There are lot of steps to do to run iOS app into your Apple Device.
1) register to apple developer portal
2) enroll for iOS Developer Program, which will cost $99 per year
3) add your device to your account, create certificate & Identifiers. with all these create Provisioning Profile.
4) download the PP and install it to you device
5) Open you Xcode, -> Application -> Build Settings -> Code Signing: select you "Provisioning Profiles"
build and run.

see the link it will help you
http://www.wikihow.com/Create-a-Provisioning-Profile-for-
if you want best
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppStoreDistributionTutorial/CreatingYourTeamProvisioningProfile/CreatingYourTeamProvisioningProfile.html

Related

Xcode 8 asks for a device to be registered to create provisioning profile

I am trying to publish an app for testing, without having to connect a device in my mac.
I have created a developer account, created an app in itunes, generated bundle id, signed into xcode with the developer account, generated a distributor certificate.
When I tried to archive the app, I got the error "conflict provisioning setting. app is automatically signed for development ..."
I read in this post and followed the tip of unchecking and rechecking the option "Automatically manage signing". After re-choosing my team, I get the error "There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it".
The goal all along was that I wouldn't need an ios device, because I intended to immediately publish the application and invite people to test it via testflight. Is it not possible to do it like this? Am I missing something.
I have read lots of documentation, but being a first timer in this, everything seems confusing.
Edit: I created a provisioning profile as distributor. Even after creating and installing the distributor profile (it now appears also in xcode at Account -> provisioning profiles), I still get that same error. I also noticed that in signing, The signing certificate is iOS Developer. I am sure
I fixed it by plugging in my iPhone and going to the Product menu > Destination > iPhone (my device).
Then after clicking Try Again on this properties page the warnings went away.
Source
The solution (though I would welcome more elaborate, insightful explanations):
#General -> Signing, disable the option "Automatically manage signing"
#General -> Signing and certificates choose your team
Though in my case that was not the issue, I would recommend making sure that in the device list, you choose Generic iOS device in your target devices.
This really sucked to figure out.
What you do is add a distribution profile in https://developer.apple.com/account/resources/profiles/add. Don't choose development! Don't let the Xcode Automatically manage signing!!
Then, you download the provision.
Then, in the Signing & Capabilities -> Signing Section of the project.xcodeproj file, turn off Automatcially manage signing, choose import and import the file you just downloaded.
Then, in the top, you choose Any iOS Device (arm64, armv7) and then you go Product -> Archive.
What happened to me was that I was about to run my app on a physical device for the first time and I didn't have a Team. So I created it in the process before connecting my phone with the USB cable. After I created the team a message like the listed above appeared. I did some research on internet but nothing found.
So here's what I did: I connected my phone, did all the trusted process, then restarted Xcode, and it worked. I am not sure what happened, but it was some of my first experiences using Xcode. It could sounds silly but it helped me. Hope to you too.
If you do not wish to register a device follow this advice:
https://stackoverflow.com/a/44157307/499581
* In short use "Generic" as the device while archiving.
If you do wish to register a device then the solution to:
"There are no devices registered in your account on the developer
website. Plug in and select a device to have Xcode register it".
Is to physically plug-in your device (an actual iPhone, or iPad) so that Xcode can register it for development use (note: this will not affect the normal everyday use of the device). After the device is registered it can then be used for development testing, load provisioning profiles onto it, etc.
↳ Disabling and Enabling Devices Using Your Developer Account
For those who are trying to develop without a mac computer using MacInCloud don't follow the standard advice out there. Its will lead you down a hole. I have wasted hours of my time.
The reason it say something about "a device to be registered to create provisioning profile" is that you need to provision an iOS device that you can test on before you can get it signed. If you are using MacInCloud you probably can't physically connect an iPhone or iPad to the MacInCloud and therefore it can't automatically provision devices for you.
Before you get to far into this you will need to get your iPhone/iPad UDID. Which I was able to do with https://get.udid.io/ on my iPhone, but it didn't work on my iPad. Instead, with the iPad I had to download iTunes from the Windows store and connect my iPad. Then click on the little gray square in the menu that's inline with Library tab.
image of itunes
Then when it pops up with your device info (mine didn't come up with my info at first, I had to sync my device). You will see your SN. Click on your SN and it will change to your UDID. Once you have your UDID you are ready to create a provisioning profile. What is confusing is this isn't done in the appstoreconnect section of your account online. Its done in your developer account: https://developer.apple.com/account
developer.apple.com account screen shot
When you go there you will want to click: Certificates, Ids & Profiles
Here you will need to add your devices and then with auto signing checked in Xcode that made the problem go away. NOTE: I originally tried to create a profile, download it, and import into Xcode under the Provisioning Profile dropdown in Signing & Capabilities. As described in another answer here, but that proved more problematic and wasn't necessary.
Then you can chose Any iOS Device from emulator device drop down then go to Product > Archive > Distribute App and create a certificate to place it on the app store (TestFlight).
you can also plug an iphone, run the app the app on your iphone as the target, it will ask you to register the device and then the certificates will be generated
Have you paid the $99/year developer fee? TestFlight is only available for paid developers. I would highly recommend plugging in an iOS device, though. It's more fun and rewarding testing that way.

Make an .IPA for iPhone and iPad

As I had asked this question already and didn't get the answer that I needed, the problem is as follows:
I developed a game for both iPhones and iPads. Everything is working fine but now I want to Archive my project. As I already have signed in for an Apple account, the problem is I don't have another device to register with.
And, according to Apple's terms and condition "Creating a provisioning profile requires one or more devices to be registered with your Account."
Is there any way we can get it done without costing any money?
You mentioned in the comments that the purpose of the archive is to send the IPA to someone else. For that to work, the app needs to be provisioned for the device it's going to run on - that other person's device.
So, ask that person for their device UDID (that they can get from iTunes), then register it in your account in the apple developer portal member center and build using that.
It should be an ad-hoc configuration that you create.
What XCode is complaining here is that you need to register the devices that you want the archive to run on! Or, it can be an expired license causing the trouble.
Note: Check in Keychain for any expired licenses. Go to View -> Show Expired Licenses. And, remove any or all of the expired licenses in System, Root, and any other categories. Mainly its the WWDC License causing the hassle.
Remove your iOS Development and Provisioning License(s).
Now, after removing all the licenses, add back your Provisioning profile, and the developer profile license. That should do it.
Start a clean build, and archive now. This should accept the archive. Do not forget to register a new device UDID in developer.apple.com portal. It is needed for TestFlight.
If you have any queries, please ask us in the comments.

Xcode add app to iPhone for testing

I have an app build with Meteor like this meteor build <path> --server <address:port>. What is the next step to add it to my iPhone for testing?
When I open the myApp.xproject file it saying in Identity section no matching provisioning profiles found I did try 'Fix issue' btn, which guided me to make an account etc. But this did not fix it. Is it possible because I haven't paid yet for for my account? I just would like to see how it would work on my iPhone for now.
Yes, you need a developer account to run on an actual device. Pay for the account and you will get development profiles and distribution profiles so you can run on your phone and submit to The App Store. Good luck!
There's a weird way that used to work. It's like a debugging mode but the most recommended way is to do it getting the developer account as Douglas said.
These are the steps:
Go to Xcode > Preferences and where says Accounts add your apple id. It will ask you for a team name, type your name for example.
Now go back to Xcode and click on the blue file at the top of the navigator with your project name. Then General.
The system will ask you about fixing an issue, do it and after a while it will finish.
Then choose a version available on your device and your iPhone in the device selection.
It worked with some of my classmates, I can't verify it 100% because I have the developer account. Hope it helps.

Setting up multiple iOS phones for development

I purchased the iOS developers license about a month ago. I set up my phone as a developer and have been testing on that, which has been fine. Now I am working on an app that uses bluetooth and i want to test it on a second device to make sure communication is working, but im not sure how to set up a second iPhone as a developer. I added another device onto my " "Certificates, Identifiers & Profiles" page and created a new provisioning profile and tried dragging it into iTunes and i get the error that it "Cannot be copied because it can not be played on this phone"
Im thinking i either have to set up another keychain for this second phone or i am dragging it into the wrong spot. if it is the keychain i don't know how to do it.
If you are the one building the app then you should be able to install the app on the device via Xcode. If you open up the organizer (window -> organizer) you should be able to select your device and enable developer mode. From there is should be a build away.
If you're not the one building it then once you add the device to your account you'll need to also add that device as authorized on the provisioning profile. Sort of a pain but it's the three step dance that apple requires.
There are a ton of other things that could go wrong as well and hopefully that is enough to get things working for you.

Request Timed out when trying to add iOS device to the portal

I added my iPad device to the Apple Developer website by entering it's description and UDID.
Within the Xcode organizer, I attempt to add my device to the portal. I have hooked up a proper provisioning portal to it and all. Yet, the request times out every single time after I enter my proper Apple ID and password.
How do I fix this?
Also, if it helps: I get the same error when I go to Editor < Refresh from Developer Portal
Here is what you're after...
Check the following status page -
https://developer.apple.com/support/system-status/
If the "Xcode Automatic Configuration" is grayed out, that means the service is offline, and Xcode will surely time out on all developer portal related activities.
If "Certificates, Identifiers & Profiles" service is online, then Xcode will still time out, but you can access the web developer portal, manually add a device (Identifier), modify / update certificates and download them, and manually add them to your Xcode, and continue with your development / provisioning / ad-hoc distribution.
Hope this helps!
I had this same problem. Here's how I got around it:
Login to developer.apple.com and go to the provisioning profiles section:
https://developer.apple.com/account/ios/profile/profileList.action
First you have to manually add your device in the Devices section. You can get your UDID from iTunes by selecting the device and then clicking on the identifier.
Now you can manually generate a new provisioning profile that includes this device.
Go down to "Provisioning Profiles" section. Click the "+", then "iOS App Development" - Continue. Then AppID "iOS Wildcard" - Continue. Then your developer certificate in the checkbox - Continue. Now you should see your new device in the devices section. Add all of these devices, and download the new certificate. Once you have imported this new certificate into your Organizer, it should work (well, it did for me).
Let me know if this doesn't work for you for some reason and I can try to help by comparing what's happening with mine.
Just hooked up a new iPhone and trying to deploy my apps on it. No joy so far. Playing around with the profiles & provisions on the website is to no avail, since the development one is "managed by Xcode". Which currently serves up nothing more useful than a timeout.
I just got a call from Apple Developer Relations about the WWDC registrations and they told me about technical issues they have been having. Perhaps it is a wider issue?

Resources