Why can't I build the app on my iOS device? - ios

So I just got my Apple Developer account.
I got myself a MacBook Pro.
Those two were the only requirements I heard of to start developing iOS apps using Xamarin Visual Studio 2017.
I started off by connecting to my mac, it did connect successfully.
That's what it said at least.
Then I added a button to the form and here is where it all starts going downhill.
I can't find my device in the device log
When I try to build to my device it keeps saying
Could not find any available provisioning profiles for iOS.
I looked into this issue and got told that I need to add my developer account in Tools > Options > Xamarin > Apple Accounts
So that's what I did. And it still says the exact same thing.
What step did I miss here? Do I need to have Visual Studio running on the mac or what's going on here?
Here is a picture of the bundle singing

Related

Problem to set up xamarin iOS Hot Restart

I want do debug my xamarin app on my iPhone SE (real device).
For this I signed up for apple dev club and already paid it.
I have my mac with xcode 13 running in the network and I am able to connect VS with the mac.
Now when I try to launch the app with Hot Restart I am asked to give my apple credentials and have to select my team, no problem..
But after selecting team it gets an error telling me I should check protocols but I don't know what to do here... (Please have a look at the image)
I already imported the Provisioning and the certs to xcode.
Using VS 17.2.3 on Win11, macOS 12.4 and it is a xamarin forms app
Unfortunately,there are a few issues with provisioning (both automatic and manual) for Hot Restart.
The issue is being track in this thread in developer community,please follow up the issue in that thread.

How to generate a .ipa file from my app using Visual Studio?

I'm using Visual Studio community 2022 and Xamarin to create a mobile app which is compatible with both iOS and Android. I would like to be able to download the app on my iPhone so I can test it properly and eventually be able to share the app with other people. I have been able to archive the Android version of my app (generate the .apk file) with Visual Studio since, from what I gather, I have an Android simulator in my computer. However, I am unable to archive the iOS version of my app and generate a .ipa file because I don't have such a simulator on my computer. I can't use my iPhone to play it since I don't have an Apple Developer account (and getting one would cost me $119 CAD which I'm not very eager to pay) so the remaining solution would be to pair to a Mac computer.
I own a Mac computer, but I don't use it anymore since it was getting pretty old (Macbook pro purchased in 2013). When I try and pair to my mac, I get the same error message every time and I don't know what to do about it:
"An error occurred while trying to establish an SSH connection with SSH keys to"
followed by my mac's IP address. However, even if I managed to pair my mac to visual studio on my Windows computer, I have a feeling I would still be unable to sign my code without the Apple Developer account.
I've tried many things:
I've downloaded Visual Studio for mac on my mac and run the code, but since my mac is old the version of xamarin I used in my code is incompatible with the versions of XCode and Visual Studio I can download.
When that failed, I've tried doing what's indicated on this website but I didn't succeed since archiving the app always failed, because the XCode version I can download isn't recent enough (I can only download version 12.4 and I need at least 13.3)
-I've looked a lot into signing the app without paying $119 to Apple for a developer account but have found nothing else.
If anyone has any suggestions about how to potentially get the .ipa file it would be greatly appreciated. Thanks:)

Signing Xamarin.iOS Certificate in Visual Studio Windows Error

am trying to add an iOS certificate in Visual Studio 2019 but am getting this error
Error image
What might be the issue? NB: I don't have a MacBook, I only have an Apple developer account and iPhone
You need a mac to make a releasable build (for testflight or app store submission). See Xamarin Hot Restart - Limitations. This includes doing any "signing".
You should be able to develop and debug on your iPhone - but you can't make it available to anyone else, without a Mac. If you haven't yet succeeded in running it on your attached iPhone, check whether you followed all the Hot Restart instructions. Or for another discussion of steps, try these non-official instructions.

Xamarin Visual Studio ios simulator not working

We recently acquired mobile solution that contains an ios and android project. Android project runs fine. When i run the ios project i get error stating
My environment is a windows laptop and a macbook pro running visual studio from windows.
I can pair to mac just fine
I am using automatic provisioning which appears to be correct since my team shows up in the team dropdown.
I feel like i did the provisioning correct because team would not show up in dropdown if not.
I have latest xcode installed on mac
I verified simulator runs fine on mac by starting through xcode
In the videos i watched as soon as mac was paired then more options appeared besides just simulator. (ipad, tvos, etc)
One question is when i registered my device i used the UUID from the macbook and not UUID of simulator. Could not get straight answer for this.
To be clear i am just trying to run the simulator and not a remote device.
Honestly i just want to be able to test the ios application. It should not be this many steps to just run a test. Is there a more simple way to test or am i on the right track?
Updating visual studio on my windows machine did the trick. I really wish the error would give me some kind of warning that would lead me to the conclusion that i needed to update visual studio. That would have saved me many hours.

Deploying Apache Cordova app to iPad without Apple developer account

After having developed an app for a friend using Visual Studio 2013 Pro with the Apache Cordova Extension, I hoped to also get it runnning on an iPad 3 as fast as with Android. However, things proved to be more complicated than originally thought: The 99$ for an Apple developer account would be far too high for a single device development (the app is intended to only work on one device, no commercial intentions).
At least I now have the ability to use Mac OSX and XCode, which is connected to Visual Studio via network. Installing the app in the iOS simulator works as expected, but I'm struggling with deploying it on the iPad. I already considered jailbraking the device, as the warranty is yet expired and it wouldn't be a problem for my friend. According to the Information I found it would be possible; however, I could not find much about how to do that.
Thanks in advance.
After several months I finally found a working solution:
The latest XCode version (7 Beta 2) is able to sign iOS applications using an ordinary AppleID instead of a $100 developer license.
First, you will need to prepare the vs-mda-remote node plugin on your Mac and be able to build applications [See here how]. Using an appropriate deployment target in Visual Studio, the app can be tested within a virtualized iOS environment.
However, the deployment options Remote Device and Local Device will both fail when you haven't subscribed to the Apple Developer Program. Other methods (described here or here) requiring jailbreaking the device haven't worked for me either.
Interestingly, Apple seems to have changed their strategy not much time ago , finally allowing to sign and deploy apps on non-rooted iOS devices.
Whenever an app is built for the iOS simulator, vs-mda-remote will create a whole new build folder (named using a 3 - 5 digit random number) located in ~/remote-builds/builds. Inside that build folder, you will need to find and open the XCode project file with XCode 7 (example path: ~/remote-builds/builds/654/cordovaApp/platforms/ios/YOUR_PROJECT_NAME.codeproj).
After having connected and detected your iOS device, you should be able to select it as deployment target. Then you should follow these instructions, basically just adding an AppleID which should be used to sign the app. This wasn't possible with earlier XCode versions and is certainly much easier than using one of the "hack"-like techniques involving jailbreaking your device and practically voiding it's warranty.
Finally, you will only need to set the Code Signing Identity to the registered AppleID (for both the Project and the Target) and you're ready to deploy your app.
This method worked for me using iOS 8.3 and Mac OSX Yosemite 10.10.4.
If there are any other questions, please feel free to ask.
in Visual Studio 2015 Community RC, there is an option to debug the app developed by cordova in 'remote device' (iPhone or ipad) connected to the Mac osx. Pls. try it.

Resources