1 year ago

#293259

test-img

David Pears

M1 Mac, XCode 13.2.1 and banked-ios-sdk - throws "DYLD 1 Library missing" / Sentry error

When trying to install the 'banked' ios SDK (using these instructions:

https://developer.banked.com/docs/banked-ios-sdk )

I am getting an app crash.

Information suggests i need to install Sentry - which i have tried, but to no avail.

Any help greatly appreciated

  • M1 Mac (Montery V12.1)
  • XCode 13.2.1
  • banked-ios-sdk

When i run pod install it throws the error:

"DYLD 1 Library missing" / Sentry error

My podfile:

require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.0'

target 'APP_NAME' do

  pod 'Banked' 

  # Enables Expo modules
  use_expo_modules!
  post_integrate do |installer|
    begin
      expo_patch_react_imports!(installer)
    rescue => e
      Pod::UI.warn e
    end
  end

  config = use_native_modules!


  # Enables ReactNative
  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )



  # Enables Testing
  target 'systemSpendAppReactNativeOnM1Tests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
  #
  # use_flipper!() 
  use_flipper!({ 'Flipper' => '0.91.1', 'Flipper-Folly' => '~> 2.6', 'Flipper-RSocket' => '~> 1.4' })


  # Enables Silicon/M1 Mac's
  post_install do |installer|
    react_native_post_install(installer)

    installer.aggregate_targets.each do |aggregate_target| 
      aggregate_target.user_project.native_targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['LIBRARY_SEARCH_PATHS'] = ['$(SDKROOT)/usr/lib/swift', '$(inherited)']
        end
      end
      aggregate_target.user_project.save
    end

    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
       end
    end

    `sed -i -e  $'s/__IPHONE_10_0/__IPHONE_12_0/' #{installer.sandbox.root}/RCT-Folly/folly/portability/Time.h`
  end

end

The error i am receiving, app loads then crashes/closes after splash screen is:

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: DYLD 1 Library missing
Library not loaded: @rpath/Sentry.framework/Sentry
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/2B5AA6E3-D684-4EE7-B491-8C2CA7F10B21/data/Containers/Bundle/Application/668F833C-424C-4EBC-B3FF-C42E173138D2/APP_NAME.app/Frameworks/Banked.framework/Banked
Reason: tried: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/Sentry.framework/Sentry' (no such file), '/usr/lib/swift/Sentry.framework/Sentry' (no such file), '/Users/USER_NAME/Library/Developer/CoreSimulator/Devices/2B5AA6E3-D684-4EE7-B491-8C2CA7F10B21/data/Containers/Bundle/Application/668F833C-424C-4EBC-B3FF-C42E173138D2/systemSpendAppReactNativeOnM1.app/Frameworks/Sentry.framework/Sentry' (no such file), '/Users/USER_NAME/Library/Developer/CoreSimulator/Devices/2B5AA6E3-D684-4EE7-B491-8C2CA7F10B21/data/Containers/Bundle/Application/668F833C-424C-4EBC-B3FF-C42E1731
(terminated at launch; ignore backtrace)

cocoapods

apple-m1

dyld

podfile

react-native-sentry

0 Answers

Your Answer

Accepted video resources