Could not find any available provisioning profiles for iOS

后端 未结 11 1347
青春惊慌失措
青春惊慌失措 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:04

    In Visual Studio for OSX, go to Visual Studio Community > Preferences > Publishing > Apple Developer Account and click to + button to sign in and add your developer account. In theory after that automatic provisioning should work.

    In Visual Studio for Windows, go to Tools > Options > Xamarin > Apple Accounts, you will get a prompt to install FastLane before your Apple ID will show up under Automatic Provisioning.

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

    You must create a provisioning profile. Search on Google, how to do it.

    But, the secret is: when you create a provisioning profile, you must associate an App ID to this profile, like: "com.companyname.*".

    When you create your app in visual studio, you must set in the INFO.PLIST file on IOS PROJECT, the Bundle Identifier to "com.companyname.myapp1" or anything else. If your Bundle Identifier has a name like "com.myapp.app1", you will get this error: Could not find any available provisioning profiles for iOS, because your profile accept only apps with the names started with com.companyname and you are using a appname different.

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

    I suggest you read this documentation to learn more about iOS provisioning.

    What you want is called automatic provisioning though. It takes care of all the complex things about provisioning for you and just deploys the app.

    Visual Studio on Windows has the automatic provisioning feature in preview (called 15.7) right now (preview 3): https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-preview-relnotes#xamarin-provisioning.
    I recommend you try that, it should help you automatically add your iPad to the relevant provisioning profile.

    Visual Studio for Mac has had automatic provisioning for a couple releases now.

    Note: you do need an Apple Developer account to deploy on device (it can be a free developer account).

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

    How did I have to solve this?

    First background

    I have already provisioning profile for app we are building but every once in a while I have to create a small POC app to prove something. And often I have to use that small app on real provisioned device.

    But I was not even able to see my device for that small POC app in the dropdown showing available devices. Only the app I am building with my team will show.

    Solution

    To resolve this, I had to do

    1. In my POC app > Info.plist, make sure your Bundle Identifier is same as for the app that you can deploy to your device
    2. At the same location, under Signing, select "Automatic Provisioning" and you should see your Apple ID show. In Team dropdown, select your team

    After this, my device showed, I was able to build and deploy to it and the error was gone.

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

    just hit the same problem. didn't find solution in this thread that i came to. Xamarin app, visual studio for mac . manual signing

    didn't use it for few months. works good on emulator but can't deploy to device for debugging

    after reading this thread went to developer.apple.com and found, that my developer profile expired a month ago.

    1. create new provisioning profile
    2. visual studio for mac-preferences-apple developers account-details-download manual profiles
    3. info.plist-bundle signing options-choose correct identity and profile
    0 讨论(0)
  • 2021-01-03 18:12

    Unbelievable but true...

    To enable the interface, I first had to login with my Apple account under:
    https://itunesconnect.apple.com
    and
    https://appleid.apple.com
    and agree the new privacy agreement from Apple. There isn't any error message that points you in this direction ("you first have to agree...").

    After doing that, I was able to use the automatic provisioning in VS2017 and connect to the Mac.

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