Xcode 10.2 Failed to Run App on Simulator with iOS < 10How to “add existing frameworks” in Xcode 4?How to download Xcode DMG or XIP file?Can I safely delete contents of Xcode Derived data folder?iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 BetaXcode process launch failed: SecurityXcode error “Could not find Developer Disk Image”Xcode 8, iOS 8 simulator with crash: “dyld: lazy symbol binding failed: Symbol not found: _objc_unsafeClaimAutoreleasedReturnValue”Objective-C method returning a dictionary of Class crashes in Xcode 10.2xcode 10.2 can't run iOS 8.1 simulator when add contacts.framework which set to optional, xcode will crash

What's the difference between a share and a stock?

Does order of events matter in Bayesian update?

To which airspace does the border of two adjacent airspaces belong to?

Why did the Joi advertisement trigger K?

Does the Scrying spell require you to have a clear path to the target in order to work?

Time to call the bluff

How can I oppose my advisor granting gift authorship to a collaborator?

What did Boris Johnson mean when he said "extra 34 billion going into the NHS"

Count rook moves 1D

What is the significance of 104%?

Japanese equivalent for "get to do something"?

Why do old games use flashing as means of showing damage?

Tiny image scraper for xkcd.com

Question about derivation of kinematics equations

Plotting level sets of the form f(x,y,c)==0

About ratio test

Which is the best password hashing algorithm in .NET Core?

std::tuple sizeof, is it a missed optimization?

Deleting millions of records on SQL Server 14.0

How did Gollum know Sauron was gathering the Haradrim to make war?

When making yogurt, why doesn't bad bacteria grow as well?

Strange formulas that gave rise to Koszul duality

Does POSIX guarantee the paths to any standard utilities?

Given a specific computer system, is it possible to estimate the actual precise run time of a piece of Assembly code



Xcode 10.2 Failed to Run App on Simulator with iOS


How to “add existing frameworks” in Xcode 4?How to download Xcode DMG or XIP file?Can I safely delete contents of Xcode Derived data folder?iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 BetaXcode process launch failed: SecurityXcode error “Could not find Developer Disk Image”Xcode 8, iOS 8 simulator with crash: “dyld: lazy symbol binding failed: Symbol not found: _objc_unsafeClaimAutoreleasedReturnValue”Objective-C method returning a dictionary of Class crashes in Xcode 10.2xcode 10.2 can't run iOS 8.1 simulator when add contacts.framework which set to optional, xcode will crash






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








53















I was playing around with Xcode 10.2 since the update and when I try to run my app on ANY simulator with iOS version less than 10, the simulator will not start and crash then show the error below:




dyld: Library not loaded: /usr/lib/libauto.dylib Referenced from:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Reason: no suitable image found. Did find: /usr/lib/libauto.dylib:
mach-o, but not built for iOS simulator




I tried to create another new project fresh without touching anything, set the deployment target to iOS 9 and run on iOS 9 simulator again, same error was shown.



UPDATE



It seems like this issue only occur when your code base contain swift. Created a new project with objective c code base did not crash the simulator. For swift yes.



SUMMARY



  1. Xcode 10.2 contain swift code unable to run app on simulator with iOS 9

  2. I have done all the cleaning and delete derive data and the issue still persist.

Anyone has any idea ?



FINAL UPDATE



Apple just release Xcode 10.2.1 and it is part of the known issue for simulator, please refer to the link below for the workaround/fix:



https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes



Appreciate @russbishop 's reply, answer accepted










