M1 Mac上无法原生运行app问题

使用MonkeyDev调试时Build成功但是运行出错。

Details


Domain: IDEInstallLocalMacService
Code: 15
Recovery Suggestion: The SINF provided for the bundle at /private/var/containers/Temp/Bundle/Application/3BAE23EB-31C6-4402-BA05-ECDDD405A7E6/MyClipStudioPaint.app is not valid on this platform.
User Info: {
    NSLocalizedFailureReason = "";
}
--


System Information

macOS Version 11.4 (Build 20F71)
Xcode 12.5 (18205) (Build 12E262)
Timestamp: 2021-06-02T07:27:02+08:00

出现这个问题是否与原app开发者禁用在M1 Mac上运行有关?

console log ?

没有console log,上面的是xcode弹窗报错

你还能 build success …
我 build 就报错了

ld: building for Mac Catalyst, but linking in dylib built for iOS, file ‘/opt/MonkeyDev/Frameworks/libsubstrate.dylib’ for architecture arm64

要选 My Mac Designde for iPhone

问题这东西,可以分开考虑

既然你怀疑该app禁止在m1 上运行
那么你就去 appstore上下一个,看看能跑起来不
跑的起来:你怀疑就不对
跑不起来:你的怀疑就ok

如果能跑起来,那么基本确定就是你重打包问题
这个问题,那就仔细分析分析,就o了