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
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Trying to get user creation / login / getCurrentUser working (anonymous, email/password creation and login types) but constant "An error occurred when accessing the keychain" errors. Entitlements fixes have been tried (see below).
I eventually solved this issue. Hopefully the following may help anyone else who arrives here.
Actions taken:
tns platform remove ios && tns platform add ios && tns run ios
Open project in Xcode
Select project folder in project navigator (left sidebar)
Ensure appropriate target selected in main area top nav
Select General / signing / Team / personal team
Select Capabilities in main area top nav
Keychain sharing / Toggle switch to on / select appropriate dev team (personal is ok).
Ignore Signing for xyz requires a development team if it appears
Expand project folder (left sidebar)
Expand inner folder (same name as project)
Note newly created yourprojectname.entitlements file
Right-click yourprojectname.entitlements file / show in finder
Copy generated yourappname.entitlements to app/App_Resources/iOS/yourappname.entitlements
Note app/App_Resources/iOS/build.xcconfig is also updated (by Xcode) to contain
Uh oh!
There was an error while loading. Please reload this page.
Environment
node v8.94
npm 5.6.0
xcode 9.2
nativescript 3.4.2
nativescript-plugin-firebase ^5.1.6
Appropriate Firebase authentication methods enabled.
Description
Trying to get user creation / login / getCurrentUser working (anonymous, email/password creation and login types) but constant "An error occurred when accessing the keychain" errors. Entitlements fixes have been tried (see below).
Any advice greatly appreciated.
Examples
Result
Error raised "An error occurred when accessing the keychain..."
User created ok on firebase
Result
Error raised "An error occurred when accessing the keychain..."
getCurrentUser fails
Fixes tried
The following fixes re entitlements as per #420 have been tried
Content
Causes An error occurred when accessing the keychain
Content
Causes Error is: Expected "/" or [^*] but "" found.
App never launches in simulator.
The text was updated successfully, but these errors were encountered: