How to debug real iOS device from windows machine in Ionic - ionic-framework

I am working on ionic application. I am able to debug app in real android device.
So, is it possible to debug ionic app in iPhone by connecting it through USB cable from CPU?

You require an iPhone and a mac with XCode installed.
If you are building for iOS, you’ll need to sign up for an Apple
Developer account to test as a native app on an iPhone or iPad.
Unfortunately, this costs $99 per year (don’t blame us!). Once you
have an account and you have set up Xcode with your certificates to
enable device testing, you’ll want to open the Xcode project from
platforms/ios/ and do your testing from Xcode.
Source
As you have mentioned you do have an iPhone and Mac with XCode, see the steps below:
Run ionic cordova prepare ios
Copy across your platform/ios folder to your Mac
Open the XCode project on your Mac that is located in the platform/ios folder.
Select a device or target simulator in XCode and then click on the play button to start debugging.

Related

Installing a TestFlight app on iOS iPhone Simulator - Registration Failed

I'm attempting to install a TestFlight app on XCode's iOS simulator using the iPhone simulator. The link to the TestFlight app takes me to a page that says "This device will need to be registered before it can install betas."
There is a friendly Register button. When I click the register button, it says "Registering Device" and then it takes me to the iPhone's General settings page. If I navigate back to the TestFlight page, it says "Registration Failed."
Does anyone know of a way to install a TestFlight app on the iPhone Simulator? Thanks.
The app you are trying to install is an app compiled for arm architecture, which is different from the simulator (the simulator is not an emulator). The simulator only runs x86 apps compiled for it. You will need to contact the developer of the application to send you the x86 binaries, and add them directly to the application directory of the iOS simulator. The directory (on Xcode 4.5 beta 4) is /Applications/Xcode45-DP4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/Applications. Note that the simulator's sdk version has to match the version of iOS you are trying to use the simulator with.
If you need test your Release application
you can run your on a release build go to
->Product->Scheme -> Edit scheme-> in Run change debug to Release
in this you can check your release build in simulator
If I had to guess, I would presume that since the Simulator is not a valid device, it is not able to install the TestFlight Profiles onto the device, and therefore failing registration process (when you are directed to the iPhone's Settings, it tries to install a profile on your device).
May I ask why you are trying to install the app via the iPhone Simulator? If the app's code exists on GitHub, you can use the GitHub for Mac app to checkout the code, and XCode to compile the project and build it to the iOS Simulator. There should not really be any reason to have to install TestFlight on the iOS Simulator.

Application failed to install in iPad2

My Application runs fine in iPad simulator, but when i try to install it in iPad 2.. It throws me Application Name Failed to install.
iOS version is 5.0.
I am using Titanium Mobile for development. The same Application works fine in Android emulator and device.
You need to have a developer certificate before you can deploy the application in iPad2.
https://developer.apple.com/programs/ios/
Once you have got the certificate, you can right click on your project and select install on IOS device. It would ask to upload your dev certificate which you have got for your iPad. From there i see no problem in deploying your app.
This would generate an .ipa file.
Note: for iOS 5.0, you need to have 1.8 and above to make it work properly.

iPhone shows Question mark (in place of its icon) on connecting to the Mac

I have a (dev) build for the iPhone App & I need to install it on the iPhone that has been given to me.
Now, I have added the iPhone as a device to the provisioning profile for the App.
But, When I connected the iPhone to my mac, Question mark appears in place of its icon (in XCode > Windows > Organizer). And the options under the device are limited to Device Logs and Screenshots.
And on right hand side detail appears : "The version of iOS on “iPhone” does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here." Which clearly means that ihave to update my iOS SDK for the XCode that I am using.
Is there any way to do, like without updating the XCode for latest iOS SDK, I can install the App to the iPhone provided to me ???
You just build the app, and locate the .ipa file from the products. Then drag the ipa file into itunes and then sync it to your device.
If you have got the Xcode project..then you would have to update Xcode..that is the only solution..
but if you got the build in .ipa format.then you should register your device on www.testflightapp.com and then transfer that ipa from there to your device..

iPhone app in simulator works on one mac but not another mac

I hired 2 developers to work on an App and both developers have no problem loading the App in the Simulator. However, on my iMac, it won't load the App at all in Simulator and only gives me the icon screen of the App.
I got paranoid and did a clean install of OS X and upgraded to 10.6.6
I even erased the hard drive completely before install
running Xcode 3.2.5
developers are also running Xcode 3.2.5 iOS SDK 4.2
I did Clean Targets
I did reset in the Simulator
Maybe something in the Xcode Preference Settings?
Has this happen to anyone before?
--
Have you see them load the app?
Here are few suggestions/options:
Try to load a test app and just
see if it is actually your computer.
http://www.tuaw.com/2009/04/27/iphone-dev-101-the-hello-world-app/
Have the developers use TeamViewer
(http://www.teamviewer.com/en/index.aspx)
to load the app in your phone for
you.
You have to sign your app through
apple dev store, are you on the list
of developers that can open/edit the app?

how to run project in iphone mobile

hi i am new to iPhone application development. i developed a simple project on xcode now i check it in mobile. how can i done this ,means need to create exe file or any thing else
pls help me
The first step is to join the iPhone development program. Once you that and follow the instructions of createing a developer certificate you can run your code on a physical device. If you're using the latest version if Xcode just connect your device - choose device in the build settings and build & run. It will install the app on your device and run it.
iPhone developer program
Obtaining your iPhone Development Certificate - Requires login to apple dev center