Dyld: library not loaded: @ rpath / libswift_stdlib_core.dylib when working on iPhone

Update 2: This is an old beta related issue with iOS 8 and Xcode. The problem was that the standard Swift library was not included in the iOS 8 beta for iPhone 4s. The issue has been resolved in the release.

Update: I’m tired of errors and crashes related to beta software, so I decided to use reset my phone for iOS 7.1.1 and now the error is gone ... I have no idea what is happening, but I'm going to suppose its error since iOS 8 is still in beta. I will write a bug report with Apple and hope that it will be resolved with the next semester.


Like many other people before me, I get the following error message when launching the application on my iPhone (4S with iOS 8.0 beta 1):

dyld: Library not loaded: @rpath/libswift_stdlib_core.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/ CDC7263B-9F18-4369-87CC-F36DB5163B99/TESTPROJECT.app/TESTPROJECT Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/ CDC7263B-9F18-4369-87CC-F36DB5163B99/TESTPROJECT.app/Frameworks/ libswift_stdlib_core.dylib: mmap() error 1 at address=0x00206000, size=0x00128000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/ CDC7263B-9F18-4369-87CC-F36DB5163B99/TESTPROJECT.app/Frameworks/ libswift_stdlib_core.dylib 

When working on an iOS simulator (iPhone 4S) I get the following (many times):

 SetAppThreadPriority: setpriority failed with error 45 

- This is a new application project with one view, created from built-in templates with beta version of Xcode 6, without my own code. (Also happens with an empty application) - I already tried the solution found here (restarting Xcode)

I cannot find another way to move / access the required fast library.

+6
source share
7 answers

I assume that your iPhone 4S is lower than iOS 6. We also performed regression tests on the iPhone 4S on iOS 6 and 7, but everything was fine. Devices on iOS 5 and 5.1 had the same error as yours.

+2
source

For me, stopping and restarting Xcode made it go away.

+5
source

I ran into the same problem, and I think it could be because the application must be configured to dynamically load certain frameworks. In any case, changing the assembly configuration of the path "Path" to "@ executable_path / Frameworks" seems to fix the problem.

I assume that Xcode automatically installs this for new projects, but older projects may be required manually. In my senior project, it was empty.

+5
source

I hit this problem in a simulator. I tried some settings listed here http://ikevin.tw/?p=174 .

In general, it defines the module → Yes, the embedded content contains the Swift code → Yes, the name of the product module → [my product name].

These changes allowed me to start and run.

The trick is that after that I returned the changes to see which of them really changed the situation. After returning all of them, the application still starts. So it is completely incomprehensible what actually caused the launch of the application.

+3
source

I am having this problem using the Ad (hoc) mobile solution or production certificate. Switching to a development certificate and mobile software solved the problem.

+2
source

In 99% of cases when you get such an error when updating the beta version, this is a cache in the directories ~ / Library / Caches / com.apple.dt.Xcode *. Remove them and rebuild.

-1
source

I had the same problem in a research project. When I tried to build the device, I got an error. All I had to do was set the “Provisioning Profile” to “Code Signing” and it worked. enter image description here

-1
source

Source: https://habr.com/ru/post/970348/


All Articles