How do I run my app on an iOS device? - ios

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!

Related

React Native app crashes my iPhone when deployed in release mode

I am in a sticky situation and would appreciate any advice. My app is pretty much complete
but when I am deploying it to my iPhone in release mode, my phone crashes when I try to hide the app. I mean, when you swipe up to go back to the home screen.
I have absolutely no idea what to do right now. it's only happening in release mode and it's giving me no error log while crashing so I don't even know where to look.
I don't know what code to show you guys so here's the whole project I guess:https://github.com/vivaanxr/YU-Food
Feel free to ask me to add any other additional details regarding this. This is my first project and kind of lost with this.
This is not the definitive solution to the problem, but should give you more information about what's happening.
Build to your device using Xcode. Then select Window > Devices & Simulators from the menu. Select your device and open the device's console. You can get additional information by reading the console while as the app crashes. Hopefully that helps!

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.

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.

Connecting iPad to Mac Mini for Xcode development

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.

iOS apps without developer license / app store

I'm new to iPhone development and was wondering if there is a good/easy guide I could follow to install an iOS app on a jailbroken phone without joining the developer program.
Basically, I don't know if I'm going to have the time to learn everything I need to learn, but would like to make a start and see where it leads. Once I have something decent put together I can make plans to go through official channels.
I followed a guide that I found in SO, but when launching the app it immediately dies/crashes back to the springboard. So I can only assume I did something wrong, or the guide is outdated.
I'm using iOS 4.3.3 and xCode 4.
here is the link to the guide I followed: iPhone App Minus App Store?
Thanks
Just to get the warning away.
I just found a guide that worked for me: How can I deploy an iPhone application from Xcode to a real iPhone device?. all I had to do was change the 4.2 in one of the commands to 4.3
With Xcode 7 it's now free to run your apps on your iPhone, iPad or Apple Watch (beta): https://developer.apple.com/xcode/
Now everyone can get their app on their Apple device. Xcode 7 and
Swift now make it easier for everyone to build apps and run them
directly on their Apple devices. Simply sign in with your Apple ID,
and turn your idea into an app that you can touch on your iPad,
iPhone, or Apple Watch. Download Xcode 7 beta and try it yourself
today. Program membership is not required.
This isn't my own method, but I thought I'd help you out since I've just read this elsewhere:
Answer by WrightsCS
There's a way you can do this.
You will need ROOT access to edit the following file.
Navigation to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk and open the file SDKSettings.plist.
In that file, expand DefaultProperties and change CODE_SIGNING_REQUIRED to NO, while you are there, you can also change ENTITLEMENTS_REQUIRED to NO also.
You will have to restart Xcode for the changes to take effect. Also, you must do this for every .sdk you want to be able to run on device.
Now, in your project settings, you can change Code Signing Identity to Don't Code Sign.
Your app should now build and install on your device successfully."

Resources