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
Xcode: File -> New -> Target -> (Share) Extensions
Xcode: Select target "Share Extension" & add capability (e.g. App Group, which is very common for extensions)
The last step will create a NAME_OF_EXTENSION.entitlements file in the folder of the extension
When using AdditionalAppExtensions, the documentation links to this example project where the AdditionalAppExtensions Include path points to the project folder, where the .xcodeproj is located.
Expected Behavior
App extension is signed correctly & and can use the entitlements granted (e.g. can use the App Group folder).
The expected location of the Entitlements file is documented and/or
The build process errors out if it expects an Entitlements file but it cannot be found and/or
The build process is smarter in finding the Entitlements file, e.g. also looks in the extension-subfolder or searches all subfolders recursively
Actual Behavior
The app extension is not signed correctly and crashes when trying to use features granted by the entitlement.
It appears that this condition fails:
The build process expects the .entitlements file to be located in the project folder, but it is located in the extension subfolder. In the build process this shows by a missing "--entitlements "path/to/entitlements" part in the _CodesignAppBundle step.
I have encountered this problem yesterday and it took lots of time to find the cause of why the extension didn't work correctly. It appears that most developers trying to use AdditionalAppExtensions face this problem, as can be seen here.
Environment
.NET 8 RC2
The text was updated successfully, but these errors were encountered:
The native folder is where I have my xcodeproj. My .entitlements files are placed directly in that folder (not in subfolders of it, where it is placed by default when creating a new project in XCode).
@tipa Thanks i have done the same thing from my side and its working as expected. I am just wondering if we have the build configuration different for staging or dev environment how the entitlement will work for the same because they could have different key chain group, so is there any way that we can define the different entitlements here to pick it from the root directory basis on the build configuration?
Steps to Reproduce
The last step will create a
NAME_OF_EXTENSION.entitlements
file in the folder of the extensionWhen using AdditionalAppExtensions, the documentation links to this example project where the
AdditionalAppExtensions Include
path points to the project folder, where the.xcodeproj
is located.Expected Behavior
App Group
folder).Entitlements
file is documented and/orEntitlements
file but it cannot be found and/orEntitlements
file, e.g. also looks in the extension-subfolder or searches all subfolders recursivelyActual Behavior
The app extension is not signed correctly and crashes when trying to use features granted by the entitlement.
It appears that this condition fails:
xamarin-macios/msbuild/Xamarin.Shared/Xamarin.Shared.targets
Line 2294 in 17523c3
The build process expects the .entitlements file to be located in the project folder, but it is located in the extension subfolder. In the build process this shows by a missing "--entitlements "path/to/entitlements" part in the
_CodesignAppBundle
step.I have encountered this problem yesterday and it took lots of time to find the cause of why the extension didn't work correctly. It appears that most developers trying to use AdditionalAppExtensions face this problem, as can be seen here.
Environment
.NET 8 RC2
The text was updated successfully, but these errors were encountered: