You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just wanted to give a hint on a strange error I stumbled upon and finally found the solution : activate developer mode on the iPhone, which runs iOS 16, under Settings -> Privacy & Security.
Building a simple .NET MAUI App from the default template, with some iOS plattform specific code added, I could not get the build & deployment done for my iPhone. Deploying on the simulator worked fine.
The Mac build host was paired successfully, the iPhone plugged in and it showed up in Visual Studio under "iOS Remote Devices", but a build ended up in an error "codesign failed ... error code 1". Also there was a warning (not an error !) that the keychain for signing could not be build.
Unfortunately I did not wrote down the exact error (bug hunter & fixing mode sometimes drifts behavior away from "best practices" ;-) - but this should be reproducable with an iPhone that was never setup up for development purposes before - a "fresh" device so to say. I tried to reprodue the error after I found the solution by resetting "developer mode" back (deactivate), but the behaviour of VS respectively the error messages are different then (and then they are clear !).
As I could not find any helpfull infos, I did a simple "hello world" SwiftUI App in Xcode on the Mac and as I tried to deploy it to the physically connected iPhone, I was hinted to the "not active developer mode" on the iPhone by Xcode (see the website above).
This might be only relevant for iPhone and iPads that run on iOS 16 and later, as developer mode was introduced with this version - but I think it would be a good idea if the .NET Maui docs would be updated with this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
just wanted to give a hint on a strange error I stumbled upon and finally found the solution : activate developer mode on the iPhone, which runs iOS 16, under Settings -> Privacy & Security.
See https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device for more details.
Building a simple .NET MAUI App from the default template, with some iOS plattform specific code added, I could not get the build & deployment done for my iPhone. Deploying on the simulator worked fine.
I got a paid apple developer subsription and followed the steps in the .NET Maui docs for the setting up VS, see : https://learn.microsoft.com/en-us/dotnet/maui/ios/apple-account-management?view=net-maui-7.0&tabs=vs and https://learn.microsoft.com/en-us/dotnet/maui/ios/device-provisioning/automatic-provisioning?view=net-maui-7.0&tabs=vs.
The Mac build host was paired successfully, the iPhone plugged in and it showed up in Visual Studio under "iOS Remote Devices", but a build ended up in an error "codesign failed ... error code 1". Also there was a warning (not an error !) that the keychain for signing could not be build.
Unfortunately I did not wrote down the exact error (bug hunter & fixing mode sometimes drifts behavior away from "best practices" ;-) - but this should be reproducable with an iPhone that was never setup up for development purposes before - a "fresh" device so to say. I tried to reprodue the error after I found the solution by resetting "developer mode" back (deactivate), but the behaviour of VS respectively the error messages are different then (and then they are clear !).
As I could not find any helpfull infos, I did a simple "hello world" SwiftUI App in Xcode on the Mac and as I tried to deploy it to the physically connected iPhone, I was hinted to the "not active developer mode" on the iPhone by Xcode (see the website above).
This might be only relevant for iPhone and iPads that run on iOS 16 and later, as developer mode was introduced with this version - but I think it would be a good idea if the .NET Maui docs would be updated with this.
Hope this helps someone in sometime ;-)
Cheers
Ayaphi
Beta Was this translation helpful? Give feedback.
All reactions