Firebase-ios-sdk: dyld library not loaded: GTMSessionFetcher

Created on 22 Sep 2017  路  13Comments  路  Source: firebase/firebase-ios-sdk

I'm running iOS 11, XCode9
I'm using cocoa pods and the latest version of firebase
The assembly error code

Studioso`main:
0x107292a60 <+0>: pushq %rbp
0x107292a61 <+1>: movq %rsp, %rbp
0x107292a64 <+4>: subq $0x20, %rsp
0x107292a68 <+8>: movl %edi, -0x4(%rbp)
0x107292a6b <+11>: movq %rsi, -0x10(%rbp)
0x107292a6f <+15>: callq 0x107292900 ; type metadata accessor for Studioso.AppDelegate at AppDelegate.swift
0x107292a74 <+20>: movq %rax, %rdi
0x107292a77 <+23>: callq 0x10742f60c ; symbol stub for: NSStringFromClass
0x107292a7c <+28>: movq %rax, %rdi
0x107292a7f <+31>: callq 0x10742fab0 ; symbol stub for: objc_retainAutoreleasedReturnValue
0x107292a84 <+36>: xorl %ecx, %ecx
0x107292a86 <+38>: movl %ecx, %edx
0x107292a88 <+40>: movl -0x4(%rbp), %edi
0x107292a8b <+43>: movq -0x10(%rbp), %rsi
0x107292a8f <+47>: movq %rax, %rcx
0x107292a92 <+50>: callq 0x10742f69c ; symbol stub for: UIApplicationMain
0x107292a97 <+55>: xorl %edi, %edi ;BREAK/Error
0x107292a99 <+57>: movl %eax, -0x14(%rbp)
0x107292a9c <+60>: movl %edi, %eax
0x107292a9e <+62>: addq $0x20, %rsp
0x107292aa2 <+66>: popq %rbp
0x107292aa3 <+67>: retq

heres the image version of that

screen shot 2017-09-22 at 10 59 31 am

this is the crash log

Incident Identifier: 7A8070C1-B020-4965-9AB5-B3C9DFA6C43F
CrashReporter Key:   6aaba91dbfb1f4032c15348876788003504290ff
Hardware Model:      iPhone7,2
Process:             Studioso [6105]
Path:                /private/var/containers/Bundle/Application/15EAF2C9-28EE-4954-9389-4D065A463330/Studioso.app/Studioso
Identifier:          com.studiosoapp.Studioso
Version:             1 (0.0.1)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      Exited process [6102]
Coalition:           com.studiosoapp.Studioso [1195]


Date/Time:           2017-09-22 10:00:19.8848 -0500
Launch Time:         2017-09-22 09:59:51.2294 -0500
OS Version:          iPhone OS 11.0 (15A372)
Baseband Version:    6.17.00
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 Crashed:
0   dyld                            0x0000000100efef1c __abort_with_payload + 8
1   dyld                            0x0000000100efe6f4 abort_with_payload_wrapper_internal + 100
2   dyld                            0x0000000100efe720 fcntl + 0
3   dyld                            0x0000000100ed4498 dyld::fastBindLazySymbol+ 17560 (ImageLoader**, unsigned long) + 0
4   dyld                            0x0000000100ed7714 dyld::_main+ 30484 (macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 7376
5   dyld                            0x0000000100ed121c _dyld_start + 68

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000001   x2: 0x000000016f5fe3d0   x3: 0x00000000000000a7
    x4: 0x000000016f5fdfd0   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x00000000000002f0
    x8: 0x0000000000000020   x9: 0x0000000000000009  x10: 0x6d6172462f707061  x11: 0x472f736b726f7765
   x12: 0x6172462f7070612e  x13: 0x2f736b726f77656d  x14: 0x69737365534d5447  x15: 0x6568637465466e6f
   x16: 0x0000000000000209  x17: 0x000000008000001f  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x000000016f5fdfd0  x21: 0x00000000000000a7  x22: 0x000000016f5fe3d0  x23: 0x0000000000000001
   x24: 0x0000000000000006  x25: 0x0000000100800000  x26: 0x0000000100f12000  x27: 0x0000000100f11f88
   x28: 0x000000016f5ff9d0   fp: 0x000000016f5fdfa0   lr: 0x0000000100efe6f4
    sp: 0x000000016f5fdf60   pc: 0x0000000100efef1c cpsr: 0x00000000

Binary Images:
0x100800000 - 0x100a33fff Studioso arm64  <8f1cb4a4cc7b34aaabc7a314733db5f2> /var/containers/Bundle/Application/15EAF2C9-28EE-4954-9389-4D065A463330/Studioso.app/Studioso
0x100ed0000 - 0x100f0ffff dyld arm64  <53a4ddc2fbaa3b44ba58024c7ca0729d> /usr/lib/dyld
0x181a74000 - 0x181acdfff libc++.1.dylib arm64  <b5750788b63b3612b8bbfb2da1e3dbca> /usr/lib/libc++.1.dylib
0x18226f000 - 0x18248ffff libicucore.A.dylib arm64  <f3544fde32dc3b9790b320e43af949d1> /usr/lib/libicucore.A.dylib
0x182490000 - 0x1824a1fff libz.1.dylib arm64  <3d5ad144ebf234f08f8fa6317ed61e38> /usr/lib/libz.1.dylib
0x1829df000 - 0x182b3dfff libsqlite3.dylib arm64  <2482d47050d53820ba2c94e7069eba3c> /usr/lib/libsqlite3.dylib
0x182b65000 - 0x182ec5fff CFNetwork arm64  <d800884ac3643fd3985b4f9901874f31> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x183d46000 - 0x184289fff CoreGraphics arm64  <9c5a4cc9cd6c30b8bd95ebe86faaedd6> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x185509000 - 0x185533fff CoreVideo arm64  <198c8bb37d7a35d2a02be30b4c908b99> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x1856cb000 - 0x185832fff CoreMedia arm64  <5ba648f76a753f938386f7fc9c53681d> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x187de1000 - 0x187fc7fff AVFoundation arm64  <6094de3d584930e38329c0058ffa0207> /System/Library/Frameworks/AVFoundation.framework/AVFoundation

EOF



Most helpful comment

the issue still exists

All 13 comments

We're need more information. The report shows the disassembly of the main function of your app which includes no references to Firebase.

We need to see at least a backtrace with Firebase and ideally a reproducible test case.

this is the crash log

Incident Identifier: 7A8070C1-B020-4965-9AB5-B3C9DFA6C43F
CrashReporter Key:   6aaba91dbfb1f4032c15348876788003504290ff
Hardware Model:      iPhone7,2
Process:             Studioso [6105]
Path:                /private/var/containers/Bundle/Application/15EAF2C9-28EE-4954-9389-4D065A463330/Studioso.app/Studioso
Identifier:          com.studiosoapp.Studioso
Version:             1 (0.0.1)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      Exited process [6102]
Coalition:           com.studiosoapp.Studioso [1195]


Date/Time:           2017-09-22 10:00:19.8848 -0500
Launch Time:         2017-09-22 09:59:51.2294 -0500
OS Version:          iPhone OS 11.0 (15A372)
Baseband Version:    6.17.00
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 Crashed:
0   dyld                            0x0000000100efef1c __abort_with_payload + 8
1   dyld                            0x0000000100efe6f4 abort_with_payload_wrapper_internal + 100
2   dyld                            0x0000000100efe720 fcntl + 0
3   dyld                            0x0000000100ed4498 dyld::fastBindLazySymbol+ 17560 (ImageLoader**, unsigned long) + 0
4   dyld                            0x0000000100ed7714 dyld::_main+ 30484 (macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 7376
5   dyld                            0x0000000100ed121c _dyld_start + 68

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000001   x2: 0x000000016f5fe3d0   x3: 0x00000000000000a7
    x4: 0x000000016f5fdfd0   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x00000000000002f0
    x8: 0x0000000000000020   x9: 0x0000000000000009  x10: 0x6d6172462f707061  x11: 0x472f736b726f7765
   x12: 0x6172462f7070612e  x13: 0x2f736b726f77656d  x14: 0x69737365534d5447  x15: 0x6568637465466e6f
   x16: 0x0000000000000209  x17: 0x000000008000001f  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x000000016f5fdfd0  x21: 0x00000000000000a7  x22: 0x000000016f5fe3d0  x23: 0x0000000000000001
   x24: 0x0000000000000006  x25: 0x0000000100800000  x26: 0x0000000100f12000  x27: 0x0000000100f11f88
   x28: 0x000000016f5ff9d0   fp: 0x000000016f5fdfa0   lr: 0x0000000100efe6f4
    sp: 0x000000016f5fdf60   pc: 0x0000000100efef1c cpsr: 0x00000000

Binary Images:
0x100800000 - 0x100a33fff Studioso arm64  <8f1cb4a4cc7b34aaabc7a314733db5f2> /var/containers/Bundle/Application/15EAF2C9-28EE-4954-9389-4D065A463330/Studioso.app/Studioso
0x100ed0000 - 0x100f0ffff dyld arm64  <53a4ddc2fbaa3b44ba58024c7ca0729d> /usr/lib/dyld
0x181a74000 - 0x181acdfff libc++.1.dylib arm64  <b5750788b63b3612b8bbfb2da1e3dbca> /usr/lib/libc++.1.dylib
0x18226f000 - 0x18248ffff libicucore.A.dylib arm64  <f3544fde32dc3b9790b320e43af949d1> /usr/lib/libicucore.A.dylib
0x182490000 - 0x1824a1fff libz.1.dylib arm64  <3d5ad144ebf234f08f8fa6317ed61e38> /usr/lib/libz.1.dylib
0x1829df000 - 0x182b3dfff libsqlite3.dylib arm64  <2482d47050d53820ba2c94e7069eba3c> /usr/lib/libsqlite3.dylib
0x182b65000 - 0x182ec5fff CFNetwork arm64  <d800884ac3643fd3985b4f9901874f31> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x183d46000 - 0x184289fff CoreGraphics arm64  <9c5a4cc9cd6c30b8bd95ebe86faaedd6> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x185509000 - 0x185533fff CoreVideo arm64  <198c8bb37d7a35d2a02be30b4c908b99> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x1856cb000 - 0x185832fff CoreMedia arm64  <5ba648f76a753f938386f7fc9c53681d> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x187de1000 - 0x187fc7fff AVFoundation arm64  <6094de3d584930e38329c0058ffa0207> /System/Library/Frameworks/AVFoundation.framework/AVFoundation

EOF

Whats a backtrace?
Is it this

dyld: Library not loaded: @rpath/GTMSessionFetcher.framework/GTMSessionFetcher
  Referenced from: /var/containers/Bundle/Application/F4A570B5-33B2-4288-80B6-E20F7771182A/Studioso.app/Studioso
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/F4A570B5-33B2-4288-80B6-E20F7771182A/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/F4A570B5-33B2-4288-80B6-E20F7771182A/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
    /private/var/containers/Bundle/Application/F4A570B5-33B2-4288-80B6-E20F7771182A/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/F4A570B5-33B2-4288-80B6-E20F7771182A/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
    /private/var/containers/Bundle/Application/F4A570B5-33B2-4288-80B6-E20F7771182A/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: stat() failed with errno=1
    /private/var/containers/Bundle/Application/F4A570B5-33B2-4288-80B6-E20F7771182A/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/F4A570B5-33B2-4288-80B6-E20F7771182A/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
    /private/var/containers/Bundle/Application/F4A570B5-33B2-4288-80B6-E20F7771182A/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: stat() failed with errno=1
(lldb) 

It seems your installation is broken somehow, and is missing the runtime search path that contains GTMSessionFetcher. Other libraries may also be missing, but dyld will abort on the first missing library it finds.

How are you integrating Firebase? Please include your CocoaPods version and the contents of your app target's Runtime Search Paths (under Build Settings).

This is from pod update

    Downloading dependencies
Using Firebase (4.2.0)
Using FirebaseAnalytics (4.0.3)
Using FirebaseAuth (4.2.0)
Using FirebaseCore (4.0.7)
Using FirebaseDatabase (4.0.3)
Using FirebaseInstanceID (2.0.3)
Using GTMSessionFetcher (1.1.11)
Using GoogleToolboxForMac (2.1.1)
Using UICircularProgressRing (1.7.2)
Using leveldb-library (1.18.3)
Using nanopb (0.3.8)
Generating Pods project
Integrating client project
Sending stats

The Pod version is 1.3.1

This is the Runtime
screen shot 2017-09-23 at 1 57 53 pm

Is Find Implicit Dependencies checked in the scheme?

See https://github.com/firebase/firebase-ios-sdk/issues/258#issuecomment-329476047

Its been checked

screen shot 2017-09-23 at 2 19 50 pm

I'm now getting this backtrace

dyld: Library not loaded: @rpath/leveldb.framework/leveldb
  Referenced from: /var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Studioso
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb: code signing blocked mmap() of '/private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb'
    /private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb: code signing blocked mmap() of '/private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb'
    /private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb: stat() failed with errno=1
    /private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb: code signing blocked mmap() of '/private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb'
    /private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb: stat() failed with errno=1
    /private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb: code signing blocked mmap() of '/private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb'
    /private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb: stat() failed with errno=1
    /private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb: code signing blocked mmap() of '/private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb'
    /private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb: stat() failed with errno=1
    /private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb: code signing blocked mmap() of '/private/var/containers/Bundle/Application/04076CF7-B5FE-4621-A617-929710978D30/Studioso.app/Frameworks/leveldb.framework/leveldb'
(lldb) 

I'm now using pod 1.4.0-Beta
Xcode 9
Swift 4

This is the same issue I mentioned before. You can double check where your dylibs are being built in the appropriate derived data build folder. If those paths aren't in your runtime search paths, dyld will fail to find them and raise an error.

Closing. Please reopen if there's still an issue.

the issue still exists

has anyone been able to solve this?
I'm legit going crazyyyy

I'm having the same issue

Was this page helpful?
0 / 5 - 0 ratings