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 trialAnuj Verma
11,825 PointsError 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
6 Answers
Stuart Morris
2,062 PointsYeah me too, getting the exact same error message. Got an account and everything!
Michael Hulet
47,913 PointsMake 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
11,825 PointsI 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.
Armando Flores
10,059 Points"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.
rajiv jenveja
2,405 Pointsi'm in the exact same boat...getting the above message.
Keith Michelson
3,395 PointsSame problem for me. Im still on mavericks, what OS are you guys on?
rajiv jenveja
2,405 PointsI'm on mavericks as well...
William Wylie-Modro
8,031 PointsIf that doesn't work, restart and update everything. (inc. installing Yosemite)
Stuart Morris
2,062 PointsHi all ive found uptrading to Yosemite fixed this for me! Cheers!
Keith Michelson
3,395 PointsYeah, I just upgraded to Yosemite, fixed for me too. Now let's just hope my other software works with Yosemite.