Connecting iPad to Mac Mini for Xcode development - ios

I can't seem to get any recognition between the iPad and the Mac Mini. I'm using the white USB cable that came with the iPad to connect them. Tried rebooting ad nauseum. It's like two inert bodies, no indication on either side that the two are connected. No lights, sounds or animations. All the tutorials say is just connect them, and don't mention about what to do if this elementary step fails. I saw some similar questions on other forums, but distressingly, they go unanswered. Any help would be appreciated! Yimin

In Xcode, you need to go to Organizer Shift+Command+2. On the left sidebar, choose the iPad you want to use for development, for example:
Alternatively, you can try and kill iTunes Helper in from Activity Monitor and then relaunch iTunes.
If all else fails, try another USB port or try another USB cable.

The device needs to be set up in iTunes first. This step is appears to be omitted from many tutorials or perhaps it is a new feature and the tutorials are out of date.
In any case, it would be helpful if there were some kind of visual confirmation when a new device is connected and maybe a suggestion on what to do next.
On the other hand, setting up the provisioning profile in Xcode seems to be greatly simplified now. No need to copy the ID, run the key generator, etc.

Related

How do I run my app on an iOS device?

I am attempting to run my app an iOS device but I can't seem to figure it out. The reason I am even trying to run it on an iOS device in the first place is because I received an answer on a previous problem I was having that says I have to run it on a device and can't run it on the iOS simulator. This is the question. I am unsure of how to add a deice to run it on because I never had to do it before. I release this is a fairly simple question but I searched this site and Google very hard and was unable to find an answer that I could understand.
Any suggestions would be greatly appreciated.
Thanks in advance.
You plug it in with the usb cable and then choose the option from the list at the top left of xcode screen.
I'll list it for you in steps.
Step 1) Plug in your iOS Device with a USB Cable.
Step 2) Open up your Xcode Project along with Xcode.
Step 3) At the top, you should see your project's name along with a device. Click on it.
Step 4) You'll see many devices, choose the one that you named your device, or use a simulator.
Step 5) Press the play button!
This should work! Hope it helped!

What are the steps to put an application onto an iphone for testing?

I have a developer account that I would love to put to use but I can't figure out how to get my app onto my phone and all the documentation I'm finding is really jargony and confusing.
I created an archive that I can see in the organizer.
I also added my phone in the organizer.
but how do I unite the two things?!?!
maybe there is a good guide for this and I just don't know what to search for?
Assuming your device is set up through your developer account, it's literally as simple as choosing your device in Xcode (rather than a simulator) and pushing the triangle play button. You don't need to archive your app.

Uploading IOS app to app store. Seems to freeze and internet stop working

