[GH-ISSUE #1615] [Bug]: Framework not converted to MacCatalyst type #1011

Open
opened 2026-03-03 19:02:59 +03:00 by kerem · 3 comments
Owner

Originally created by @lacvietanh on GitHub (Jul 30, 2024).
Original GitHub issue: https://github.com/PlayCover/PlayCover/issues/1615

Describe the bug

Any app run will crash:

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/AFNetworking.framework/AFNetworking
Referenced from: <B58EDFD9-FB34-3AE6-B99B-EE15FF52083A> /Users/USER/Library/Containers/io.playcover.PlayCover/*/com.garena.gamecenter.app/Garena
Reason: tried: '/usr/lib/swift/AFNetworking.framework/AFNetworking' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/AFNetworking.framework/AFNetworking' (no such file), '/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking' (mach-o file (/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking), but incompatible platform (have 'iOS', need 'MacCatalyst')), '/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking' (mach-o file (/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.game
(terminated at launch; ignore backtrace)

I tried download AFNetworking from github -> build -> but can not move to /usr/lib/swift/
(SIP is disabled)
i tried put AFNetworking into /Library/Frameworks/ and export DYLD_FALLBACK_LIBRARY_PATH=/Library/Frameworks/
not work

Steps to reproduce

Open any app inside Playcover (try reinstall playcover/reinstall playtool / reinstall app)

Expected behaviour

run app normally

Crash log

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Garena [5827]
Path:                  /Users/USER/*/Garena.app/Garena
Identifier:            com.garena.gamecenter
Version:               2.9.12 (2.9.12)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               502

Date/Time:             2024-07-31 02:30:27.1611 +0700
OS Version:            macOS 13.6.7 (22G720)
Report Version:        12
Anonymous UUID:        A8922E08-74CA-19E8-59E1-106195EC04E3


Time Awake Since Boot: 1500 seconds

System Integrity Protection: disabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/AFNetworking.framework/AFNetworking
Referenced from: <B58EDFD9-FB34-3AE6-B99B-EE15FF52083A> /Users/USER/Library/Containers/io.playcover.PlayCover/*/com.garena.gamecenter.app/Garena
Reason: tried: '/usr/lib/swift/AFNetworking.framework/AFNetworking' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/AFNetworking.framework/AFNetworking' (no such file), '/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking' (mach-o file (/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking), but incompatible platform (have 'iOS', need 'MacCatalyst')), '/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking' (mach-o file (/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.game
(terminated at launch; ignore backtrace)

What version of PlayCover are you using?

3.0.0

What version of macOS are you using?

Ventura (macOS 13)

Issue Language

  • Yes my issue is written in English
Originally created by @lacvietanh on GitHub (Jul 30, 2024). Original GitHub issue: https://github.com/PlayCover/PlayCover/issues/1615 ### Describe the bug Any app run will crash: ``` Termination Reason: Namespace DYLD, Code 1 Library missing Library not loaded: @rpath/AFNetworking.framework/AFNetworking Referenced from: <B58EDFD9-FB34-3AE6-B99B-EE15FF52083A> /Users/USER/Library/Containers/io.playcover.PlayCover/*/com.garena.gamecenter.app/Garena Reason: tried: '/usr/lib/swift/AFNetworking.framework/AFNetworking' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/AFNetworking.framework/AFNetworking' (no such file), '/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking' (mach-o file (/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking), but incompatible platform (have 'iOS', need 'MacCatalyst')), '/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking' (mach-o file (/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.game (terminated at launch; ignore backtrace) ``` I tried download AFNetworking from github -> build -> but can not move to /usr/lib/swift/ (SIP is disabled) i tried put AFNetworking into /Library/Frameworks/ and `export DYLD_FALLBACK_LIBRARY_PATH=/Library/Frameworks/` not work ### Steps to reproduce Open any app inside Playcover (try reinstall playcover/reinstall playtool / reinstall app) ### Expected behaviour run app normally ### Crash log ```shell ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: Garena [5827] Path: /Users/USER/*/Garena.app/Garena Identifier: com.garena.gamecenter Version: 2.9.12 (2.9.12) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 502 Date/Time: 2024-07-31 02:30:27.1611 +0700 OS Version: macOS 13.6.7 (22G720) Report Version: 12 Anonymous UUID: A8922E08-74CA-19E8-59E1-106195EC04E3 Time Awake Since Boot: 1500 seconds System Integrity Protection: disabled Crashed Thread: 0 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace DYLD, Code 1 Library missing Library not loaded: @rpath/AFNetworking.framework/AFNetworking Referenced from: <B58EDFD9-FB34-3AE6-B99B-EE15FF52083A> /Users/USER/Library/Containers/io.playcover.PlayCover/*/com.garena.gamecenter.app/Garena Reason: tried: '/usr/lib/swift/AFNetworking.framework/AFNetworking' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/AFNetworking.framework/AFNetworking' (no such file), '/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking' (mach-o file (/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking), but incompatible platform (have 'iOS', need 'MacCatalyst')), '/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.gamecenter.app/Frameworks/AFNetworking.framework/AFNetworking' (mach-o file (/Users/aki/Library/Containers/io.playcover.PlayCover/Applications/com.garena.game (terminated at launch; ignore backtrace) ``` ### What version of PlayCover are you using? 3.0.0 ### What version of macOS are you using? Ventura (macOS 13) ### Issue Language - [X] Yes my issue is written in English
Author
Owner

@JecerSE commented on GitHub (Aug 1, 2024):

Have you tried running the nightly version?

<!-- gh-comment-id:2262226204 --> @JecerSE commented on GitHub (Aug 1, 2024): Have you tried running the nightly version?
Author
Owner

@lacvietanh commented on GitHub (Aug 1, 2024):

Have you tried running the nightly version?

same. i think problem on my mac,
/usr/lib/swift/AFNetworking.framework/AFNetworking not exist, how to install into that location? (disable SIP not work)

<!-- gh-comment-id:2263263676 --> @lacvietanh commented on GitHub (Aug 1, 2024): > Have you tried running the nightly version? same. i think problem on my mac, /usr/lib/swift/AFNetworking.framework/AFNetworking not exist, how to install into that location? (disable SIP not work)
Author
Owner

@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 !!!

<!-- gh-comment-id:2264001474 --> @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 !!!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PlayCover#1011
No description provided.