-
Notifications
You must be signed in to change notification settings - Fork 547
Description
Apple platform
iOS
Framework version
net9.0-*
Affected platform version
9.0.306
Description
Upgrading a MAUI/iOS app to 9.0.306 + XCode 26, entitlements are missing from simulator builds, resulting in runtime errors for app features relying on them.
Downgrading to 9.0.305 + XCode 16.4 works.
This only affects Simulator builds (actual device builds work fine).
The problem affects both Debug and Release configurations.
Possibly noteworthy: the *.app bundle produced by the 'working' build (9.0.305) contains a file archived-expanded-entitlements.xcent
. The broken build does not have this file.
Building & deploying via CLI on Sequoia 15.7
In .csproj:
xml
<PropertyGroup>
<CodesignKey>iPhone Developer</CodesignKey>
<CodesignEntitlements>Platforms\iOS\Entitlements.plist</CodesignEntitlements>
</PropertyGroup>
Sample logs:
SecItemCopyMatching (-34018)" UserInfo={NSLocalizedFailureReason=Underlying error: The operation couldn’t be completed. SecItemCopyMatching (-34018), NSUnderlyingError=0x600000d80cf0 {Error Domain=com.gul.keychain.ErrorDomain Code=0 "SecItemCopyMatching (-34018)" UserInfo={NSLocalizedFailureReason=SecItemCopyMatching (-34018)
Foundation.NSErrorException: Error Domain=FIRAuthErrorDomain Code=17995 "An error occurred when accessing the keychain. The NSLocalizedFailureReasonErrorKey field in the NSError.userInfo dictionary will contain more information about the error encountered" UserInfo={FIRAuthErrorUserInfoNameKey=ERROR_KEYCHAIN_ERROR, NSLocalizedFailureReason=SecItemAdd (-34018) A required entitlement isn't present., NSLocalizedDescription=An error occurred when accessing the keychain.
Failed to save key NSError: Error Domain=NSOSStatusErrorDomain Code=-34018 "Branch Keychain error for key 'BranchKeychainFirstInstall': OSStatus -34018." UserInfo={NSLocalizedDescription=Branch Keychain error for key 'BranchKeychainFirstInstall': OSStatus -34018., NSLocalizedFailureReason=A required entitlement isn't present.
Steps to Reproduce
Build and deploy a MAUI/iOS project using keychain entitlements to a simulator. Observe logs for -34018
error codes and runtime failures where these entitlements would be needed. Firebase Auth, for example. I suspect push notifications would be broken too.
Did you find any workaround?
No workarounds found for 3.0.306 + XCode 26.
Build logs
No response