Debugg iOS Cordova app - ios

I have built an iOS app with Cordova and I'm trying to debug it with my Mac. I have followed this tutorial, but when I go to Develop -> iPhone xxx there is no apps able to be debugged.
I have built the app using Intel XDK tool. Is there a way to enable debugging in my iOS app?
Thanks.
EDIT
I have tried to debug my app with GapDebug but it doesn't recognize my app as debuggable.
I have created my app with a production/distribution certificate, not with development one. Maybe, can it be the reason why I can't debug my app?

Every Application you create with cordova is compiled with an activated Debugmode. If it is not, you're able to change this via https://stackoverflow.com/a/12499274/3671726
Instead of debugging your Application with Safari, i would recommend you to install Google Chrome and GapDebug in combination. Go on that website, check out that video - you'll love that tool. Is very impressive, how and how smart gapDebug handles your debugging.
Solved
Like he found out on himself, he compiled the application with the wrong certificate. So be sure to use a provisioning profile which includes a development certificate and not a distribution certificate.

I was using a distribution/production certificate to sign my app, so I couldn't debug it. I have created a new provisioning profile with a development certificate and now it is working like a charm.
I'm using GapDebug like said Sithys. It is a good tool, thanks.

Related

Xamarin VS2019 cannot test iOS app using paired mac

I have a xamarin project in VS2019 on a windows pc, that I am trying to test on a paired mac.
When I try to start testing the app in the simulator I get the following message:
Xamarin Simulator
Failed to install
//Users/administrator/Library/Caches/Xamarin/mtbs/buildsxxx.Touch/c186893d4554f91f3322b4d0409a1518/bin/iPhoneSimulator/Debug/xxxTouch.app
to D18C5658-ECBB-4492-A7B9-14710340A89F. The app directory
'/Users/administrator/Library/Caches/Xamarin/mtbs/builds/xxx.Touch/c186893d4554f91f3322b4d0409a1518/bin/iPhoneSimulator/Debug/xxxTouch.app'
does not exist.
What is meant by this? Does it mean there are no built files on the mac? Is there a folder missing in the iPhone simulator?
Sometimes I do also get the following error:
Could not find any available provisioning profiles for ApplicationName
on iOS.
Is it really necessary to have this provisioning since I just want to test it on a virtual device?
I am running the app using the debug profile and the iPhoneSimulator
Thanks for any help!
Thank you for the suggestions!, Finally I was able to get it to work simply by using the automatic provisioning in the IOS bundle signing project properties tab.
I read that you could not use this option without a apple developer program account.
I don't have a developer program account, but it seems to work nonetheless.

Why do I suddenly need signing key for PhoneGap Developer App?

I have been building on an hybrid app with PhoneGap for about a month. Have been using the PhoneGap Developer App for mobile all the time and have been working good all the time.
But suddenly, when I'm about to test the app today. It doesn't work. It just "Downloading" forever.
When I visit the build.phonegap.com website and watching my app build details there is an "Error" at iOS saying: You must provide a signing key, first. Find out how to fix this..
I'm reading the text on the "Find out how to fix this" link. But no info about why I suddenly need a signing key.
In order to get an signing key you have to have an "iPhone Development Certificate". And that costs. That's why I want to use PhoneGap. To be able to build and test the app before I buy the iPhone Developer Certificate.
Bottom line: Why do I suddenly need signing key for PhoneGap Developer App?
Yes, you must have an iOS developer key to make signed .ipa file. You need it because without it you will not be able to deploy to any devices.
I have solved it now.
First of all: PhoneGap Developer App has nothing to do with PhoneGap Build. So that was two separate problem.
What caused the problem was something got wrong after I upgraded to latest Beta version.
Solution: When I downgraded to latest stable version, everything started working again.

Swift code application crashes on launch with distribution certificate

There is issue in my any swift application(Even there is nothing done in application) as I tried to install the application using distribution certificate and profile it is always crashing but if I am using development certificate and profile then it is working fine.
Also if I am using some other Mac system and use same certificates of distribution then it works well. Moreover Build size from my system is lesser than the build size than any other system build size.
I had tried all the suggestions related to this issues and changing settings or certificates but nothing helped me in this case.
Please suggest if you had faced similar issue or anyone you know.
Thanks In Advance
With Distribution certificate and profile app will not install from Xcode. You need to use only development certificates and profile for install app from Xcode to device. If you want to test with distribution certificate your app you can use test flight or iTune. Check below link for understanding -
check this answer
apple developer
apple.com
Tutorial

which certificate do i need to build an ios app that i created with phonegap?

I'm creating my application using Phonegap and when I'm trying to build the ipa file build Phonegap asks me to add a certificate file, and when I'm signing in ios developer I found a certificate for development and a certificate for production and I don't know the good one for me.
so please help
If you want to compile your app for testing purposes, you must select certificate to development, you must get UUID of your device where you're going to install your app and add to the list of devices before generate the certificate that way, you will be able to install the app just in these devices.
This tutorial can help you to generate the certificate
http://code.tutsplus.com/tutorials/how-to-test-your-app-on-an-ios-device--mobile-13861

Can't install Phonegap built app in Windows phone and iOS

I am using https://build.phonegap.com for my phonegap project.
The phonegap built app works perfectly in Android.But while trying to install .xap in windows phone it shows error like "Can't install.contact your support team .. etc" and for iOS it shows error in https://build.phonegap.com itself ["You must provide a signing key, first."] .Can you please suggest me the tips to solve these Windows phone & iOS issues??
Thanks in Advance...
For Windows phone - currently build.phonegap.com does not support WP8 QR code installation.
You need to download WP8 sdk, and then you can use Application deployment tool to install your apps on a WP8 device or Emulator.
iOs -
1. you need a developer account for iOs
2. you need to create provisioning profile with UDIDs of iOs device registered for development.
3. then you need to convert your iOs developer certificate to .p12 and upload it alongside with provisioning profile to build.phonegap.com
I hope that helps.
P.S.
More info about iOs certificates

Resources