mirror of
https://github.com/PlayCover/PlayCover.git
synced 2026-04-26 16:25:54 +03:00
[GH-ISSUE #691] [Bug]: Library not loaded error: incompatible platform #330
Labels
No labels
UI
app-support
bug
bug
documentation
duplicate
enhancement
game-support
good first issue
help wanted / caution
inactive
invalid
macos-beta
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PlayCover#330
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nghuyong on GitHub (Jan 9, 2023).
Original GitHub issue: https://github.com/PlayCover/PlayCover/issues/691
Describe the bug
install open the 小红书(redbook) app but quit unexpectedly.
Steps to reproduce
system version:

palycover version:

redbook app: https://decrypt.day/app/id741292507
install the 小红书(redbook) then open, you will meet the crash
Expected behaviour
Open the app normally
Crash log
What version of PlayCover are you using?
2.0.2
What version of macOS are you using?
Ventura (macOS 13)
Issue Language
@nghuyong commented on GitHub (Jan 10, 2023):
I test another app: https://decrypt.day/app/id477927812, meet the same question
@TheMoonThatRises commented on GitHub (Jan 10, 2023):
Does this error occur when launching the app or after login?
@nghuyong commented on GitHub (Jan 10, 2023):
"when launching the app"
@TheMoonThatRises commented on GitHub (Jan 10, 2023):
Have you tried the nightly build?
@nghuyong commented on GitHub (Jan 10, 2023):
here is the launch process:
https://user-images.githubusercontent.com/16462374/211451180-304a4242-037c-4f25-85a1-097643ab119d.mp4
@nghuyong commented on GitHub (Jan 10, 2023):
how to download the nightly build version
@TheMoonThatRises commented on GitHub (Jan 10, 2023):
https://github.com/PlayCover/PlayCover/actions/runs/3877130966
@nghuyong commented on GitHub (Jan 10, 2023):
the nightly version meet the same problem:
@nghuyong commented on GitHub (Jan 10, 2023):
I reinstall the ipa file , and the problem is the same
@TheMoonThatRises commented on GitHub (Jan 10, 2023):
Can you try running
vtool -set-build-version maccatalyst 11.0 14.0 -replace -output ~/Library/Containers/io.playcover.PlayCover/小红书.app/Frameworks/A.framework/A ~/Library/Containers/io.playcover.PlayCover/小红书.app/Frameworks/A.framework/Ain the terminal?@nghuyong commented on GitHub (Jan 10, 2023):
@TheMoonThatRises commented on GitHub (Jan 10, 2023):
Can you try running the app again?
@nghuyong commented on GitHub (Jan 10, 2023):
No, but the error is changed:
@TheMoonThatRises commented on GitHub (Jan 10, 2023):
Can you run
codesign -v -vvv ~/Library/Containers/io.playcover.PlayCover/小红书.app/Frameworks/A.framework/Aand show what it displays?@nghuyong commented on GitHub (Jan 10, 2023):
@TheMoonThatRises
@nghuyong commented on GitHub (Jan 10, 2023):
could you reproduce my problem
@TheMoonThatRises commented on GitHub (Jan 10, 2023):
I could not reproduce your problem. Did you happen to transfer your data from an another Mac onto the one you are currently using?
@nghuyong commented on GitHub (Jan 10, 2023):
Yes, I transfer the data from my older mac (not m1 pro)
@nghuyong commented on GitHub (Jan 10, 2023):
so, could I fix this problem now with this mac
@TheMoonThatRises commented on GitHub (Jan 10, 2023):
I am not sure, I personally do not have any experience with codesigning.
@ohaiibuzzle commented on GitHub (Jan 11, 2023):
@nghuyong Please run the following commands
Then run the app again and see if it works
@TheMoonThatRises commented on GitHub (Jan 11, 2023):
Also for more information on the issue, can you provide the first four bytes of the "broken" A framework file (to try to solve the first error you encountered)? This can be done withod -t x1 -N 4 ~/Library/Containers/io.playcover.PlayCover/小红书.app/Frameworks/A.framework/AActually can you provide me with a copy of the "broken" A framework file? I would like to play around with it to see what went wrong.
@nghuyong commented on GitHub (Jan 12, 2023):
sure, the following is the A framework in 小红书
A.framework.zip
the playcover version is : 2.0.2 (211)
System Integrity Protection: enabled
the whole crash log is
Thanks a lot !!!
@TheMoonThatRises commented on GitHub (Jan 12, 2023):
Hm, seems like all the files didn't get converted from iOS to MacCatalyst files. Can you close PlayCover (to get a clean log), re-open to re-install 小红书 through PlayCover, and send the logs (Menu Bar -> PlayCover -> Copy Logs)?
@nghuyong commented on GitHub (Jan 12, 2023):
sure, I uninstall the 小红书 and quit the PlayCover. Then re-open PlayCover and install 小红书 , and open 小红书. Here is the log from PlayCover: playcover.log
@TheMoonThatRises commented on GitHub (Jan 12, 2023):
For a quick manual work-around, you can manually run
for each of the framework files in
~/Library/Containers/io.playcover.PlayCover/小红书.app/Frameworks/(the file in the folders that end with.frameworkwith the same name as the framework folder) the same way @ohaiibuzzle showed. This should fix the issue.@nghuyong commented on GitHub (Jan 12, 2023):
That's cool! It works!
Thanks a lot!!
by the way, for another app, if I need the same process
@TheMoonThatRises commented on GitHub (Jan 12, 2023):
You might need to do the same process, but to my knowledge, this issue has not popped up before so it is hard to say.
@zanderp25 commented on GitHub (Jan 14, 2023):
Whoops, didn't know it would mark this as done...
@IsaacMarovitz commented on GitHub (Jan 18, 2023):
resolveValidMachOsseems to only select files with the.dylibextension. I will look into a better way to detect frameworks so they wont be missed@TheMoonThatRises commented on GitHub (Jan 18, 2023):
It also finds binary files (since
!url.pathExtension.isEmptyis also in the check), which are in.frameworkdirectories.@IsaacMarovitz commented on GitHub (Jan 23, 2023):
Fixed in latest nightly with re-implemented XCLT
@TheMoonThatRises commented on GitHub (Jan 23, 2023):
@nghuyong can you test the latest nightly to confirm that the issue is fixed?
@nghuyong commented on GitHub (Jan 24, 2023):
I try the latest successful nightly released, but it meet the same crash
https://github.com/PlayCover/PlayCover/actions/runs/3981219019
@TheMoonThatRises commented on GitHub (Feb 8, 2023):
Just to confirm, can you try installing and opening the app again on the latest Nightly to see if it works? If not, I'll reopen this issue.
@nghuyong commented on GitHub (Feb 8, 2023):
I try the latest nightly version, and meet this new problem:

@TheMoonThatRises commented on GitHub (Feb 8, 2023):
Can you open the app directly and show what the crash log is (you can do this by left-clicking the app -> Show in Finder and launch it)?
@nghuyong commented on GitHub (Feb 8, 2023):
@IsaacMarovitz commented on GitHub (Mar 17, 2023):
Cannot recreate this in latest nightly
@TheMoonThatRises commented on GitHub (Mar 17, 2023):
@nghuyong can you try again on the latest nightly? A lot has changed since the previous.
@GreenHandTo commented on GitHub (May 2, 2023):
@TheMoonThatRises
小红书runs normally on playcover version 2.0.5 and nighty build version 3.0.0 (342)@leeronr commented on GitHub (Jun 2, 2023):
@TheMoonThatRises I have the exact same issue with every app I install. Manual
vtool+codesignon frameworks does the trick; however I was under the impression that these issues had already been addressed and resolved (comments + closing by @IsaacMarovitz).PlayCover 3.0.0 (373) Nightly
macOS 13.4 @ M2 Pro
SIP disabled
@kratos9394 commented on GitHub (Oct 29, 2023):
vtool +codesign did work
@lacvietanh commented on GitHub (Aug 1, 2024):
I found solution for me:
cd [framework folder of app (follow crash report detail)]
for i in *.framework; do
file_path="$i/$(basename "$i" .framework)"
vtool -set-build-version maccatalyst 11.0 13.0 "$file_path" -o "$file_path" && codesign -fs- "$file_path"
done
everything wwork !!!
@fanbin1987 commented on GitHub (Feb 13, 2025):
我也遇到了同样的问题, @nghuyong 请帮帮我吧