dyld: Library not loaded: @rpath/libswiftCore.dylib

前端 未结 30 1438
小蘑菇
小蘑菇 2020-11-22 04:27

I am trying to run a Swift app on my iPhone 4s. It works fine on the simulator, and my friend can successfully run it on his iPhone 4s. I have iOS 8 and the official release

相关标签:
30条回答
  • 2020-11-22 05:06

    I solved by deleting the derived data and this time it worked correctly. Tried with Xcode 7.3.1GM

    0 讨论(0)
  • 2020-11-22 05:06

    There are lot's of answers there but might be my answer will help some one.

    I am having same issue, My app works fine on Simulator but on Device got crashed as I Lunches app and gives error as above. I have tried all answers and solutions . In My Case , My Project I am having multiple targets .I have created duplicate target B from target A. Target B works fine while target A got crashed. I am using different Image assets for each target. After searching and doing google I have found something which might help to someone.

    App stop crashing when I change name of Launch images assets for both apps . e.g Target A Launch Image asset name LaunchImage A . Target B Lunch Image asset name LaunchImage B and assigned properly in General Tab of each target . My Apps works fine.

    0 讨论(0)
  • 2020-11-22 05:06

    I'm using Xcode 8.3.3 and Xcode 9.2. The solution for me was to switch my default Xcode from 8 to 9 using Xcode Select:

    $ xcode-select --print-path

    $ sudo xcode-select -switch /Applications/Xcode-9.2.app

    Edit: Actually what seemed to help here was that Xcode 9.2 used the derived data from Xcode 8.3.3. Not a solution but at least it allows me to move forward with my work.

    0 讨论(0)
  • 2020-11-22 05:07

    I think it's a bug when certificates are generated directly from Xcode. To resolve (at least in Xcode 6.1 / 6A1052d):

    1. go to the Apple Developer website where certificates are managed: https://developer.apple.com/account/ios/certificate/certificateList.action
    2. select your certificate(s) (which should show "Managed by Xcode" under "Status") and "Revoke" it
    3. follow instructions here to manually generate a new certificate: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html#//apple_ref/doc/uid/TP40012582-CH31-SW32
    4. go to Xcode > Preferences > Accounts > [your Apple ID] > double-click your team name > hit refresh button to update certificates and provisioning profiles
    0 讨论(0)
  • 2020-11-22 05:07

    I was having this issue with running my Swift tests (but not my app). It turns out that the test needed to have more than @executable_path/Frameworks in it's Runpath Search Paths build setting for the test target. Setting the Runpath Search Paths to the following worked a charm for me:

    $(inherited)
    @executable_path/Frameworks
    @loader_path/Frameworks
    
    0 讨论(0)
  • 2020-11-22 05:07

    I have multiple version of Xcode installed at the same time. The framework was built with a newer version of Xcode. The app that I tried to compile was with an older version of Xcode. When I cleaned and compiled both the framework and the app with the same version of Xcode then things worked.

    0 讨论(0)
提交回复
热议问题