After updating iOS, all applications using the framework stopped running on the device, but they run on the simulator

后端 未结 5 1360
半阙折子戏
半阙折子戏 2020-11-30 10:50

error:
{ dyld: Library not loaded: @rpath/Realm.framework/Realm Referenced from: /private/var/containers/Bundle/Application/43190AF8-F437-4B8F-9827-DDEA599AF6

相关标签:
5条回答
  • 2020-11-30 10:58

    Comment use_frameworks, then use use_modular_headers! instead.

    #use_frameworks!
    
    use_modular_headers!
    
    # Pods for NoteWithFireStore
    
    pod 'BoringSSL-GRPC'
    
    pod 'Firebase/Analytics'
    
    pod 'Firebase/Firestore'
    
    pod 'Firebase/Storage'
    
    pod 'BoringSSL-GRPC', '= 0.0.3', :modular_headers => false
    
    pod 'gRPC-Core', '= 1.21.0', :modular_headers => false
    

    tried on Xcode 11.4 and iOS 13.4 with Firebase and free develop account. This combination fix the issue

    0 讨论(0)
  • 2020-11-30 11:04

    Welp I faced a very similar problem. Did not need to pay my developer account renewal. Yup I'm currently on a free account. Updating to 13.4 and xcode 11.4 still was showing the same issue. So this is what I did:

    -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! No paid developer account! Oh and podfile...

    platform :ios, '13.2'
    
    target 'YourApp' do
      use_frameworks!
      pod 'Mapbox-iOS-SDK', '~> 5.7.0'
    
     
     target 'WalkBuddyTests' do
        inherit! :search_paths
        #pods for testing
    end
    end
    
    
    0 讨论(0)
  • 2020-11-30 11:05

    I had the same issue with realm, it would work on the simulator but crash instantly on the actual devices. It seems when updating to iOS 13.3.1 Apple changed the behaviour of free apple developer accounts, no longer allowing them to use embedded frameworks.

    The solution is to remove the use_frameworks! in your Podfile and replace it with use_modular_headers!

    e.g.

    target 'your_project_name' do
        use_modular_headers!
        pod 'RealmSwift'
    end
    

    This will include them as static libraries instead. I stumbled upon the solution in this GitHub issue: https://github.com/Alamofire/Alamofire/issues/3051

    0 讨论(0)
  • 2020-11-30 11:11

    I have been facing the same problem... It got fixed by adding:

    In you podfile:

    use_modular_headers!

    instead of

    use_frameworks!

    Good luck! I hope this works for you!

    0 讨论(0)
  • 2020-11-30 11:22

    Removing use_frameworks. It will break your Firebase pods. For projects that utilize Firebase pods, your solutions consist of the following..

    1. Downgrade your iOS device
    2. Create & pay for an Apple Developer Program
    3. Use the simulator and wait for future iOS updates that will hopefully once again allow free dev accounts to use Frameworks again..

    This is very often issue which needs to be eliminated by official sources

    0 讨论(0)
提交回复
热议问题