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

I'm getting a Fatal Error when I try to run Fun Facts on my iPhone6 real device.

My app runs fine in the iphone 6 simulator. But when I select my real device, the "Fun Facts" splash screen appears on my phone, then xCode shows:

dyld`dyld_fatal_error: 0x120011088: brk #3

In the debug console it says:

dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/81304EF9-AF6A-4579-9716-20F4EAB98BDB/FunFacts.app/FunFacts Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/81304EF9-AF6A-4579-9716-20F4EAB98BDB/FunFacts.app/Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x1000E8000, size=0x0018C000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/81304EF9-AF6A-4579-9716-20F4EAB98BDB/FunFacts.app/Frameworks/libswiftCore.dylib (lldb)

3 Answers

Finally I got help on CodeMentor. I had to revoke and redo the certificate. It's a bug in Xcode.

Let's try some of these first

Try cleaning your build: command-shift-option-k

Restart xcode

If those don't work, you might want to go to this link http://stackoverflow.com/questions/24002836/dyld-library-not-loaded-rpath-libswift-stdlib-core-dylib

I tried restarting and cleaning, no luck. I did set "Embedded Content Contains Swift Code" from NO to YES, but error still occurs. So now I'm on Solution #4 from the link you provided about InHouse Certificates but I don't understand what that answer is referring to. I didn't sign up for an Enterprise account so I don't think that solution applies to me.

Not sure what to do.

Thanks

This is the best I could come up with. If this doesn't work, it's beyond my ability.

http://stackoverflow.com/questions/24333981/ios-app-with-framework-crashed-on-device-dyld-library-not-loaded-xcode-6-beta