XCode needs to be installed every time to detect iOS devices! Why? Any Solution? - iphone

XCode needs to be installed on every start up to detect iOS devices. Otherwise devices didn't get detect. Why is it so? What to do? Any solutions?

You will have to register the UDID of every iOS device used for development, in the provisioning profile provided in apple developer account.
After registering the device, download the provisioning profile and add to your device.

Have you tried creating a new user on the system to see if it has the same issue? Perhaps there is a bad preference file somewhere.

Related

publish ios app without any registered device

I have completed an ios app that I want to get published. I do not have any apple devices other than my mac. I used the simulator to test my app. I tried to make a provisioning profile in the member center and link it up to my app but Xcode keeps telling me that it cannot find any compatible provisioning profiles since I do not have any ios devices registered in the member center. I believe that I cannot register my mac as an ios device. I tried doing that in the member center using my mac's UDID but it did not recognize the UDID.
I want to know if there is any way I can still have the app published without buying any other ios device?
I used the simulator to test my app.
Then you did not test your app. The simulator is useful but it is nowhere near an adequate substitute for device testing. What if users report that the app crashes on their devices, but you can't reproduce the crash in the simulator? This is not a hypothetical scenario, it's actually quite common.
I want to know if there is any way I can still have the app published without buying any other ios device?
Possibly, but it would be extremely unwise to publish the app without testing it on a device. If you can't get a device, try to borrow one.
I see only workaround here - Get device from your friend or family and register it for first install. You just need its UDID to register.

How to run an iOS Application on a real device

I had developed an iOS Application using PhoneGap Framework. It's working good and well in simulator. Now I would like to test it in real device i.e iPhone 5 with iOS 6.0. I Googled thoroughly. I have two ways: jailbreak the device (not acceptable to me) or bidding the account in Apple portal.
Is there any other way to test my device my application in real device? Is there anybody here to solve my issue?
The official way is to enter the iOS Developer Program (99$), so that you will get the possibility to create certificates and provisioning profiles required. You will also get the chance to distribute your apps through the App Store.
If you are not willing to do it, the other way is jailbreaking your device, which is basically a way to circumvent the need to use certificates for your apps. Your app would then be distributed through an alternative app store like Cydia (i.e, no Apple App Store).
A third option could be getting in touch with an iOS developer friend of yours, and ask him/her to build the app for your device, so you can install it through iTunes.
There are no other options.
You have to register for a developer certificate in Apple.Developer.Then create provisioning profiles and install it. Otherwise you cant install your app in a real device.
You can refer this link for more info

Is it possible to add distribution profile to iPhone when building?

I can't add one to devices in xcode organizer...
When I build the app for release, should I choose simulator or device?
For releasing your application you can not use simulator , you have to specify device or distribution.
you can use simulator for only testing purpose in ur pc.
I didn't understand the question at all. But you need to choose "Device" for distribute your iPhone App, otherwise your App gets rejected before the Review has begun or it's not possible to use it for AdHoc.
For using an AdHoc Distribution Profile you need to register your Device in the iOS Developer Portal, and add it to your AdHoc Distribution Profile. Download it and drop it on the Xcode Icon. Choose the Code Signing Identities, add the Entitlements.plist, Archive your App, drop the IPA on iTunes and install it.
If you need more infos please leave a comment.
There is actually a complete tutorial for the process at iOS developer center. See: https://developer.apple.com/ios/manage/distribution/index.action
You can not add a profile directly to your device. (Actually, I don't know if you can but its of no use really). You have to SIGN your app using a profile.
You can choose either simulator or device for building for RELEASE. Though simulator build will only work on simulators and are only good for testing on it using RELEASE settings (if any).

Developer Program

I created an iPhone app on a computer and installed it on an iPhone at home.
Being currently abroad, is it possible to use the same developer program on a different mac and install the same app on a differetn iPhone?
Yes, I dont think it matters... all the best!
yes you can..add your new iphone udid in the ios provisioning portal and get the new(old provisioning with newly added udid) provisioning then drop into your xcode.make sure you have to place your developer certificate also.

Testing on iPhone Simulator w/o License

I have a few questions to ask. Currently, I'm self-learning iphone programming, and later maybe for mac. I just need to make sure my apps works accordingly.
So do I need a license to test on the iphone simulator? I don't need to test on a real device. I don't intend to put anything up on apps store in the near future.
If no, how do I bypass the code signing error (certs and all)?
If yes... nvm...
For mac, do I need a license to test and run apps on my personal Mac?
Thanks in advance for your help. :D
You can test on the simulator for free, if you register as an Apple developer and download the iPhone SDK. To do so, go here: http://developer.apple.com/programs/register/
You will not be able to test on a real device, but from your question, it looks like this is not an issue. Also, by registering as an Apple developer, you can download and use Xcode to write Mac applications as well.
If you do decide that you need to run the app on an iOS device (even your own) or publish to the App Store, you will have to sign up for the iOS Developer Program, which is $99/year.
It's confusing but the Xcode and the iPhone SDK are completely free. If you want to put your application on your phone or if you want to publish to the app store you will need to pay $100 for a license as compared to Android which is free.
You don't need a developer code sign cert to run apps on the emulator. When you build your app, if you choose to build for the emulator, XCode will sign the code with a self-signed certain, which the emulator will happily accept.
You need the developer cert only if you are going to deploy on a real device.
In addition to the device test limitation, you cannot download and try beta versions of the SDK unless you are a member of the paid program. You can download and install the current release and play with it all you want