News for hackers. Stuff that matters.
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by mschuster91 on Friday July 10, 2020 @11:49AM (#23792754)
You can't mock it, that is the entire point. Simply loading the shared library of the SDK will execute the broken code.
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by adamparsons on Friday July 10, 2020 @12:57PM (#23793555)
90% of people in this thread think “native code” is a react plugin
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by vsareto on Friday July 10, 2020 @01:01PM (#23793598)
I don't, but I'm fairly sure there is a solution and others just don't want to try hard enough
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by kerbs on Friday July 10, 2020 @11:29PM (#23799217)
Can validate, no reasonable way.

Removed the SDK myself from a top 100 App Store app.

Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by vsareto on Friday July 10, 2020 @12:14PM (#23793023)
So an app (which you control), is told to load a shared library, and there's no way to handle that? Even by delaying the loading to only when it'll be used?
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by mschuster91 on Friday July 10, 2020 @01:18PM (#23793840)
It's not "is told", it is "it is writen in the binary itself that the kernel/libc runtime should load the shared library".
Re:App suddenly crashing on startup due to FBSDKRestrictiveD... by saagarjha on Friday July 10, 2020 @01:48PM (#23794210)
To be fair, you don't have to do it that way. (Library loading is done by dyld, FWIW.)