I'm having a hard time trying to deploy my first Xamarin.Forms app to an iPhone. This is the scenario:
-coding on Visual Studio for Windows (VS2017 Community 15.9.24 and VS2019 Community 16.8.5);
-VS running on Windows 7
-MacBookPro on the same network, logged in with my personal Apple ID;
-iPhone attached to the Mac;
-I created an Apple developer account (not a paid account)
-Xcode and VS installed on the Mac;
-pairing to the Mac works fine;
-debugging the Xamarin iOS project using iPhone simulator works fine;
-debugging on a physical iPhone attached to the Mac fails in both VS2017 and VS2019.
I understand the error must be because I can't add my Apple ID in Visual Studio.
Error in VS2017:
-I select iOS Options > iOS Bundle signing > Automatic provisioning;
-then in Tools > Options > Xamarin > Apple accounts VS won't let me add an account. The only enabled option is the "install Fastlane" button, which fails.
-trying to run the debug configuration on the iPhone anyway fails with the error "No valid iOS code signing keys found in keychain. You need to request a codesigning certificate from https://developer.apple.com." Can't get past this point.
vs2017 error
Error in VS2019:
-iOS Options > iOS Bundle signing shows the message "Please wait until the provisioning information is loaded" forever. No options are presented.
-in Tools > Options > Xamarin > Apple accounts > Add I type my Apple developer ID and password, but nothing happens. I can barely see what I suppose is a message box flicking on and off.
-trying to run the debug configuration on the iPhone anyway fails with error "Automatic provisioning is enabled but no development team was selected." Can't go further here also.
vs2019 error
Am I missing something here? Is there a workaround? Online documentation that I've found won't help me with these errors.
EDIT: I was able to add my Apple Id into VS2019 running on Windows 10.
Related
I am trying to debug from a Windows computer to an iPhone plugged into the computer.
I set up Hot Restart and followed every step closely.
I have a paid Apple Developer account, downloaded iTunes, and Visual Studio 2022
I have since revoked my certificates and provisioning profiles since automatic provisioning apparently creates those
However, I am getting the following error when I try to debug on the iPhone device:
No valid iOS code signing keys found in keychain. Please enable automatic provisioning from the iOS Bundle Signing page.
When I go to the iOS bundle signing page and try to enable automatic provisioning by selecting my team, it says:
Automatic provisioning failed, please check the logs.
What on earth could I be doing wrong? I've been trying to solve this problem for two days. Please help.
I'm trying to setup new MacBook as a build server remotely for xamarin projects. It is in my office and I connect there with rdp from Windows 10 from home.
On MacBook: installed Xcode, Apple Developer Tools, Transporter. On windows: connected to mac, entered AppleID in visual Studio, enabled Automatic Provisioning.
Then I build my Xamarin.Forms ios project in "AppStore" configuration and it's ok.
Then I click "Archive" on that project and get error message from Visual Studio Archive Manager:
Selected device doesn't support archiving.
The selected ios device is not supported for creating an archive.
Please select a remote device from the drop-down menu before archiving.
Do I have to have iPhone to build my app? Where - in MacBook location or at home?
Archiving of a new default project works in Xcode (the active scheme is set to "Any iOS device (arm64)"). The error is in visual studio.
Visual Studio 2019 - (16.11.2)
XCode 12.5.1
There is a new version that fixes this
It seems that remote device option does not show in drop menu in VS 16.11 .
Check the similar cases : here and here .
Try to downgrade Visual studio to 16.10.x to see if problem persists.
You can download the older version from this link .
You don't need a physical device to archive. Just click the bar on the top-left of your screen, then select the Any iOS Device option. On older versions of Xcode, I think it was called Generic iOS Device. After this, hit Product -> Archive again.
It looks like Microsoft have finally released a fix for this in 16.11.3: The release notes are here:
https://learn.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.11.3
The solution in 2022 is to choose "Remote Device" from the "Debug" dropdown:
This is hinted at in the question, but that error message no longer explains what to do (!?!)
I am using macbook pro. I have xcode installed on my computer. My goal is to develop applications for iOS. For this, I want to develop an application with xamarin framework in visual studio for mac instead of xcode. when i test my app with similator i have no problem. but when I want to test it on my iOS device, I get the warning that the provisioning profile is missing.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Shared.targets(3,3): Error: Could not find any available provisioning profiles for iosdnm.iOS on iOS.
(iosdnm.iOS)
I created a developer account belonging to the account I use mac. but since I haven't paid the 100 usd he asked me for this account yet, I get the warning that my account is being controlled. My last post may be redundant.
This is exactly what I want to do. I just want to develop an application in visual studio for mac with my apple ID and use it on my ios device. How can I get rid of my above mentioned error?
Xamarin iOS build fails with error as "error: iOS code signing key 'iPhone Distribution: ******* (**********)' not found in keychain" when doing build from TFS 2015 for iPhone. I am able to do the build from local and get the message for signing identity being deteted.
I checked the keychain on my mac, and the key is present in there. I am not using any custom entitlements.
I looked up for solutions of similar posts on stackoverflow, but none of them is working for me.
If you renewed your yearly developer account with Apple recently, you may check the solution on this website, just do the following:
If it's open, stop Xamarin Studio (or the Xamarin Build Host if
running in Visual Studio).
Start Xcode.
From the Xcode menu select Preferences....
Select Accounts from the Preference Dialog.
Click the View Details... button.
Under the Signing Identities list, click the + button.
Select iOS Development from the popup list, Xcode will contact Apple
and issue a new license which will appear in the Signing Identities
list.
Next click on the + button again and select iOS Distribution from the
popup list.
Again, Xcode will contact Apple, issue a new license and display it
in the Signing Identities list.
Click the Done button and close the Preference Dialog.
Quit Xcode and restart Xamarin Studio (or the Build Host if using
Visual Studio).
In your Xamarin project you might have to open the preferences select iOS Bundle Signing > Identity and select a new identity from the list of available identities.
If you are using Visual Studio and a Xamarin Build Host, you might have to disconnect from the host and reconnect to see the change in the signing identities.
Been tinkering with Hanselman.Forms on my Mac with Android. Today I decided it was time to try it on the iOS Simulator...
I have serious regrets about this decision.
I'm not sure what I'm doing wrong. I'm able to deploy an app from Xcode to the iOS Simulator just fine. Just won't work from Xamarin Studio.
In all fairness I do get an error:
No installed provisioning profiles match the installed iOS code signing keys.
I do see this "error" in Xcode as well, but it doesn't prevent me from launching the app there.
Thanks.
Removing entries from Entitlements.plist worked. I also had to delete the original device Xamarin Studio was trying to deploy to. After I did, Xamarin Studio created another device and launched the application successfully.
https://forums.xamarin.com/discussion/comment/117465#Comment_117465
To the exact error message:
No installed provisioning profiles match the installed iOS signing identities
control click Xamarin Studio > Solution > Project.iOS
Options > Build > iOS Bundle Signing > Custom Entitlements
Select and delete Entitlements.plist text entry. In other words, do not click on the ... button to select new new file, nor bother editing the entitlements by hand)
OK, Build > Rebuild All.
I ran into the same when I was trying to deploy to the simulator without a physical device configuration. My fix was to:
Close Visual Studio
Open the .csproj in NOTEPAD
Find the line with CodesignElements and delete it
Save the .csproj
Reopen the project in Visual Studio
Right-mouse your IOS project and click "Rebuild
All", you should see "2 Succeeded"
Give it a run, and your app will come up on your Mac
Good discussion of this here -
http://forums.xamarin.com/discussion/39534/cant-build-ios-in-xamarin-studio-5-7-1-through-5-9
Good luck