question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run in iOS simulator

See original GitHub issue

Code builds fine. When I run in simulator mode, it gives.

System.Exception: Error adding record: MissingEntitlement at Xamarin.Essentials.KeyChain.SetValueForKey (System.String value, System.String key, System.String service) [0x0009a] in D:\a\1\s\Xamarin.Essentials\SecureStorage\SecureStorage.ios.tvos.watchos.cs:126 at Xamarin.Essentials.SecureStorage.SetAsync (System.String key, System.String value, Security.SecAccessible accessible) [0x00027] in D:\a\1\s\Xamarin.Essentials\SecureStorage\SecureStorage.ios.tvos.watchos.cs:24 at Xamarin.Essentials.SecureStorage.PlatformSetAsync (System.String key, System.String data) [0x00000] in D:\a\1\s\Xamarin.Essentials\SecureStorage\SecureStorage.ios.tvos.watchos.cs:38 at Xamarin.Essentials.SecureStorage.SetAsync (System.String key, System.String value) [0x00021] in D:\a\1\s\Xamarin.Essentials\SecureStorage\SecureStorage.shared.cs:27 at Xappy.Domain.Global.AppModel.set_UseDarkMode (System.Boolean value) [0x00001] in /Users/g7kw3/tmp/Xappy-master/Xappy/Xappy/Domain/Global/AppModel.cs:79 at Xappy.Domain.Global.AppModel.InitAsync () [0x0009f] in /Users/g7kw3/tmp/Xappy-master/Xappy/Xappy/Domain/Global/AppModel.cs:23 at AsyncAwaitBestPractices.SafeFireAndForgetExtensions.HandleSafeFireAndForget[TException] (System.Threading.Tasks.Task task, System.Boolean continueOnCapturedContext, System.Action`1[T] onException) [0x00027] in /Users/bramin/GitHub/AsyncAwaitBestPractices/Src/AsyncAwaitBestPractices/SafeFireAndForgetExtensions.cs:61 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021 at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.4.0.2/src/Xamarin.iOS/Foundation/NSAction.cs:178

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:10

github_iconTop GitHub Comments

6reactions
julpanidcommented, Jul 25, 2021
  1. Add Custom Entitlements image

  2. Add new key to Entitlements.plist <key>keychain-access-groups</key> <array> <string>$(AppIdentifierPrefix)com.microsoft.adalcache</string> </array>

this solution working well for me.

6reactions
AndyDentFreecommented, Nov 18, 2019

The solution is in the forum here Set the iOS project’s Custom Entitlements to your Entitlements.plist

iOS project => Properties => iOS Bundle Signing Screen Shot 2019-11-18 at 11 36 46 am

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode can build a project but can't run it on simulator
Generally, if you can't Run a project, either: It doesn't have a build scheme that knows how to "run". Check at the top...
Read more >
Issue with opening IOS Simulator
I ran into this same problem and resolved it in the following steps. ) Open Xcode. ) go to preferences. ) go to...
Read more >
Application not open on IOS simulator · Issue #422
Open Xcode's Preferences, the Locations tab, and make sure that the Command Line Tools menu option is set to something. Sometimes when the...
Read more >
Cannot run iOS 14.5 simulator from Windows
I tried rolling back the simulator runtimes to 14.4 first. This did not work.
Read more >
Troubleshooting: Cannot Deploy iOS App to iOS Simulator
To resolve this problem, look at the following areas: Activate the iOS Simulator as your target platform in the Project Manager:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found