0_abort_with_payload, when starting on real iPhone | Swift

Hello Guys,

since i installed the Firebase framework with Cocoapods, my App crashes when i start it on a real iPhone. My iPhone has the newest software and i did also tried it with multiple iPhones. I dont know why, but my app works perfectly on the simulator. I think the problem may be the signing and embedding of the frameworks, because if i try to embed and sign the frameworks in my project, i get the following error message:


Multiple commands produce '/Users/henri/Library/Developer/Xcode/DerivedData/Zeiterfassung_SU_Rendsburg-decchxyxmgolbxebhkvzzytikpcl/Build/Products/Debug-iphoneos/Zeiterfassung SU Rendsburg.app/Frameworks/leveldb.framework':

1) Target 'Zeiterfassung SU Rendsburg' has copy command from '/Users/henri/Library/Developer/Xcode/DerivedData/Zeiterfassung_SU_Rendsburg-decchxyxmgolbxebhkvzzytikpcl/Build/Products/Debug-iphoneos/leveldb.framework' to '/Users/henri/Library/Developer/Xcode/DerivedData/Zeiterfassung_SU_Rendsburg-decchxyxmgolbxebhkvzzytikpcl/Build/Products/Debug-iphoneos/Zeiterfassung SU Rendsburg.app/Frameworks/leveldb.framework'

2) That command depends on command in Target 'Zeiterfassung SU Rendsburg': script phase “[CP] Embed Pods Frameworks”


Heres the output of the app:


dyld: Library not loaded: @rpath/FBLPromises.framework/FBLPromises
  Referenced from: /private/var/containers/Bundle/Application/C8715466-8259-489C-8085-0F217F25750D/Zeiterfassung SU Rendsburg.app/Zeiterfassung SU Rendsburg
  Reason: no suitable image found.  Did find:
  /private/var/containers/Bundle/Application/C8715466-8259-489C-8085-0F217F25750D/Zeiterfassung SU Rendsburg.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for '/private/var/containers/Bundle/Application/C8715466-8259-489C-8085-0F217F25750D/Zeiterfassung SU Rendsburg.app/Frameworks/FBLPromises.framework/FBLPromises'

  /private/var/containers/Bundle/Application/C8715466-8259-489C-8085-0F217F25750D/Zeiterfassung SU Rendsburg.app/Frameworks/FBLPromises.framework/FBLPromises: stat() failed with errno=25
  /private/var/containers/Bundle/Application/C8715466-8259-489C-8085-0F217F25750D/Zeiterfassung SU Rendsburg.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for '/private/var/containers/Bundle/Application/C8715466-8259-489C-8085-0F217F25750D/Zeiterfassung SU Rendsburg.app/Frameworks/FBLPromises.framework/FBLPromises'

  /private/var/containers/Bundle/Application/C8715466-8259-489C-8085-0F217F25750D/Zeiterfassung SU Rendsburg.app/Frameworks/FBLPromises.framework/FBLPromises: stat() failed with errno=1
  /private/var/containers/Bundle/Application/C8715466-8259-489C-8085-0F217F25750D/Zeiterfassung SU Rendsburg.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for '/private/var/containers/Bundle/Application/C8715466-8259-489C-8085-0F217F25750D/Zeiterfassung SU Rendsburg.app/Frameworks/FBLPromises.framework/FBLPromises'

  /private/var/containers/Bundle/Application/C8715466-8259-489C-8085-0F217F25750D/Zeiterfassung SU Rendsburg.app/Frameworks/FBLPromises.framework/FBLPromises: stat() failed with errno=1
(lldb)




Does anybody know why this happens and how i could fix it? Thank you guys.


Kind regards

Henri

Replies

I think the problem may be the signing and embedding of the frameworks

I agree. Alas, there’s no much I can do to help you out here because that setup is all done using CocoaPods. My recommendation is that you escalate this via the support channel for that third-party tool.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

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. Was also seeing something about "code signature invalid" in the mix. Along the lines of this:

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.


MaybeI took too many steps but whatever I did worked! Also podfile looks like this :


platform :ios, '13.2'

target 'WalkBuddy' do
  use_frameworks!
  pod 'Mapbox-iOS-SDK', '~> 5.7.0'