Could not find any available provisioning profiles for iOS

后端 未结 11 1348
青春惊慌失措
青春惊慌失措 2021-01-03 17:29

We are developing a iOS shopping cart application in c# and visual studio 2017 for xamarin. I have an iPad Air iOS 10.3, when I try to publish to real device, I am getting t

相关标签:
11条回答
  • 2021-01-03 18:13

    I have tried all the above-mentioned approaches but didn't work. I was using Manual provisioning.

    To identify why it's not showing in VS, I have:

    1. Opened the Xamarin.ios project in Xcode.
    2. Under Settings > Manual provisioning profile,> Selected the appropriate certificate (Note: It should be installed before it appears in the list).
    3. It showed me an error, which said "Selected provisioning doesn't match with the distribution certificate in the keychain"
    4. When I logged into developer.apple.com - I have found a new distribution certificate.
    5. I had to regenerate the provisioning profile with the new distribution certificate (selected) and installed it.
    6. After installing the error went away.
    7. Also, In the Visual Studio's drop-down list the provisioning profile started to appear.

    I agree with Meekohi & Vincent Dondain who have recommended choosing Automatic Provisioning, as it's a better option if one is not facing any issues with certifications or profiles as it takes care of everything. However, using the latest Visual Studio for Mac is preferable.

    0 讨论(0)
  • 2021-01-03 18:13

    Answer ( I have had this issue 2 times by switching MACS & adding new applciations )

    Issue: Profile not showing up in dropdown below ( Automatic Distribution or Distribution )

    As long as you are sure your info.plist is ok and have matching ( com.companyname.something ) & your CERTS are in Keychain then this is what is what cleared it up for me 2 TIMES !

    ** This seems to be some sort of refresh issue ( where a old profile is cached OR newer profile/bundle not loading in MAC )

    [ I use VS on Windows and connect to MAC ]

    1. Open Visual Studio for MAC ( not windows )
    2. Create a new ( blank form ) iOS project
    3. Click Visual Studio in Menu and Click Preferences
    4. Click Apple Developer Accounts ( ADD YOUR APPLE ACCOUNT )
    5. CLICK VIEW DETAILS & DOWNLOAD ALL PROFILES & Close
    6. Open info.plist in your Folder View in VS
    7. Check Manual Provisioning & Type in bundle Identifier com.companyname.whatever & App name
    8. SAVE
    9. RUN BLANK APP & CLOSE IT 10 ********* Go back to Windows right click on iOS Project Select Distribution AND YOUR BUNDLE IS IN THE DROP DOWN !!

    [ If bundle not there re-connect to MAC right click and see if its there in your dropdown - remember the bundle must be in your iOS project ( root ) ]

    ( Automatic distribution will work as your bundle will be in the dropdown below in Windows Visual Studio & RELEASE TO APP STORE ).

    0 讨论(0)
  • 2021-01-03 18:25

    You can see what was wrong with your provisioning profile in xCode. Also this procedure will update Provisioning profiles, Certificates, App Ids:

    1. Go to xCode, create blank iOS application, type the same Bundle Identifier, that you had in Visual Studio.

    2. On the same page uncheck "Automatically manage signing".

    3. In Signing (Debug) click on Provisioning profile. You will see Eligible and Ineligible provisioning profiles. You can select each of them and if one is Ineligible, then errors will be shown below. After that you can fix them.
    4. After that you can go to Visual Studio for Mac and create the same project with the same bundle id and check you profile in Project -> Options -> iOS Bundle Signing -> Provisioning profile
    5. After that you will find your Provisioning profile in Visual Studio on Windows
    0 讨论(0)
  • 2021-01-03 18:28

    For those who just want to deploy/test their app on a real device with "Free provisionning" follow this official guide.

    To sum it up :

    • Create an apple id
    • Add the previously created apple id to XCode in order to add a provisioning profile.
    • Create a new empty iOS app with the bundle identifier equals to the one of your Xamarin app (you can find it in Info.plist of your Xamarin.iOS project).
    • Ensure that your empty iOS app could be deployed, by running it from XCode on your device with your free provisioning profile.
    • In Visual Studio open Info.plist and click on Bundle Signing Options..., in Signing identity chose Developper automatic and Automatic in Provisioning profile.
    • Run your Xamarin.iOS app on your device.
    0 讨论(0)
  • 2021-01-03 18:28

    All of these answers are right.

    There are many reasons the creation of the provisioning profile certs bundle can fail. The one I dont see listed here is referenced in (Apple developer account teams not showing up on VS Mac)

    Only XCode can set up the provisioning for you using the free apple dev Id. You need to create a dummy project with the same Bundle Name and Bundle Identifier. Build it in XCode and have XCode create the certs for you.

    Only once i did that (on the paired Mac) did it start actually building my iOS target in Windows VS 2017

    0 讨论(0)
提交回复
热议问题