In Xcode i have have created an archive of the app. Verified it no problem. then when i click Distribute i get as far as "Your application is being uploaded" and shows the progress bar.
The bar never moves and after a few minutes my internet breaks. i need to restart my router to get the internet back.
one of the times i received this error "SSL error occured and a secure connection to the server cannot be made"
Anyone ever experienced this or have an idea of whats happening?
Thanks
I also faced this problem: "your application is being uploaded stuck"
My ANSWER IS:
Either just delete your derived data from organizer or Instead of uploading via Xcode, try via it using Application Loader.
I choosed via Appplication Loader and Steps to do that are:
Step1: Make .ipa file via Ad-Hoc Deployment by click Distribution button.
Step2: Find from menu bar of Xcode -> Open Developer Tool -> Application Loader.
Step3: Then upload it that .ipa file in Application Loader.
**
OR ANOTHER SOLUTION
**
For uploading it via XCode:
Step1: Firstly Validate your archive file by clicking on validation button of Organiser.
Step2: Then Upload it to App Store via Oraganiser.This way you can also solve this problem as well
THIS IS MY ANSWER . HAPPY TO HELP :):)
apple uses java ?
my mac does not have problem for internet.any application can download/upload.
except xcode's organizer's distribute or application loader blocks whole internet and modem stops working for a temporal time.
it is obvious not a mac problem. but apple's uploading system strategy seems not good.
they gotto fix this.
I've heard of some users having issues if they're running old versions of Java. If you can't update, or if updating doesn't fix it, you can try:
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5
sudo ln -s CurrentJDK /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
(other similar workarounds here.)
It could also be an Internet connectivity issue.
Either way, you can also try uploading your app using Application Loader.
I updated my old Java version (from 21 to 51). Is still freezing my Internet.
I validated my archive with Organizer. Is still freezing my Internet.
I tried to upload an IPA with Application Loader. Is still freezing my Internet.
I deleted all my old archives in Organizer. Is still freezing my Internet.
Finally I connected my Mac to Internet through my iPhone's Internet. In resume I connected my Mac to Internet with another provider. This solved my problem
Sounds like my land ADSL provider have some problem with the AppStore.
It will be to do with your firewall on your mac, it may be blocking java all together. Go to settings, security and privacy and then firewall. Once on there go to fire wall options and then there should be an option to allow java to pass through the firewall.
Hope that helps, did with me :)
None of the above suggestions work for me. Likely the real cause is physical and related how Application Loader is using the internet. I have ADSL2 connection with a Netgear modem/router assigning each device at home a fixed IP address according to the mac address of the network interface of each device. I had noticed that when Application Loader is uploading, my Windows PC could not connect to the internet. However, if in Mac mini I use Safari doing various things like watching video, my Windows PC can access internet.
Even stranger, when Application Loader is uploading, the modem/router could easily lost connection to the internet, as I could see from the LED lights of the modem. The connection is lost randomly at any progress of uploading the 20 MB file.
So I had turned off Windows PCs, iPads, iPhones and Android device at home, so Mac mini is the only device using the Internet, the Application Loading has finally been able to upload the app successfully in one go.
My guess is, my home phone line has some noise, and Application Loader is using the internet aggressively particularly the up link, so stressing out the modem, then causing other devices like my Windows PC lost connection, not even able to resolve host. When Safari is uploading video to App Store, no problem.
So my working solution is to make Mac be the only device using the Internet, given that the internet connection is already in poor condition with noise, near the edge of losing connection.
It's very old issue, but in case any of you is still looking for a solution, I stopped using Xcode to upload my apps to the app store. Instead I'm using Transporter (by Apple) and it seems to fix the freezing

Debugging Corona SDK application on device

I am working with Corona SDK for some time, and i really like it, but there is one thing, that i cant figure out: How to debug my code on a real device?
At the point, when my code runs great in the simulator, i usually compile it, and try it on the phone. But when there is some error, that doesn't bother the simulator, but pisses the phone off, i simply see an error message:
"This application encountered a Lua error (see logs) etc."
Me and my boss spent a whole day figuring out, that i made a require with a capital instead of lower case.
My question is: How to actually "see" that log? I tried to connect my device to DDMS, but i saw no relevant output. Is there a way to access that log (I'm testing on an android device)? Or is there a way to simulate the EXACT behavior of the phone in the simulator? Usually the phone freaks out because of i/o operations, and when using the wrong case.
The best way to debug on iOS devices is to use XCode's Organizer with your device plugged in via the USB port. On the left hand panel of Organizer, there will be a block for each device that XCode knows about. You may have to click on a button "Use device for debugging" or something similar so XCode can gather all the information it needs.
Once done, then you can use XCode to install the app to the device (you don't need to make an .ipa file, just copy the app to the device via Organizer). In that panel on the left, there is a link for "Console Log", click that and you can your print statements and other errors issued by Corona SDK.
Rob
If you don't have Xcode, you can try iPhone configuration utility. It is more light-weight than the xcode plus you can also use it on a windows machine.

Can things go wrong when installing developed app on iOS devices

I don't have a iPad, and [bizarrely] creating an iPad app (for the experience mostly) but I would like to put it on the App Store after testing it.
My cousin has an iPad, and possibly could lend it to me. Is there any chance of the iPad being broken by an app that doesn't go outside the App Store rules (no private APIs etc)? I know each app has it's own sandbox, and it can't "get out of it", but has anyone ever experienced a problem that couldn't be resolved by a restore from iTunes, or has anyone had to perform restore at all?
That way madness lies. In essence, lots of things can go wrong - you might drop the iPad into a carelessly placed vat of liquid nitrogen for example.
However, it's incredibly, incredibly unlikely that you'll in some way "break" the iPad by simply installing a provisioning certificate and test app onto it. (I won't say "impossible", as your computer might be struck by lightning, reducing all attached USB devices to a cripsy un-pleasantness the very second you first run the app.)
That said, if you're feeling paranoid, simply get the owner to back-up the iPad within iTunes before you borrow it. :-)

Resources