如何重新签名具有框架的iOS应用程序?

时间:2016-07-28 00:03:00

标签: ios xamarin codesign

我一直在尝试使用客户的证书和配置文件重新签名.ipa文件。我用了命令:

codesign -f --deep -s "Customer Certificate" --entitlements entitlements.plist Payload/MyApp.app

但是,在设备上安装应用程序后,它会在启动时崩溃并出现以下错误:

kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] mapped file does not the same team identifier as main process: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] process has team identifier U78696: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] mapped file has team identifier 67CU: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios

在线搜索后,似乎解决方案也是签署框架:

codesign -f --deep -s "Customer Certificate" --entitlements entitlements.plist Payload/MyApp.app/Frameworks/libskia_ios.framework

但是,即使这样做,应用程序仍然会崩溃并出现相同的错误。还有什么想法可以改变吗?如果能提供任何额外的见解,我已经附上了完整的启动崩溃日志。

------启动崩溃的完整错误------------

SpringBoard[47] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
SpringBoard[47] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
SpringBoard[47] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
kernel[0] <Notice>: xpcproxy[1240] Container: /private/var/mobile/Containers/Data/Application/C893244B-079E-4B43-8F20-5A2 (sandbox)
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] mapped file does not the same team identifier as main process: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] process has team identifier U78696: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] mapped file has team identifier 67CU: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
com.apple.xpc.launchd[1] (UIKitApplication:U78696.com.ng.cort[0x5e49][1240]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
assertiond[60] <Warning>: Unable to obtain a task name port right for pid 1240: (os/kern) failure (5)
SpringBoard[47] <Warning>: Unable to register for exec notifications: No such process
SpringBoard[47] <Warning>: Unable to obtain a task name port right for pid 1240: (os/kern) failure (5)
SpringBoard[47] <Warning>: Unable to obtain a task name port right for <FBApplicationProcess: 0x19d5eb60; U78696.com.ng.cort; pid: 1240>
SpringBoard[47] <Warning>: Application 'UIKitApplication:U78696.com.ng.cort[0x5e49]' crashed.
SpringBoard[47] <Warning>: Application '(null)' exited for an unknown reason.
ReportCrash[1241] <Error>: assertion failed: 13F69: libsystem_trace.dylib + 15927 [FCFC8D6B-F8E1-3577-84A7-8A591C88D8]: 0x0
Unknown[1241] <Error>: 

ReportCrash[1241] <Error>: Process:             MyApp [1240]
    Path:                /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/MyApp
    OS Version:          iOS 9.3.2 (13F69)
ReportCrash[1241] <Error>: Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
    Triggered by Thread:  0
ReportCrash[1241] <Error>: Dyld Error Message:
    Dyld Message: Library not loaded: @rpath/libskia_ios.framework/libskia_ios
    Referenced from: /var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/MyApp
    Reason: no suitable image found.  Did find:
        /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios'
        Dyld Version: 390.7
ReportCrash[1241] <Error>: Error Formulating Crash Report:
    Failed while requesting activity/breadcrumb diagnostics

0 个答案:

没有答案