Xamarin Forms - Can't find provisioning profile (ios bundle signing)

后端 未结 1 1252
孤城傲影
孤城傲影 2021-02-16 00:26

I am using a macbook pro with visual studio community.

The error I receive in the console is:

/Library/Frameworks/Mono.framework/External

1条回答
  •  生来不讨喜
    2021-02-16 00:52

    This problem was tricky to solve for a few reasons:

    1. It was only an issue when we introduced the localStorage plugin into the project, prior to that there was no issue. This was misleading.
    2. It was not clear that you had to make an xCode project and link it to your apple ID, this was the root of the problem.
    3. I am new to ios app development and xamarin.

    Solution

    I did something similar to what's demonstrated here: https://www.youtube.com/watch?v=S9lNmnyACpY

    Open up xCode and create a new project (can also do this under the apple developer page) and create a new project with the same namespace (eg: xfPOC in my case) as your xamarin forms project.

    Copy the provisioning profile name it creates and then paste it into your "bundle identifier" in info.plist. From there, go into ios bundle signing and it should be able to find your provisioning profile.

    My aplogies to @SushiHangover who was actually correct, I originally replied to him saying that my bundle identifier did match my provisioning profile(which at the time didn't exist). By "provisioning profile", I thought that was set up at the beginning of the xamarin forms project as the organization Identifier, this is confusing because VS copies that into the bundle identifier in info.plist, which isn't particularly helpful because it looks like it's set everything up for you, whereas you need to go and create it yourself in xcode or on the apple development page. Personally, when I did that in my project, the provisioning profile did not match the default bundle identifier that VS created.

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