How to debug on device with MonoDevelop and MonoTouch? - iphone

I am part of the Apple iOS Dev Program and I have the paid version of MonoTouch. Now how do I debug on my iPhone? AppIDs, provisioning, KeyChain??? I am lost. I have built simple apps in the simulator but cannot figure out how to debug on my device. Help!

You have to go to the provisioning portal (https://developer.apple.com/ios/manage/overview/index.action)and create a development certificate which you install in your keychain and a provisioning profile associated with your development certificate. You also have to add your device as a development device, also done through the portal. The steps to do all this are given on the provisioning portal site. After you have that all set up, look at the MonoTouch documentation on how to choose the correct profile to build your application against so it will install on the device.

Have you read the debugging docs for MonoTouch?
http://monotouch.net/Documentation/Debugging

Related

Option to select provisioning profile for Mac Catalyst is grayed out

I'm working on to create an app for Mac Catalyst platform using .NET MAUI. I'm already done with the creation of distribution certificate and provisioning profile. Also I have installed both. Now the problem is that I am unable to select the provisioning profile/certificate under Bundle Signing cause the option is grayed out.
You could create a certificate for Mac Development or Distribution on Apple Developer Portal and download it in your keychain access. I recommend this document: Provision an iOS app for app store distribution and although it's for iOS, the workflow for Mac app is similar.
Hope it works for you.

How to run sample project in IOS device?

I am working on Audio capture related task, I have downloaded speak here sample code from Apple site, I just want to run and debug about its functionality, when I am trying in my device, it is saying invalid provision certificate, I know what is provisional certificate, we registered for our application. My question is how to run sample projects in device. Is there any way?
please help...
To install application on any iOS device you have to have a developer account and it is not free.
You can go to this website
http://jailcoder.com/
What this does program does is patch SDKSettings.plist inside of Xcode and also patches your project (just adds a run script) and install on your device with fake provisions certificate. This is all fully reversible. You will need to have your device jailbroken with appsync installed.
Then you can just build for device and it'll run it on your device instead of the simulator.
To install application for development or distribution on iOS device you have to "Enroll" or "BUY" to Apple's Developer program or Enterprise program.
Developer Program
Its have Developer certificate as well Distribution certificate but its follows UUID means device ID to install on device.
Enterprise program
Its have Developer certificate as well Distribution certificate but UUID means device ID is optional for in-House distribution provision profile to install on device so you can install on any device.

testing iphone apps built on a remote mac

I'm using macincloud service to try/play/learn about building iPhone apps. I have a dummy app, and I'll like to test it on my real device.
I've got the developer certificate, I've installed the profiles, but now I'll like to test my app on a real device. Because it is not possible to connect my iPhone to the macincloud servie and because I'm on a windows machine, how can I test my app on a real device(the one with UDID that was used in generating the certificates and provisioning profiles).
Is there any file that xCode is generating and it can be used to transfer on a real device from a Win7 machine?
You need to generate an archive in XCode, and then from the organizer click "Share" to generate an IPA file. This file along with the ad-hoc provisioning profile can install the app on a provisioned device via iTunes on a Mac or a Windows machine.
For info on provisioning your device for ad-hoc deployment, see here: http://mobiforge.com/developing/story/deploying-iphone-apps-real-devices or the apple developer docs.
Good Luck.
Correct answers have been given already. However, have a look at http://testflightapp.com . That might come handy when you go for more test devices especially when you want to distribute it to a beta testing community.
You want to do an Ad-Hoc build. You will have to read Apple's docs to see whats involved. Then you will have an app file you can install with any iTunes.

How to test an iPhone app on a device for the first time?

I am developing an app for iPhone. How can I test this app on my device?
What are the procedures to follow? Please give information regarding this problem.
Deploying iPhone Apps to Real Devices
http://mobiforge.com/developing/story/deploying-iphone-apps-real-devices
In brief:
Sign up for the iPhone Developer Program
Obtain an iPhone Development Certificate
Generate a Certificate Signing Request
Generate, download and install your provisioning profile
Download and install your Development Certificate
Deploy your iPhone application.
Things you will need are
your private key.
your provisioning profile (with the UUID of your device added).
go to project settings and change code signing entity to your
distribution profile.
then you can build and run after connecting your device.
1) Open Xcode,
2) Go to Active SDK, and select the OS version running on your test device (viewable by going to Settings->General->About on the device).
3) With your project open, click on "Build and Run" (or press Command-R) to run the project, which will prompt you to allow access to your keychain.
4) Once deployed, the app will run automatically.
Distribution
First of all, to run the app on your phisical device you must enroll to the apple developer program.
Second, generate a developer certificate and download it. Then, import the certificate into Xcode and here you go.
There are some steps you need to follow to test your app on your personal iPhone. Below you can find all the steps:
Creat MAC certificate at first step.
Second step is to upload that certificate to developer account.
Now you should open developer account at
http://www.developer.apple.com
You can now find an option for device id in your developer account on
left side.
Now you should register your iphone device.
It is time to create your unique identifier on developer account
Download your certificate and install it on xcode organize
Now open your project embed your unique identifier in your project.
These steps can be beneficial for all software testing gusy involved in mobile application testing.

MonoTouch deploy to iPhone

I have developed a number of apps using MonoTouch, and been using the emulator for the iPhone, now I need to deploy me application to my iPhone for further testing.
I have purchased the iPhone SDK from Apple, but I can't find how to deploy and activate the MonoTouch application to my iPhone.
Any pointers please?
As has been already stated you obviously need the paid version of MonoTouch and the iPhone SDK. Once you have those sorted you need to create a developer certificate in the iPhone developer portal, download it to your dev machine and add it into your keychain.
Once you have done that you must create a provisioning profile for your physical device, which again you do through the developer portal. Once you have the provisioning profile, download that to your machine, and add it to the iPhone via the Organiser app in XCode.
Then fire up MonoDevelop, and if it's all gone to plan then you should have the option of deploying the build to your iPhone. You can check that MonoDevelop has correctly detected your certs by opening up the Project Options window and under the Build section and under iPhone Bundle Signing, you should see your developer cert and provisioning profile.
Full details of the steps required on the Apple iPhone Dev Site
Here are the MonoTouch docs on building for distribution
http://monotouch.net/Documentation/Building_for_Distribution
It is my understanding that you have to have the Monotouch deployment license from Novell to deploy to a device.
According to your statement:
When I compile I get: "No Valid iPhone code signing keys found in
keychain.
This is actually a Xcode question more then a Monotouch one;
The message indicates that your keychain does not provide the signing keys used to generate the certificates and provisioning profiles.
If you follow apple's steps on generating certificate(request), followed by profiles they will also state you might want to export your private key (p13 file) and keep it somewhere safe.
If you move to another laptop for instance, you will need to import that key again to make the machine a valid one.
If something went wrong (ie: you accidentally removed your private key, ..) this message will be shown since there is no way for Xcode to verify that the profiles are being used on a valid machine.
Go to this instruction page (apple account credentials needed) to check if the steps have been followed and check in the Keychain access app on your mac if under My Certificates you see a developer certificate and - if you unfold it - you can see the private key as a child node.