映射文件没有匹配的团队标识符

时间:2016-08-28 08:47:56

标签: ios xcode shell codesign

我使用下面的脚本来辞职应用

codesign -f -s "Certificate Name" '--entitlements' 'entitlements.plist' applicationname.app

如果我使用相同的帐户证书对应用进行签名,则会安装。 如果我使用不同的帐户证书对应用程序进行签名,则不会安装。

找到下面的日志

Aug 27 18:43:12 iPad kernel[0] <Notice>: xpcproxy[456] Container: /private/var/mobile/Containers/Data/Application/39A5FAG2-47E3-452H-8B93-700493EGAF4B (sandbox)
Aug 27 18:43:12 iPad kernel[0] <Notice>: AMFI: MyApp(pid 456) - [deny-mmap] mapped file does not have a matching team identifier: /private/var/mobile/Containers/Bundle/Application/7260C0G9-4290-453C-AA5B-A47CDE6273CD/MyApp.app/Frameworks/libswiftObjectiveC.dylib
Aug 27 18:43:12 iPad kernel[0] <Notice>: AMFI: MyApp(pid 456) - [deny-mmap] process has team identifier 3G5GMTYJ2L: /private/var/mobile/Containers/Bundle/Application/7260C0G9-4290-453C-AA5B-A47CDE6273CD/MyApp.app/Frameworks/libswiftObjectiveC.dylib
Aug 27 18:43:12 iPad kernel[0] <Notice>: AMFI: MyApp(pid 456) - [deny-mmap] mapped file has team identifier 9PN3V7LYI4: /private/var/mobile/Containers/Bundle/Application/7260C0G9-4290-453C-AA5B-A47CDE6273CD/MyApp.app/Frameworks/libswiftObjectiveC.dylib
Aug 27 18:43:12 iPad kernel[0] <Notice>: AMFI: MyApp(pid 456) - [deny-mmap] mapped file does not have a matching team identifier: /private/var/mobile/Containers/Bundle/Application/7260C0G9-4290-453C-AA5B-A47CDE6273CD/MyApp.app/Frameworks/libswiftObjectiveC.dylib
Aug 27 18:43:12 iPad kernel[0] <Notice>: AMFI: MyApp(pid 456) - [deny-mmap] process has team identifier 3G5GMTYJ2L: /private/var/mobile/Containers/Bundle/Application/7260C0G9-4290-453C-AA5B-A47CDE6273CD/MyApp.app/Frameworks/libswiftObjectiveC.dylib
Aug 27 18:43:12 iPad kernel[0] <Notice>: AMFI: MyApp(pid 456) - [deny-mmap] mapped file has team identifier 9PN3V7LYI4: /private/var/mobile/Containers/Bundle/Application/7260C0G9-4290-453C-AA5B-A47CDE6273CD/MyApp.app/Frameworks/libswiftObjectiveC.dylib
Aug 27 18:43:12 iPad kernel[0] <Notice>: AMFI: MyApp(pid 456) - [deny-mmap] mapped file does not have a matching team identifier: /private/var/mobile/Containers/Bundle/Application/7260C0G9-4290-453C-AA5B-A47CDE6273CD/MyApp.app/Frameworks/libswiftObjectiveC.dylib
Aug 27 18:43:12 iPad kernel[0] <Notice>: AMFI: MyApp(pid 456) - [deny-mmap] process has team identifier 3G5GMTYJ2L: /private/var/mobile/Containers/Bundle/Application/7260C0G9-4290-453C-AA5B-A47CDE6273CD/MyApp.app/Frameworks/libswiftObjectiveC.dylib
Aug 27 18:43:12 iPad kernel[0] <Notice>: AMFI: MyApp(pid 456) - [deny-mmap] mapped file has team identifier 9PN3V7LYI4: /private/var/mobile/Containers/Bundle/Application/7260C0G9-4290-453C-AA5B-A47CDE6273CD/MyApp.app/Frameworks/libswiftObjectiveC.dylib
Aug 27 18:43:12 iPad ReportCrash[457] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Aug 27 18:43:12 iPad ReportCrash[457] <Notice>: ReportCrash acting against PID 456
Aug 27 18:43:12 iPad locationd[64] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Aug 27 18:43:12 iPad ReportCrash[457] <Notice>: Formulating crash report for process MyApp[456]
Aug 27 18:43:12 iPad com.apple.xpc.launchd[1] (UIKitApplication:com.myapp.test[0xb1b7][456]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
Aug 27 18:43:12 iPad ReportCrash[457] <Notice>: Saved report to /var/mobile/Library/Logs/CrashReporter/MyApp_2016-06-28-184312_iPad.ips
Aug 27 18:43:12 iPad SpringBoard[43] <Warning>: Application 'UIKitApplication:com.myapp.test[0xb1b7]' crashed.
Aug 27 18:43:12 iPad assertiond[58] <Warning>: Could not beset priority of <BKNewProcess: 0x1565bdd0; com.myapp.test; pid: 456; hostpid: -1> to 2, priority: No such process
Aug 27 18:43:12 iPad assertiond[58] <Warning>: Could not set priority of <BKNewProcess: 0x1565bdd0; com.myapp.test; pid: 456; hostpid: -1> to 4096, priority: No such process
Aug 27 18:43:12 iPad locationd[64] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Aug 27 18:43:18 iPad locationd[64] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0 

1 个答案:

答案 0 :(得分:1)

请查看 entitlements.plist

它包含旧帐户的团队标识符。

您必须使用新帐户的团队标识更新团队标识符,然后在应用中签名。

您可以通过在Keychain中查看证书的用户ID 来找到团队标识符,或者

你可以找到它here