share|improve this question


























  • I have exactly the same problem, same Xcode version. Tried cleaning / reinstalling. Even tried some magic with provisioning profile / certificates. Still does not work.

    – Konstantin
    Mar 28 at 11:47











  • I have the same problem. :(

    – Michel Marqués
    Mar 29 at 14:09











  • I have same issue

    – alexander.pan
    Apr 6 at 3:40











  • Does this bug only apply to simulator, or will it also break on an iOS 9.3 device?

    – Bridger Maxwell
    Apr 14 at 14:21











  • It worked with real device 9.3.5. But not work with the simulator.

    – ko2ic
    Apr 15 at 7:03

















53















I was playing around with Xcode 10.2 since the update and when I try to run my app on ANY simulator with iOS version less than 10, the simulator will not start and crash then show the error below:




dyld: Library not loaded: /usr/lib/libauto.dylib Referenced from:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Reason: no suitable image found. Did find: /usr/lib/libauto.dylib:
mach-o, but not built for iOS simulator




I tried to create another new project fresh without touching anything, set the deployment target to iOS 9 and run on iOS 9 simulator again, same error was shown.



UPDATE



It seems like this issue only occur when your code base contain swift. Created a new project with objective c code base did not crash the simulator. For swift yes.



SUMMARY



  1. Xcode 10.2 contain swift code unable to run app on simulator with iOS 9

  2. I have done all the cleaning and delete derive data and the issue still persist.

Anyone has any idea ?



FINAL UPDATE



Apple just release Xcode 10.2.1 and it is part of the known issue for simulator, please refer to the link below for the workaround/fix:



https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes



Appreciate @russbishop 's reply, answer accepted










share|improve this question


























  • I have exactly the same problem, same Xcode version. Tried cleaning / reinstalling. Even tried some magic with provisioning profile / certificates. Still does not work.

    – Konstantin
    Mar 28 at 11:47











  • I have the same problem. :(

    – Michel Marqués
    Mar 29 at 14:09











  • I have same issue

    – alexander.pan
    Apr 6 at 3:40











  • Does this bug only apply to simulator, or will it also break on an iOS 9.3 device?

    – Bridger Maxwell
    Apr 14 at 14:21











  • It worked with real device 9.3.5. But not work with the simulator.

    – ko2ic
    Apr 15 at 7:03













53












53








53


16






I was playing around with Xcode 10.2 since the update and when I try to run my app on ANY simulator with iOS version less than 10, the simulator will not start and crash then show the error below:




dyld: Library not loaded: /usr/lib/libauto.dylib Referenced from:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Reason: no suitable image found. Did find: /usr/lib/libauto.dylib:
mach-o, but not built for iOS simulator




I tried to create another new project fresh without touching anything, set the deployment target to iOS 9 and run on iOS 9 simulator again, same error was shown.



UPDATE



It seems like this issue only occur when your code base contain swift. Created a new project with objective c code base did not crash the simulator. For swift yes.



SUMMARY



  1. Xcode 10.2 contain swift code unable to run app on simulator with iOS 9

  2. I have done all the cleaning and delete derive data and the issue still persist.

Anyone has any idea ?



FINAL UPDATE



Apple just release Xcode 10.2.1 and it is part of the known issue for simulator, please refer to the link below for the workaround/fix:



https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes



Appreciate @russbishop 's reply, answer accepted










share|improve this question
















I was playing around with Xcode 10.2 since the update and when I try to run my app on ANY simulator with iOS version less than 10, the simulator will not start and crash then show the error below:




dyld: Library not loaded: /usr/lib/libauto.dylib Referenced from:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Reason: no suitable image found. Did find: /usr/lib/libauto.dylib:
mach-o, but not built for iOS simulator




I tried to create another new project fresh without touching anything, set the deployment target to iOS 9 and run on iOS 9 simulator again, same error was shown.



UPDATE



It seems like this issue only occur when your code base contain swift. Created a new project with objective c code base did not crash the simulator. For swift yes.



SUMMARY



  1. Xcode 10.2 contain swift code unable to run app on simulator with iOS 9

  2. I have done all the cleaning and delete derive data and the issue still persist.

Anyone has any idea ?



FINAL UPDATE



Apple just release Xcode 10.2.1 and it is part of the known issue for simulator, please refer to the link below for the workaround/fix:



https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes



Appreciate @russbishop 's reply, answer accepted







ios xcode dyld xcode10.2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 18 at 0:57







JyTee

















asked Mar 28 at 1:58









JyTeeJyTee

3783 silver badges7 bronze badges




3783 silver badges7 bronze badges















  • I have exactly the same problem, same Xcode version. Tried cleaning / reinstalling. Even tried some magic with provisioning profile / certificates. Still does not work.

    – Konstantin
    Mar 28 at 11:47











  • I have the same problem. :(

    – Michel Marqués
    Mar 29 at 14:09











  • I have same issue

    – alexander.pan
    Apr 6 at 3:40











  • Does this bug only apply to simulator, or will it also break on an iOS 9.3 device?

    – Bridger Maxwell
    Apr 14 at 14:21











  • It worked with real device 9.3.5. But not work with the simulator.

    – ko2ic
    Apr 15 at 7:03

















  • I have exactly the same problem, same Xcode version. Tried cleaning / reinstalling. Even tried some magic with provisioning profile / certificates. Still does not work.

    – Konstantin
    Mar 28 at 11:47











  • I have the same problem. :(

    – Michel Marqués
    Mar 29 at 14:09











  • I have same issue

    – alexander.pan
    Apr 6 at 3:40











  • Does this bug only apply to simulator, or will it also break on an iOS 9.3 device?

    – Bridger Maxwell
    Apr 14 at 14:21











  • It worked with real device 9.3.5. But not work with the simulator.

    – ko2ic
    Apr 15 at 7:03
















I have exactly the same problem, same Xcode version. Tried cleaning / reinstalling. Even tried some magic with provisioning profile / certificates. Still does not work.

– Konstantin
Mar 28 at 11:47





I have exactly the same problem, same Xcode version. Tried cleaning / reinstalling. Even tried some magic with provisioning profile / certificates. Still does not work.

– Konstantin
Mar 28 at 11:47













I have the same problem. :(

– Michel Marqués
Mar 29 at 14:09





I have the same problem. :(

– Michel Marqués
Mar 29 at 14:09













I have same issue

– alexander.pan
Apr 6 at 3:40





I have same issue

– alexander.pan
Apr 6 at 3:40













Does this bug only apply to simulator, or will it also break on an iOS 9.3 device?

– Bridger Maxwell
Apr 14 at 14:21





Does this bug only apply to simulator, or will it also break on an iOS 9.3 device?

– Bridger Maxwell
Apr 14 at 14:21













It worked with real device 9.3.5. But not work with the simulator.

– ko2ic
Apr 15 at 7:03





It worked with real device 9.3.5. But not work with the simulator.

– ko2ic
Apr 15 at 7:03












6 Answers
6






active

oldest

votes


















76
















This is a known bug affecting iOS 8.x and 9.x. You can work around it by creating /usr/lib/swift directories in the relevant simulator runtime root.



Downloaded simulator runtimes are located in /Library/Developer/CoreSimulator/Profiles/Runtimes.



For example, to fix the iOS 9.3 simulator:



sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'





share|improve this answer






















  • 2





    Before running mkdir, make sure that the 'iOS 9.3.simruntime' does not exists already. For me, the '.../RuntimeRoot/usr/lib/swift' was missing the 'swift' folder. Simply navigating to '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib' and creating a dir for 'swift' fix it.

    – bauerMusic
    May 23 at 11:58











  • I've tried countless solutions and only this one worked. Thank you very much!

    – Fan Jin
    Aug 3 at 18:39


















6
















Me also got the same problem when run in iOS 9.0 simulator.



From https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes



Simulators for iOS 9.3 and earlier might fail to launch Swift apps with the message: “dyld: Library not loaded: /usr/lib/libauto.dylib”. (49326587)
Workaround: Run the following command in Terminal for the relevant version of iOS:



sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'


For this apple given above solution in that link.



Simply



--> open Terminal



--> Type this line with your required version (In my case i changed into iOS 9.3 to iOS 9.0)



Ex: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'



--> Enter password



--> Now clean Xcode and run again



This above solution worked for me.






share|improve this answer
































    2
















    Still get this bug with Xcode 10.3. (Skipped over 10.2.)






    share|improve this answer






















    • 1





      It's not Swift 10.3

      – iOS
      Aug 14 at 9:16











    • thnks iOS -- edited to Xcode 10.3

      – Hugo F
      Aug 15 at 10:35


















    1
















    A rather annoying workaround: use Xcode 10.1 to deploy on 9.x simulators for now. It's the only way I've been able to get around this.






    share|improve this answer




















    • 1





      won't work if anyone's project is ported to swift 5.

      – Ratul Sharker
      May 6 at 3:01






    • 1





      Yeah great point. Just refer to the top answer and the official work around: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'

      – cumanzor
      May 7 at 14:47


















    1
















    This seems like an iOS Simulator bug. I see this happening on simulators with iOS 12.0 but not on those with 12.4.






    share|improve this answer

























    • This saved my sanity!! Yes, it seems to be a simulator 12.0 bug only.

      – user1366265
      Aug 16 at 16:58


















    0
















    Updating to Xcode 10.3 has fixed it for me.






    share|improve this answer



























      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55389080%2fxcode-10-2-failed-to-run-app-on-simulator-with-ios-10%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      6 Answers
      6






      active

      oldest

      votes








      6 Answers
      6






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      76
















      This is a known bug affecting iOS 8.x and 9.x. You can work around it by creating /usr/lib/swift directories in the relevant simulator runtime root.



      Downloaded simulator runtimes are located in /Library/Developer/CoreSimulator/Profiles/Runtimes.



      For example, to fix the iOS 9.3 simulator:



      sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'





      share|improve this answer






















      • 2





        Before running mkdir, make sure that the 'iOS 9.3.simruntime' does not exists already. For me, the '.../RuntimeRoot/usr/lib/swift' was missing the 'swift' folder. Simply navigating to '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib' and creating a dir for 'swift' fix it.

        – bauerMusic
        May 23 at 11:58











      • I've tried countless solutions and only this one worked. Thank you very much!

        – Fan Jin
        Aug 3 at 18:39















      76
















      This is a known bug affecting iOS 8.x and 9.x. You can work around it by creating /usr/lib/swift directories in the relevant simulator runtime root.



      Downloaded simulator runtimes are located in /Library/Developer/CoreSimulator/Profiles/Runtimes.



      For example, to fix the iOS 9.3 simulator:



      sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'





      share|improve this answer






















      • 2





        Before running mkdir, make sure that the 'iOS 9.3.simruntime' does not exists already. For me, the '.../RuntimeRoot/usr/lib/swift' was missing the 'swift' folder. Simply navigating to '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib' and creating a dir for 'swift' fix it.

        – bauerMusic
        May 23 at 11:58











      • I've tried countless solutions and only this one worked. Thank you very much!

        – Fan Jin
        Aug 3 at 18:39













      76














      76










      76









      This is a known bug affecting iOS 8.x and 9.x. You can work around it by creating /usr/lib/swift directories in the relevant simulator runtime root.



      Downloaded simulator runtimes are located in /Library/Developer/CoreSimulator/Profiles/Runtimes.



      For example, to fix the iOS 9.3 simulator:



      sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'





      share|improve this answer















      This is a known bug affecting iOS 8.x and 9.x. You can work around it by creating /usr/lib/swift directories in the relevant simulator runtime root.



      Downloaded simulator runtimes are located in /Library/Developer/CoreSimulator/Profiles/Runtimes.



      For example, to fix the iOS 9.3 simulator:



      sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Apr 20 at 1:29

























      answered Apr 16 at 17:28









      russbishoprussbishop

      11.2k4 gold badges45 silver badges62 bronze badges




      11.2k4 gold badges45 silver badges62 bronze badges










      • 2





        Before running mkdir, make sure that the 'iOS 9.3.simruntime' does not exists already. For me, the '.../RuntimeRoot/usr/lib/swift' was missing the 'swift' folder. Simply navigating to '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib' and creating a dir for 'swift' fix it.

        – bauerMusic
        May 23 at 11:58











      • I've tried countless solutions and only this one worked. Thank you very much!

        – Fan Jin
        Aug 3 at 18:39












      • 2





        Before running mkdir, make sure that the 'iOS 9.3.simruntime' does not exists already. For me, the '.../RuntimeRoot/usr/lib/swift' was missing the 'swift' folder. Simply navigating to '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib' and creating a dir for 'swift' fix it.

        – bauerMusic
        May 23 at 11:58











      • I've tried countless solutions and only this one worked. Thank you very much!

        – Fan Jin
        Aug 3 at 18:39







      2




      2





      Before running mkdir, make sure that the 'iOS 9.3.simruntime' does not exists already. For me, the '.../RuntimeRoot/usr/lib/swift' was missing the 'swift' folder. Simply navigating to '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib' and creating a dir for 'swift' fix it.

      – bauerMusic
      May 23 at 11:58





      Before running mkdir, make sure that the 'iOS 9.3.simruntime' does not exists already. For me, the '.../RuntimeRoot/usr/lib/swift' was missing the 'swift' folder. Simply navigating to '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib' and creating a dir for 'swift' fix it.

      – bauerMusic
      May 23 at 11:58













      I've tried countless solutions and only this one worked. Thank you very much!

      – Fan Jin
      Aug 3 at 18:39





      I've tried countless solutions and only this one worked. Thank you very much!

      – Fan Jin
      Aug 3 at 18:39













      6
















      Me also got the same problem when run in iOS 9.0 simulator.



      From https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes



      Simulators for iOS 9.3 and earlier might fail to launch Swift apps with the message: “dyld: Library not loaded: /usr/lib/libauto.dylib”. (49326587)
      Workaround: Run the following command in Terminal for the relevant version of iOS:



      sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'


      For this apple given above solution in that link.



      Simply



      --> open Terminal



      --> Type this line with your required version (In my case i changed into iOS 9.3 to iOS 9.0)



      Ex: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'



      --> Enter password



      --> Now clean Xcode and run again



      This above solution worked for me.






      share|improve this answer





























        6
















        Me also got the same problem when run in iOS 9.0 simulator.



        From https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes



        Simulators for iOS 9.3 and earlier might fail to launch Swift apps with the message: “dyld: Library not loaded: /usr/lib/libauto.dylib”. (49326587)
        Workaround: Run the following command in Terminal for the relevant version of iOS:



        sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'


        For this apple given above solution in that link.



        Simply



        --> open Terminal



        --> Type this line with your required version (In my case i changed into iOS 9.3 to iOS 9.0)



        Ex: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'



        --> Enter password



        --> Now clean Xcode and run again



        This above solution worked for me.






        share|improve this answer



























          6














          6










          6









          Me also got the same problem when run in iOS 9.0 simulator.



          From https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes



          Simulators for iOS 9.3 and earlier might fail to launch Swift apps with the message: “dyld: Library not loaded: /usr/lib/libauto.dylib”. (49326587)
          Workaround: Run the following command in Terminal for the relevant version of iOS:



          sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'


          For this apple given above solution in that link.



          Simply



          --> open Terminal



          --> Type this line with your required version (In my case i changed into iOS 9.3 to iOS 9.0)



          Ex: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'



          --> Enter password



          --> Now clean Xcode and run again



          This above solution worked for me.






          share|improve this answer













          Me also got the same problem when run in iOS 9.0 simulator.



          From https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes



          Simulators for iOS 9.3 and earlier might fail to launch Swift apps with the message: “dyld: Library not loaded: /usr/lib/libauto.dylib”. (49326587)
          Workaround: Run the following command in Terminal for the relevant version of iOS:



          sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'


          For this apple given above solution in that link.



          Simply



          --> open Terminal



          --> Type this line with your required version (In my case i changed into iOS 9.3 to iOS 9.0)



          Ex: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'



          --> Enter password



          --> Now clean Xcode and run again



          This above solution worked for me.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 18 at 11:08









          iOSiOS

          4,8662 gold badges38 silver badges63 bronze badges




          4,8662 gold badges38 silver badges63 bronze badges
























              2
















              Still get this bug with Xcode 10.3. (Skipped over 10.2.)






              share|improve this answer






















              • 1





                It's not Swift 10.3

                – iOS
                Aug 14 at 9:16











              • thnks iOS -- edited to Xcode 10.3

                – Hugo F
                Aug 15 at 10:35















              2
















              Still get this bug with Xcode 10.3. (Skipped over 10.2.)






              share|improve this answer






















              • 1





                It's not Swift 10.3

                – iOS
                Aug 14 at 9:16











              • thnks iOS -- edited to Xcode 10.3

                – Hugo F
                Aug 15 at 10:35













              2














              2










              2









              Still get this bug with Xcode 10.3. (Skipped over 10.2.)






              share|improve this answer















              Still get this bug with Xcode 10.3. (Skipped over 10.2.)







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Aug 15 at 10:32

























              answered Jul 28 at 16:50









              Hugo FHugo F

              3812 silver badges7 bronze badges




              3812 silver badges7 bronze badges










              • 1





                It's not Swift 10.3

                – iOS
                Aug 14 at 9:16











              • thnks iOS -- edited to Xcode 10.3

                – Hugo F
                Aug 15 at 10:35












              • 1





                It's not Swift 10.3

                – iOS
                Aug 14 at 9:16











              • thnks iOS -- edited to Xcode 10.3

                – Hugo F
                Aug 15 at 10:35







              1




              1





              It's not Swift 10.3

              – iOS
              Aug 14 at 9:16





              It's not Swift 10.3

              – iOS
              Aug 14 at 9:16













              thnks iOS -- edited to Xcode 10.3

              – Hugo F
              Aug 15 at 10:35





              thnks iOS -- edited to Xcode 10.3

              – Hugo F
              Aug 15 at 10:35











              1
















              A rather annoying workaround: use Xcode 10.1 to deploy on 9.x simulators for now. It's the only way I've been able to get around this.






              share|improve this answer




















              • 1





                won't work if anyone's project is ported to swift 5.

                – Ratul Sharker
                May 6 at 3:01






              • 1





                Yeah great point. Just refer to the top answer and the official work around: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'

                – cumanzor
                May 7 at 14:47















              1
















              A rather annoying workaround: use Xcode 10.1 to deploy on 9.x simulators for now. It's the only way I've been able to get around this.






              share|improve this answer




















              • 1





                won't work if anyone's project is ported to swift 5.

                – Ratul Sharker
                May 6 at 3:01






              • 1





                Yeah great point. Just refer to the top answer and the official work around: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'

                – cumanzor
                May 7 at 14:47













              1














              1










              1









              A rather annoying workaround: use Xcode 10.1 to deploy on 9.x simulators for now. It's the only way I've been able to get around this.






              share|improve this answer













              A rather annoying workaround: use Xcode 10.1 to deploy on 9.x simulators for now. It's the only way I've been able to get around this.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 29 at 20:21









              cumanzorcumanzor

              967 bronze badges




              967 bronze badges










              • 1





                won't work if anyone's project is ported to swift 5.

                – Ratul Sharker
                May 6 at 3:01






              • 1





                Yeah great point. Just refer to the top answer and the official work around: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'

                – cumanzor
                May 7 at 14:47












              • 1





                won't work if anyone's project is ported to swift 5.

                – Ratul Sharker
                May 6 at 3:01






              • 1





                Yeah great point. Just refer to the top answer and the official work around: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'

                – cumanzor
                May 7 at 14:47







              1




              1





              won't work if anyone's project is ported to swift 5.

              – Ratul Sharker
              May 6 at 3:01





              won't work if anyone's project is ported to swift 5.

              – Ratul Sharker
              May 6 at 3:01




              1




              1





              Yeah great point. Just refer to the top answer and the official work around: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'

              – cumanzor
              May 7 at 14:47





              Yeah great point. Just refer to the top answer and the official work around: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'

              – cumanzor
              May 7 at 14:47











              1
















              This seems like an iOS Simulator bug. I see this happening on simulators with iOS 12.0 but not on those with 12.4.






              share|improve this answer

























              • This saved my sanity!! Yes, it seems to be a simulator 12.0 bug only.

                – user1366265
                Aug 16 at 16:58















              1
















              This seems like an iOS Simulator bug. I see this happening on simulators with iOS 12.0 but not on those with 12.4.






              share|improve this answer

























              • This saved my sanity!! Yes, it seems to be a simulator 12.0 bug only.

                – user1366265
                Aug 16 at 16:58













              1














              1










              1









              This seems like an iOS Simulator bug. I see this happening on simulators with iOS 12.0 but not on those with 12.4.






              share|improve this answer













              This seems like an iOS Simulator bug. I see this happening on simulators with iOS 12.0 but not on those with 12.4.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Aug 7 at 9:08









              Mihai DamianMihai Damian

              6,2168 gold badges48 silver badges77 bronze badges




              6,2168 gold badges48 silver badges77 bronze badges















              • This saved my sanity!! Yes, it seems to be a simulator 12.0 bug only.

                – user1366265
                Aug 16 at 16:58

















              • This saved my sanity!! Yes, it seems to be a simulator 12.0 bug only.

                – user1366265
                Aug 16 at 16:58
















              This saved my sanity!! Yes, it seems to be a simulator 12.0 bug only.

              – user1366265
              Aug 16 at 16:58





              This saved my sanity!! Yes, it seems to be a simulator 12.0 bug only.

              – user1366265
              Aug 16 at 16:58











              0
















              Updating to Xcode 10.3 has fixed it for me.






              share|improve this answer





























                0
















                Updating to Xcode 10.3 has fixed it for me.






                share|improve this answer



























                  0














                  0










                  0









                  Updating to Xcode 10.3 has fixed it for me.






                  share|improve this answer













                  Updating to Xcode 10.3 has fixed it for me.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jul 23 at 14:30









                  Hino BHino B

                  12 bronze badges




                  12 bronze badges






























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55389080%2fxcode-10-2-failed-to-run-app-on-simulator-with-ios-10%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                      용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                      155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해