How to deploy Xamarin Forms App to iOS device for Testing - xamarin.forms

I m using VS2017 for Xamarin forms app development. With VS2017,I can use Android simulator and I can deploy the simple xamarin forms hello app to my Physical Android phone(after doing some settings on the android phone).
My problem now is How do I deploy my same Xamarin Forms hello app in VS2017 in my Windows 10 PC to an iOS device? right now, I have a macBook Pro and iphone6. I try the mac agent but this only for iOS simulator.
Please help. any link or help is very much appreciated.
Update 1:
The confusing part is App ID. Say, I created an AppID in Apple Portal called MySwiftDemo and on mac i created a dummy app with Bundle Id : com.FunProject.MyFirstSwiftDemo which I used it in AppID required by the Apple Portal
and I created XF-app in VS call MyVSFirstApp and this is the actual app will be deployed to iOS-device.
1) The app name in Mac and VS are not the same. So the provisioning file is referring everything from mac, Is it ok without Xamarin app name?
2) If I have another Xamarin forms app call My2ndApp to deploy to iOS device, do I need to create another AppID on Apple Portal and Bundle ID on mac?
Thanks

Subscribe to Apple's Developer Program
Visit the Apple Developer Portal to register. Note that in order to register as an Apple developer, it is necessary to have an Apple ID and costs $100/year
Create an iOS Signing Certificate
Follow the steps linked here
Provision your iOS Project and your physical iOS device for Developer Mode
Connect your physical iOS device to the USB port on the Mac, then follow the steps linked here

Using XamarinLivePlayer we can test the app on Android and iOS
Which was introduced in Microsoft Build 2017 Event(https://build.microsoft.com/).
You can read more at https://www.xamarin.com/live
https://www.visualstudio.com/vs/mobile-center/

Related

Provisioning profiles not listed in visual studioo

I have developed a cross platform app with xamarin forms , after I completed development i went on to testing . I successfully deployed to an andriod device and all is good on that platform, but im struggling to deploy the app to my physical iphone iv have searched EVERYWHERE and couldn’t find any help, this is my situation:
I have created free provisioning profiles and all the necessary certification according to the Microsoft guide on free provisioning
I successfully deployed a dummy app to my physical device throught xcode(so that means provisiong was successfull ????)
But my signing ID and provisioning profile is not listed in visual studio 2019
And yes
I did pair to my mac and connected my iphone to the mac AND targeted my iphone in the build scheme
Bundle ID’s also match and my iphone is visible in VS but i my profile is not listed so i cant deploy.
And yes my apple ID is also added under tools > xamarin > apple id
Ive also tried restarting the IDE and my machine Multiple times
PLEASE PLEAAASEE help me
Create new project with your XCode.
Make sure you set the correct Bundle ID.
Try to build your XCode project (for debug and release), if anything work re-start your VS and you will see your provisioning profile.

Xamarin.Forms - How to check if my app uses the Advertising Identifier (IDFA)?

I'm using Xamarin.Forms. For the iOS app, how to check whether it uses IDFA? I'm about to submit the app for Apple Review in App Store Connect.
For native iOS project (xCode), there were some commands to run like grep in the root path. But how to check this in Xamarin project (Visual Studio for Windows with paired Mac)?

Can't debug application on IOS Device

I created a vanilla PCL project in xamarin forms. I tried to run on Android and it works fine.
But when I change de target to IOS and select my real device (Ipad with IOS 11.4.1), Visual studio only allows me to build solution, I wanna to run application on it but I can't.
The target IOS is 8.0, and I already authenticated with my apple account and created a provisioning profile.
I already done this on another project before and works fine.
I really don't know why Visual Studio don't allow me to debug, when I open my oldest project with this device it allows me to debug.
What OS are you running Visual Studio on? IOS requires MAC, whereas Android is compatible with all OS. It's been a while, but I know there's an option to wirelessly connect to a MAC OS so that you can run your IOS Xamarin Forms application anywhere.
I found the solution.
I was trying to use "Debug", and it works fine on the emulator, but to real device I need to use "Debug | Iphone" or otherwise it only builds.
Even when I try to use "Release" it's the same trick.

deploying Xamarin forms application to android phone

I am very new to xamarin forms. I developed a simple autocomplete application in Xamrin forms using Visual studio 2017 enterprise version. I want to deploy that application to android phones. When I created the application, I selected Cross Platform app (xamarin.forms or Native). below is the image of visual studio run button:
and the properties of the project are below:
any article or any steps to deploy this application to android phones will be highly appreciated.
Set Up Device for Development - source - https://developer.xamarin.com
Enable Debugging on the Device - By default, it will not be possible to debug applications on a Android device.
Install USB Drivers - This step is not necessary for OS X computers. Windows computers may require the installation of USB drivers.
Connect the Device to the Computer - The final step involves connecting the device to the computer by either USB or WiFi.
Once a device is connected to your computer you will see your device like this
Now Click the green arrow to start deploy and debug.
additional - This link will show you how to debug and prepare APK for release
https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/

ERROR ITMS-90161 when trying to upload an app built with Visual Studio for Apache Cordova

We just started creating cross platform mobile apps using "Visual Studio Tools for Apache Cordova".
I followed the procedures described in Install Tools to Build for iOS and To run your app on an iOS device. Everything works nicely, the app gets deployed on my USB attached iPhone and runs as expected.
I then tried to upload the app to iTunes, to provide the app via TestFlight to testers and to generally see how app-submitting works:
Build the iOS app as "Release" in VS: it builds and deploys to the iPhone nicely
On the Mac: Start Application Loader, click on "Deliver your App" and navigate to "...remote-builds/builds/"xxx-buildnmb"/cordovaApp/plattforms/iOS/build/device/APPNAME.ipa"
Several checks run OK ("verifying assets, etc.), but it then stops with the error
ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle xxx.yyyyyy.zzzz [Payload/xxx.yyyyyy.zzzz.app] is invalid. [Missing code-signing certificate.] For more information, visit the iOS Developer Portal."
I then discovered the Xcode Project in ".taco_home/remote-builds/taco-remote/builds/<build-number>​/cordovaApp/platform‌​s/ios/" and used Xcode to define the code signing identities in "Build Settings" and the Team information in "General", created the archive via Product-->Archive and submitted it in the Organizer - Archives. And voila it worked!
My questions:
Do I have to use Xcode to submit?
If not, what might I be missing in a) regard to building and signing apps with vs-mda-remote, and b) submitting it with Application Loader?
What are Microsoft's plans in regard to providing access the build settings from within Visual Studio (similar to the ones in Xcode)?
Thanks a lot for any pointers in the right direction.
Thomas
You need to use distribution provisioning profile to sign the package and apps are published to the App Store by using the iTunes Connect website along with the Xcode Archive Tool, which is included with the iOS SDK.

Resources