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

标签 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 

最佳答案

请查看entitlements.plist

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

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

您可以通过查看钥匙串(keychain)中证书的用户 ID 来找到团队标识符,或者

可以找到here

关于ios - 映射文件没有匹配的团队标识符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39189492/

相关文章:

xcode - 为什么更新到 OSX 10.10 后无法运行 git 命令?

ios - 为应用程序添加试用期。我应该在 Swift (iOS) 中使用 Timer 还是 DispatchQueue?

php - 使用 exec 进行高效的 PHP 编程

ios - 将事件指示器 View 居中到 UITableView

ios - 周围没有任何东西的纹理

Xcode 10 - 图像文字不再可用

bash - 如何从文件列表中删除路径部分并将其复制到另一个文件中?

bash - Grep 跨 Hadoop 文件系统中的多个文件

ios - Swift 中的函数可以返回不同的数据类型吗?

ios - 尝试访问 PFUser 子类的动态属性时出错