Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry trying to strip unavailable frameworks #160

Closed
SpellChucker opened this issue Oct 25, 2019 · 4 comments
Closed

Sentry trying to strip unavailable frameworks #160

SpellChucker opened this issue Oct 25, 2019 · 4 comments

Comments

@SpellChucker
Copy link

SpellChucker commented Oct 25, 2019

The script execution phase on iOS for Sentry is trying to strip out invalid frameworks:

An excerpt of the error:

...
Executable is .../platforms/ios/build/emulator/my.app/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac
Extracting x86_64 from GoogleToolboxForMac
fatal error: lipo: input file (.../platforms/ios/build/emulator/my.app/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac) must be a fat file when the -extract option is specified
Merging extracted architectures: x86_64
fatal error: lipo: can't open input file: .../platforms/ios/build/emulator/my.app/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac-x86_64 (No such file or directory)
rm: .../platforms/ios/build/emulator/my.app/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac-x86_64: No such file or directory
Replacing original executable with thinned version
mv: rename .../platforms/ios/build/emulator/my.app/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac-merged to .../platforms/ios/build/emulator/my.app/Frameworks/GoogleToolboxForMac.framework/GoogleToolboxForMac: No such file or directory
Executable is .../platforms/ios/build/emulator/my.app/Frameworks/nanopb.framework/nanopb
Extracting x86_64 from nanopb
fatal error: lipo: input file (.../platforms/ios/build/emulator/my.app/Frameworks/nanopb.framework/nanopb) must be a fat file when the -extract option is specified
Merging extracted architectures: x86_64
fatal error: lipo: can't open input file: .../platforms/ios/build/emulator/my.app/Frameworks/nanopb.framework/nanopb-x86_64 (No such file or directory)
rm: .../platforms/ios/build/emulator/my.app/Frameworks/nanopb.framework/nanopb-x86_64: No such file or directory
Replacing original executable with thinned version
mv: rename .../platforms/ios/build/emulator/my.app/Frameworks/nanopb.framework/nanopb-merged to .../platforms/ios/build/emulator/my.app/Frameworks/nanopb.framework/nanopb: No such file or directory
...

It seems to be specifically failing on the nanopb, GoogleToolboxForMac, GoogleUtilities, GTMSessionFetcher, protobuf frameworks.

Any ideas?

@bryplano
Copy link

bryplano commented Nov 12, 2019

@SpellChucker - what Google-related libraries / plugins / deps do you have in your project? Saw this issue pop up working with someone with cordova-plugin-firebasex and sentry-cordova in an Ionic + Angular + Cordova project, not sure how to fix it other than remove the firebasex plugin (and haven't tried that yet).

@HazAT, any idea why this would be happening? Can try to provide a sample project - or at least reproduction steps - if you like.

@SpellChucker
Copy link
Author

I am using cordova-plugin-firebasex. I found that building the app using --release (cordova build ios --release) this does not happen. It only happens on dev builds.

@RedEars
Copy link

RedEars commented Feb 24, 2020

I had the same problem with the Facebook and Branch SDK Plugins.
I fixed it by moving the "Embed Pods Frameworks" Build Phase in XCode after the "Sentry strip unused archs from Framework" Build Phase.

@github-actions
Copy link

github-actions bot commented Apr 1, 2022

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants