App builds and runs without any problem. I Can archive the app but when I try to distribute for testing I get error: "Found an unexpected mach-o header code: 0x0987654"
When I digged deep in the console dump, I noticed warnings that I assume they are related to my problem:
Class PLCrashReportMachExceptionInfo is implemented in both /private/var/containers/Bundle/Application/xxx/Foo.app/Frameworks/DatadogCrashReporting.framework/DatadogCrashReporting and /var/containers/Bundle/Application/xxx/Foo.app/ One of the two will be used. Which one is undefined.
I have recently integrated RumSDK and when I remove RumSDK.xcframeworks from my app I dont get any errors and everything is solved, but Rum SDK is a dynamic library that needs to be embeded into the app. When I dont embed it app will crash because linker cant find the source. It has many dependencies that I assume some of them like DatadogCrashReporting.framework are nested dependencies. If any one can help me get out of misery I would really appreciate it.
my problem is very simmilar to this one: Xcode - Found an unexpected Mach-O header code: 0x72613c21 - Embedded API
I have tried many things, among them many times of cleaning build folder and driveddata folder and updating carthage ... so please dont give me these simple answers.
I have searched many hours to find a solution for these problems, there are many solutions for cocoa pod to remove the nested/duplicated frameworks from the bundle, however I use carthage and I dont see any solutions for this problem using carthage.
Here are the examples of the solutions that I searched for: Class is implemented in both, One of the two will be used. Which one is undefined
Found an unexpected Mach-O header code: 0x72613c21 in Xcode 7
Submitting to AppStore: Found an unexpected Mach-O header code: 0x72613c21
I also have another concole log:
malloc: nano zone abandoned due to inability to preallocate reserved vm space.
but I havent been able to solve this and dont know if they are related or not.