Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

dyld: Library not loaded: #196

Closed
DikeyKing opened this issue Mar 6, 2020 · 7 comments
Closed

dyld: Library not loaded: #196

DikeyKing opened this issue Mar 6, 2020 · 7 comments
Labels

Comments

@DikeyKing
Copy link

podfile:

def demo_pods  
    use_modular_headers!      
    pod 'SSZipArchive'    
    pod 'Mapbox-iOS-SDK',:modular_headers => true  
end   

target 'LightSDKDemo' do  
  use_modular_headers!  
  project '../LightSDKOrigin/LightSDKDemo.xcodeproj'  
  demo_pods  
  sdk_pods  
end  

error:

dyld: Library not loaded: @rpath/MapboxMobileEvents.framework/MapboxMobileEvents
  Referenced from: /private/var/containers/Bundle/Application/372C643A-3739-4B9C-BDAB-B6D4B36E3C7A/LightSDKDemo.app/Frameworks/Mapbox.framework/Mapbox
  Reason: image not found
Message from debugger: Terminated due to signal 6

Mapbox SDK versions: 5.7.0
iOS/macOS versions: 13.1.2/13.3
Device/simulator models: iPad Pro 12.9 / XR
Xcode version: Version 11.3.1 (11C504)

Is it related to apple's restriction?

@1ec5 1ec5 transferred this issue from mapbox/mapbox-gl-native Mar 6, 2020
@1ec5
Copy link
Contributor

1ec5 commented Mar 6, 2020

@julianrex can you confirm if this is related to #157?

@1ec5 1ec5 added the build label Mar 6, 2020
@DikeyKing
Copy link
Author

DikeyKing commented Mar 9, 2020

020-03-09 17:10:12.508776+0800 LightSDKDemo[335:11444] [DYMTLInitPlatform] platform initialization successful
Total pre-main time: 371.41 milliseconds (100.0%)
         dylib loading time: 191.04 milliseconds (51.4%)
        rebase/binding time:  27.85 milliseconds (7.5%)
            ObjC setup time:  22.33 milliseconds (6.0%)
           initializer time: 129.98 milliseconds (34.9%)
           slowest intializers :
             libSystem.B.dylib :   2.89 milliseconds (0.7%)
    libMainThreadChecker.dylib :  25.35 milliseconds (6.8%)
          libglInterpose.dylib :  33.95 milliseconds (9.1%)
         libMTLInterpose.dylib :  13.81 milliseconds (3.7%)
                        Mapbox :  16.48 milliseconds (4.4%)
                  LightSDKDemo :  41.88 milliseconds (11.2%)

Renew certificate or upgrade iOS to 13.4beta4 doesn't work for me.

Adding Mapbox manually solve my problem temporarily, but still I'd like to integrate mapbox with cocoapods.
I don't know if it's a apple's bug or weather cocoapods's

@julianrex
Copy link
Contributor

julianrex commented Mar 9, 2020

You shouldn't need to add MapboxMobileEvents manually with Cocoapods.

Can you confirm that you have a paid Apple developer account?

@DikeyKing
Copy link
Author

You shouldn't need to add MapboxMobileEvents manually with Cocoapods.

Can you confirm that you have a paid Apple developer account?

Yeah, it's a paid account.

@iNeedHelpX
Copy link

iNeedHelpX commented Mar 29, 2020

Hey I had a similar issue. i got a solution. my problem was this: for some reason app was showing up in simulator and on old iphone, but would just show black screen on this new iphone I added.

dyld: Library not loaded: @rpath/Mapbox.framework/Mapbox
Referenced from: /private/var/containers/Bundle/Application/EC52D3BB-17AC-4957-9AF5-EDC3860DC7A5/WalkBuddy.app/WalkBuddy
Reason: image not found

Mapbox SDK 5.7.0
ios version 13.4
xcode 11.4

-Deleted app off phone, cleaned build and removed old profiles(found in ~/Library/MobileDevice/Provisioning Profiles)

-Deleted everything in "iOS DeviceSupport" file found in '~/Library/Developer'.

-Cleaned derived data.

-In keychain I deleted all my certificates.

Also removed my account and re-added it upon re-starting xcode (IMO this might have done nothing, but worth adding). Restarted phone and xcode. App is up and running on my phone now! And no I do not have paid account right now.

@rtxsc
Copy link

rtxsc commented Apr 12, 2020

I've managed to solved problem #157
i came across this issue when my iPad Pro 10.5 was still at 13.3.1. After trying out suggestion by iNeedHelpX it was unsuccessful. Then I just updated my iPad to the latest 13.4.1 firmware and that's it! Problem solved.

macOS Catalina 10.15.3
iOS Developer University Program (Personal Team) Role User
CocoaPods Mapbox-iOS-SDK: 5.8.0 : use_frameworks!
iOS 13.3.1 = Failed
iOS 13.4.1 = Successful
Xcode Version 11.4 (11E146)

❤️ from Malaysia. Stay stay stay home. COVID-19 😷😢

@julianrex
Copy link
Contributor

Marking as a known issue, and solved by upgrading to 13.4.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants