0

I'm new in flutter and iOS also, I was developing my first project in flutter using Windows then done but now I want to develop an iOS app. So, I copied my project from Windows and paste into Mac. I installed all thing which is related to flutter. Now, When i am trying to install an app on simulator then

Xcode showing error : The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.

I searched a lot on same error but i did not find the solution of this.I searched on github and stackoverflow also but their answer did not work.

Flutter doctor :

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.7.8+hotfix.2, on Mac OS X 10.14.5 18F132, locale en-IN)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✓] iOS tools - develop for iOS devices
[✓] Android Studio (version 3.1)
[✓] Connected device (2 available)

• No issues found!

My App is installing but when it appears then suddenly crash and xcode showing error message box.How to fix it ? If someone has query or any question then ask me please.Thank you.

TheTiger
  • 13,264
  • 3
  • 57
  • 82
  • Have you gone through with [this solution](https://stackoverflow.com/questions/39495620/xcode-8-error-denied-by-service-delegate-sbmainworkspace)? – TheTiger Jul 16 '19 at 12:16
  • try quitting simulator and rerun the app. – NickCoder Jul 16 '19 at 12:17
  • @TheTiger already tried...i'm using xcode 10.2..No argument at there and no any blank variable at there. – KiritoKun007 Jul 16 '19 at 12:19
  • tried many times...i also restarted my Mac but did not work @NikhilGangurde – KiritoKun007 Jul 16 '19 at 12:20
  • I was saying to reset the simulator ... there were multiple solutions in that answer... have tried all? – TheTiger Jul 16 '19 at 12:21
  • which file did you open in the XCode project folder. – NickCoder Jul 16 '19 at 12:23
  • I did not find this one Simulator > Reset Content And Setting where is Reset Content And Setting Option @TheTiger – KiritoKun007 Jul 16 '19 at 12:25
  • Runner.xcworkspace @NikhilGangurde – KiritoKun007 Jul 16 '19 at 12:26
  • @KiritoKun007 Its there `Simulator -> Hardware -> Erase All Content and Settings`. – TheTiger Jul 16 '19 at 12:27
  • @TheTiger that problem solved but now it is saying Library not found for -IFirebaseAuth. I unchecked firebase_auth in Target Membership since morning... is it problem ? – KiritoKun007 Jul 16 '19 at 12:32
  • @KiritoKun007 Many reasons for this error. library is not setup properly. Accidentally you have changed its path. You have opened `xcodeproj` file instead of `xcworkspace`. `pod` configuration error if so then install pod again. If you manually setup this library probably you missed something ... check build settings point in tutorial, may be you missed `other linker flags`, `framework search path`. etc. etc.... – TheTiger Jul 16 '19 at 12:37
  • No, i opened Runner.xcworkspace. If library is not setup properly then how to reset, I reinstall pod now but doesn't work – KiritoKun007 Jul 16 '19 at 12:39

1 Answers1

0

Try this :

You may want to check your scheme. The executable should be asked on launch.

Edit Scheme -> Info -> Executable -> Ask on launch

enter image description here

reference apple forum answer: https://forums.developer.apple.com/message/258839

NickCoder
  • 1,504
  • 2
  • 23
  • 35