Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App with Swift Deploying to a Device Running on a Device

Anuj Verma
Anuj Verma
11,825 Points

Error when building on device

I am able to run the app in the simulator but when trying to run on device I get this error. The app gets to the launch screen then this is what I see in the console. Any help would be appreciated!

dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/94336830-57D3-4D9C-9592-14D44A771EFC/FunFacts.app/FunFacts Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/94336830-57D3-4D9C-9592-14D44A771EFC/FunFacts.app/Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x1000B0000, size=0x0018C000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/94336830-57D3-4D9C-9592-14D44A771EFC/FunFacts.app/Frameworks/libswiftCore.dylib

Running iOS 8.1.1 on device and XCode 6.1

cc Pasan Premaratne

6 Answers

Stuart Morris
Stuart Morris
2,062 Points

Yeah me too, getting the exact same error message. Got an account and everything!

Michael Hulet
Michael Hulet
47,913 Points

Make sure that you have signed up for a $99 per year iOS Developer Program membership, and you're logged into that account in Xcode. That's required to run the app on your device. Furthermore, if you have, you can update to the Xcode 6.2 beta and the iOS 8.2 beta as of yesterday

Anuj Verma
Anuj Verma
11,825 Points

I have signed up and paid and logged in. That is how I am able to select my iPhone and hit run in the first place. The app loads up to the launch screen on my device but then crashes.

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

I am having the same issue as Anuj. Just created an account and also signed in with it.

i'm in the exact same boat...getting the above message.

Keith Michelson
Keith Michelson
3,395 Points

Same problem for me. Im still on mavericks, what OS are you guys on?

I'm on mavericks as well...

Stuart Morris
Stuart Morris
2,062 Points

Hi all ive found uptrading to Yosemite fixed this for me! Cheers!

Keith Michelson
Keith Michelson
3,395 Points

Yeah, I just upgraded to Yosemite, fixed for me too. Now let's just hope my other software works with Yosemite.