MAUI App stuck in Distribution Profile after upgrading VS for Mac - ios

I have a few MAUI apps that I have built using Visual Studio for Mac that I could build and debug on my phone without a problem. I recently updated Visual Studio to the latest 17.4 version. Since then the only options for debugging the iOS version my apps are the iOS version 16 simulators OR upgrading my phone to iOS 16.1. I upgraded my phone to iOS 16.1.1 and now I cannot deploy the app to my phone. The problem I am getting is that I get a message stating that my app is being deployed with a Distribution Profile even though I have the certificate and profile set to a development profile.
My biggest issue is the inability to debug my apps on the phone due to the system "thinking" that the app is signed with a distribution profile instead of the development profile that is actually being used. The secondary issue is the inability to use earlier simulators (prior to iOS 16) for testing. Any help you can provide is appreciated.

Please be noted that XCode 14 with iOS 16.1 is not yet supported in .NET MAUI. For more details, you can refer to [Meta] Xcode 14.1 Support and follow it up here: https://github.com/xamarin/xamarin-macios/issues/16659.
Thanks for your feedback and patience.

Related

All iOS apps submitted to the App Store must be built with the iOS 15 SDK or later, but our iOS SDK is already of version 15.2

I have found similar questions in this and this articles, but neither can solve my problem.
The message given by Apple Store Connect was also "ITMS-90725: SDK Version Issue - This app was built with the iOS 14.4 SDK. All iOS apps submitted to the App Store must be built with the iOS 15 SDK or later, included in Xcode 13 or later."
However, I have checked that I am using xcode 13.2.1 which works with iOS 15.2 SDK, running on macOS Big Sur 11.6.4 (well.... a 2015 iMac, kind of old though). I believe it is capable of building a project with iOS 15.2 SDK, but I just can't find where I shall tune (if necessary) to avoid it keeping using iOS 14.4 SDK to build my project. Could you please help me solve the issue? Thank you very much!!
The figures below show the environment I mentioned above:
Looks like you have multiple Xcodes installed, please make sure you have selected the correct version for your Command Line Tools
I found that it was an embarrassing reason which caused the problem I raised above. I think I am responsible for showing what was going on to all who have read this post, and especially to those who had paused to think about this issue.
In short, Xcode 13.2.1 does build the app using iOS 15.2 SDK.
I was able to successfully archive, verify in Xcode, and uploaded the binary to app store connect. However, I was not familiar with the app store connect and did not aware that there was another binary built with iOS 14.4 SDK which was left by my predecessor.
Though I tried several times rebuild and re-upload, I kept falsely submitting the old binary to Apple's reviewer.
That's it, and no bug or secret about Xcode using older version of iOS SDK to build apps, it is just not true. Xcode does build using its latest SDK. Again my apologies to those who also worried about this issue.

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.

I get error 'Cannot find the app installed on the device. Check that the device is connected, awake, and unlocked' when testing with local device

I updated iOS on my iPad to 11.2.1 and I am seeing the below error when I launch the app from Visual Studio TACO from Windows machine connected to a local iPad.
"Cannot find the app installed on the device. Check that the device is connected, awake, and unlocked".
My Mac has XCode 9.2 and doesn't have device support files for 11.2.1, the latest is 11.2 (15C107).
Could this be due to the missing iOS device support files for 11.2.1 on the Windows machine where VS TACO is installed or, is it due to some certificate related issue?
Since I don't see any certificate related errors in the VS output, I am presuming I got beyond all certificate related issues. Btw, I am using Cordova 4.5.4 and VS TACO 2015.
Are there iOS 11.2.1 device support files that I can download from somewhere ?
As per Apple support I cannot downgrade to an earlier version of iOS on iPad since 11.2.1 is not in beta. Looks like I either need to get an iPad with older version of iOS or find the device support file for iOS 11.2.1 and XCode 9.2.
Really appreciate for any pointers..

Could not submit app to iTunesConnect review

I am using OS X El Capitan 10.11 and Xcode 6.4 6E35b, when i click the button submit for review in iTunesConnect it says this error "Apps and app updates submitted to app store must be built with Xcode 5.1.1 or later, and iOS 7 SDK".
I have no idea why this is happening, Xcode 6.4 is not a beta version, i downloaded it from AppStore, it's a public release. If anyone know about this help me out here.
When i tried through application loader :
INFO ITMS-90111: "Your app is built with a beta version of Xcode or iOS SDK. Only apps distributed for beta testing may be built with beta software. To submit an app for distribution on the App Store, you will need to build the app with release versions of Xcode and iOS SDK."
Another solution - use Application Loader:
Export your app as IPA, signed with provision profile for App Store
Open Application Loader (open Xcode, menu Xcode->Open Developer Tools->Application Loader
Sign in with your iTunes Connect credentials in Application Loader
Upload your app
PS: This way is also useful, when you have multiple iTunes Connect accounts for different clients, and you need often upload different apps for them
We're having the same problem. It seems that Apple have just changed the definition of being 'built with beta software' to not just mean a beta version of XCode, but also a current version of XCode on a beta version of the Mac OS.
See a long thread of upset app developers on the Apple Developer Forums here:
https://forums.developer.apple.com/thread/12848
Yeah, used to have the same problem for tvOS applications with last Xcode 7.2.1 from App Store. Downgrade the Xcode to 7.2 version had solved my problem.
Check This in your Code:
Go to Project -> Info -> iOS Deployment Target
Make sure it will be not below -> 5.1.1
Set it with 6.0
Clean project & try again
Hope it will work for you.

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