【问题标题】:iOs Provisioning certificate for Unreal Engine works on one computer but not on another虚幻引擎的 iOs 配置证书适用于一台计算机,但不适用于另一台计算机
【发布时间】:2018-08-25 01:39:06
【问题描述】:

我希望你们能帮助我。

早在二月份,我就以 Apple Developer 的身份经历了创建证书的所有麻烦,并要求我的导师为我创建一个配置文件并添加我的设备(Apple Developer University Program)。这一切都在我的 MacBookPro 上运行,我很高兴。 Unreal 会以绿色突出显示我的配置文件和我作为 iPhone 开发人员的证书。

快进一个月,我正在全球实习 8 小时。我要做的第一件事是让我的新导师给我分配一台 iMac,我安装 Xcode、Unreal,在 Xcode 上设置我的帐户,为 iMac 创建一个证书,下载配置文件并双击它(无论如何都不需要) .测试在我的 iPhone 上部署一个应用程序并完成,它可以工作。

切换到 Unreal,让我们测试这个新的 AR 模板,打开项目设置,然后......配置文件是红色的,上面写着“未找到有效证书”,我的 iPhone 开发人员证书就在此处。

如果我手动导入配置文件,则会出现相同的“未找到有效证书”问题 如果我仍然尝试构建和部署,我会收到此错误:

LogPlayLevel:代码签名错误:配置文件 “bartolomei-provisioning”不包括签名证书“​​iPhone 开发商:Massimo Bortolamei (2HEP25L8WM)"。

LogPlayLevel:代码签名错误:产品类型“应用程序”需要代码签名 在 SDK 'iOS 11.2'

这没有任何意义,因为在同一张桌子上的下一台 MacBook Pro 上一切正常!

我尝试了什么:

  • 玩弄时区并切换到 GMT 0

  • 检查我的 Apple 全球开发者关系认证 授权是最新的。

  • 在 Answerhub 上查看很多帖子

  • 多次关闭并重新打开所有内容

  • 一切从头开始

  • 删除文件夹中的所有配置文件 Library/MobileDevice/ProvisioningProfiles 并仅导入手动从开发中心下载的那个。

  • 你的名字

我错过了什么?我还有其他事情要坚持,这不能是一个!感谢您的帮助

LogPlayLevel: ********** STAGE COMMAND STARTED **********
LogPlayLevel: Creating UE4CommandLine.txt
LogPlayLevel: Creating Staging Manifest...
LogPlayLevel: CookPlat IOS, this IOSPlatform
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 16.000683
LogPlayLevel: UPL Init: None
LogPlayLevel: Cleaning Stage Directory: /Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/Saved/StagedBuilds/IOS
LogPlayLevel: Copying NonUFSFiles to staging directory: /Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/Saved/StagedBuilds/IOS
LogPlayLevel: Copying DebugFiles to staging directory: /Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/Saved/StagedBuilds/IOS
LogPlayLevel: Copying UFSFiles to staging directory: /Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/Saved/StagedBuilds/IOS
LogPlayLevel: Running: mono "/Users/Shared/Epic Games/UE_4.19/Engine/Binaries/DotNET/IOS/DeploymentServer.exe" Backup -file "/Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/Saved/StagedBuilds/IOS/Manifest_UFSFiles_IOS.txt" -file "/Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/Saved/StagedBuilds/IOS/Manifest_NonUFSFiles_IOS.txt" -de
vice fb578a13b17996a6436737f8863e068d017d8256 -bundle it.polimi.ARkitTest
LogPlayLevel:   [deploy] Created deployment server.
LogPlayLevel:   [DD] Trying to connect to mobile device running iOS ...
LogPlayLevel:   [DD] Mobile Device 'iPhone di Massimo' connected
LogPlayLevel:   Failed to connect to bundle 'it.polimi.ARkitTest' with Unknown error 0xE80000B7
LogPlayLevel:   [DD]  ... File to be written '/Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/Saved/StagedBuilds/IOS\iPhone di Massimo_Manifest_UFSFiles_IOS.txt'
LogPlayLevel:   [DD]  ... File to be written '/Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/Saved/StagedBuilds/IOS\iPhone di Massimo_Manifest_NonUFSFiles_IOS.txt'
LogPlayLevel:   [DD]  ... Error: Failed to connect to bundle 'it.polimi.ARkitTest'
LogPlayLevel:   [DD]
LogPlayLevel:   Exiting.
LogPlayLevel: Took 3.09494s to run mono, ExitCode=1
LogPlayLevel: ********** STAGE COMMAND COMPLETED **********
LogPlayLevel: ********** PACKAGE COMMAND STARTED **********
LogPlayLevel: Package /Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/ARkitTest.uproject
LogPlayLevel: UPL Init: None
LogPlayLevel: Project: /Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/ARkitTest_IOS.xcworkspace
LogPlayLevel: Running: mono "/Users/Shared/Epic Games/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe" -XcodeProjectFiles -project="/Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/ARkitTest.uproject" -platforms=IOS -game -nointellisense -IOSdeployonly -ignorejunk -nocreatestub -NoHotReload -ignorejunk
LogPlayLevel:   Discovering modules, targets and source code for project...
LogPlayLevel:   Writing project files... 0%33%67%100%
LogPlayLevel: Took 15.178321s to run mono, ExitCode=0
LogPlayLevel: Running: /usr/bin/env UBT_NO_POST_DEPLOY=true /usr/bin/xcrun xcodebuild build -workspace "/Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/ARkitTest_IOS.xcworkspace" -scheme 'ARkitTest' -configuration "Development" -destination generic/platform=iOS -sdk iphoneos CODE_SIGN_IDENTITY="iPhone Developer: Massimo Bortolamei (2HEP25L8WM)" 
PROVISIONING_PROFILE_SPECIFIER=80bdffbe-a8a7-4914-a570-1d62ff3e2ddf
LogPlayLevel:   Build settings from command line:
LogPlayLevel:       CODE_SIGN_IDENTITY = iPhone Developer: Massimo Bortolamei (2HEP25L8WM)
LogPlayLevel:       PROVISIONING_PROFILE_SPECIFIER = 80bdffbe-a8a7-4914-a570-1d62ff3e2ddf
LogPlayLevel:       SDKROOT = iphoneos11.2
LogPlayLevel:   2018-03-15 16:48:49.903 xcodebuild[44958:1128209] +dataWithFirstBytes:1024 ofFile:"/Users/massimobortolamei/Documents/Unreal Projects/ARkitTest/Config/DefaultEditor.ini" failed, errno = 2
LogPlayLevel:   2018-03-15 16:48:51.376 xcodebuild[44958:1128209] +dataWithFirstBytes:1024 ofFile:"/Users/Shared/Epic Games/UE_4.19/Engine/Config/BaseEditorLayout.ini" failed, errno = 2
LogPlayLevel:   2018-03-15 16:48:51.596 xcodebuild[44958:1128209] +dataWithFirstBytes:1024 ofFile:"/Users/Shared/Epic Games/UE_4.19/Engine/Plugins/Experimental/AlembicImporter/Source/ThirdParty/Alembic/alembic/houdini/SOP_AlembicIn/OPalembic/Object_1alembicarchive/Help" failed, errno = 2
LogPlayLevel:   2018-03-15 16:48:51.600 xcodebuild[44958:1128209] +dataWithFirstBytes:1024 ofFile:"/Users/Shared/Epic Games/UE_4.19/Engine/Plugins/Experimental/AlembicImporter/Source/ThirdParty/Alembic/alembic/houdini/SOP_AlembicIn/OPalembic/Object_1alembicxform/Help" failed, errno = 2
LogPlayLevel:   2018-03-15 16:48:52.055 xcodebuild[44958:1128209] +dataWithFirstBytes:1024 ofFile:"/Users/Shared/Epic Games/UE_4.19/Engine/Plugins/Experimental/AlembicImporter/Source/ThirdParty/Alembic/hdf5/tools/testfiles/tmulti-g.h5" failed, errno = 2
LogPlayLevel:   2018-03-15 16:48:52.072 xcodebuild[44958:1128209] +dataWithFirstBytes:1024 ofFile:"/Users/Shared/Epic Games/UE_4.19/Engine/Plugins/Experimental/AlembicImporter/Source/ThirdParty/Alembic/hdf5/tools/testfiles/tnoddlfile.ddl" failed, errno = 2
LogPlayLevel:   2018-03-15 16:48:52.125 xcodebuild[44958:1128209] +dataWithFirstBytes:1024 ofFile:"/Users/Shared/Epic Games/UE_4.19/Engine/Plugins/Experimental/AlembicImporter/Source/ThirdParty/Alembic/hdf5/tools/testfiles/twithddlfile.ddl" failed, errno = 2
LogPlayLevel:   === BUILD TARGET ARkitTest OF PROJECT ARkitTest WITH CONFIGURATION Development ===
LogPlayLevel:   Check dependencies
LogPlayLevel:   Code Signing Error: Provisioning profile "bartolomei-provisioning" doesn't include signing certificate "iPhone Developer: Massimo Bortolamei (2HEP25L8WM)".
LogPlayLevel:   Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
LogPlayLevel:   ** BUILD FAILED **
LogPlayLevel:   The following build commands failed:
LogPlayLevel:     Check dependencies
LogPlayLevel:   (1 failure)
LogPlayLevel: Took 5.906535s to run env, ExitCode=65
LogPlayLevel: ERROR: CodeSign Failed
LogPlayLevel:        (see /Users/massimobortolamei/Library/Logs/Unreal Engine/LocalBuildLogs/UAT_Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=32 (Error_FailedToCodeSign)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 26.393563
LogPlayLevel: RunUAT ERROR: AutomationTool was unable to run successfully.
PackagingResults: Error: Launch failed! Failed to Code Sign

当打开项目设置时会发生这种情况

LogTemp: Running Mono...
LogTemp: Setting up Mono
LogTemp: /Users/Shared/Epic Games/UE_4.19/Engine /Users/Shared/Epic Games/UE_4.19
LogTemp: Executing iPhonePackager certificates Engine -bundlename it.polimi.ARkitTest
LogTemp: CWD: /Users/Shared/Epic Games/UE_4.19/Engine/Binaries/DotNET/IOS
LogTemp: Initial Dir: /Users/Shared/Epic Games/UE_4.19/Engine
LogTemp: Env CWD: /Users/Shared/Epic Games/UE_4.19/Engine/Binaries/DotNET/IOS
LogTemp: BranchPath = Massimos-iMac.local///Users/Shared/Epic Games/UE_4.19/Engine/Binaries/DotNET/IOS/../.. --- GameBranchPath = Massimos-iMac.local///Users/Shared/Epic Games/UE_4.19/Engine/Binaries/DotNET/IOS/../..
LogTemp: CERTIFICATE-Name:iPhone Developer: Massimo Bortolamei (2HEP25L8WM),Validity:VALID,StartDate:2018-03-15T06:28:26.0000000Z,EndDate:2019-03-15T06:28:26.0000000Z
LogTemp: CERTIFICATE-Name:iPhone Developer: Massimo Bortolamei (2HEP25L8WM),Validity:VALID,StartDate:2018-03-15T06:28:26.0000000Z,EndDate:2019-03-15T06:28:26.0000000Z
LogTemp:   Looking for a certificate that matches the application identifier 'EDG8TGNYUA.*'
LogTemp: PROVISION-File:003de59d-3ce0-4c26-83c4-526d9e957553.mobileprovision,Name:iOS Team Provisioning Profile: *,Validity:NO_CERT,StartDate:3/15/2018 6:41:32 AM,EndDate:3/15/2019 6:41:32 AM,Type:DEVELOPMENT
LogTemp:   Looking for a certificate that matches the application identifier 'EDG8TGNYUA.*'
LogTemp:   .. Failed to find a valid certificate that was in date
LogTemp: PROVISION-File:80bdffbe-a8a7-4914-a570-1d62ff3e2ddf.mobileprovision,Name:bartolomei-provisioning,Validity:NO_CERT,StartDate:2/23/2018 10:42:23 AM,EndDate:2/23/2019 10:42:23 AM,Type:DEVELOPMENT
LogTemp:   Looking for a certificate that matches the application identifier 'EDG8TGNYUA.*'
LogTemp: PROVISION-File:UE4_003de59d-3ce0-4c26-83c4-526d9e957553.mobileprovision,Name:iOS Team Provisioning Profile: *,Validity:NO_CERT,StartDate:3/15/2018 6:41:32 AM,EndDate:3/15/2019 6:41:32 AM,Type:DEVELOPMENT
LogTemp:   Looking for a certificate that matches the application identifier 'EDG8TGNYUA.*'
LogTemp:   .. Failed to find a valid certificate that was in date
LogTemp: PROVISION-File:UE4_80bdffbe-a8a7-4914-a570-1d62ff3e2ddf.mobileprovision,Name:bartolomei-provisioning,Validity:NO_CERT,StartDate:2/23/2018 10:42:23 AM,EndDate:2/23/2019 10:42:23 AM,Type:DEVELOPMENT
LogTemp:   Looking for a certificate that matches the application identifier 'EDG8TGNYUA.*'
LogTemp:   .. Failed to find a valid certificate that was in date
LogTemp: PROVISION-File:bartolomeiprovisioning.mobileprovision,Name:bartolomei-provisioning,Validity:NO_CERT,StartDate:2/23/2018 10:42:23 AM,EndDate:2/23/2019 10:42:23 AM,Type:DEVELOPMENT
LogTemp: MATCHED-Provision:,File:,Cert:

【问题讨论】:

    标签: ios unreal-engine4 ios-provisioning


    【解决方案1】:

    好吧,我找到了我认为的解决方案。

    我对代码签名有非常基本的了解,但我在 MacBookPro 上使用的相同密钥和证书似乎以某种方式链接到我正在使用的配置文件。 在 iMac 上移动配置文件对于 Xcode 来说可以正常工作,因为它会自动管理事物,不幸的是 Unreal 没有这样做,它会抱怨缺少签名密钥。 然后我从另一个方面解决了这个问题(因为我没有开发中心的完全权限,因为它是一个大学项目)并研究了如何将密钥从一台计算机导出到另一台计算机。

    这完美解决了这个问题 The issues of exporting/importing certificate , private key under keychain access for Iphone

    对于懒人:在工作电脑上转到 Xcode>Preferences>Accounts>+ 和 - 旁边的小齿轮图标 > 导出 记得输入密码,因为这是非常重要的东西。

    将文件传输到另一台电脑,双击,输入密码,一切都会自动导入!

    关闭并重新打开 Xcode 首选项并登录帐户。

    在虚幻中,一切都应该自动导入。

    请记住从干净的情况开始(实际上我不得不导入文件几次)手动删除钥匙串中的所有密钥和证书。 这次虚幻会在配置文件旁边显示“有效”,并且在部署时会询问钥匙串密码。

    完成了!

    【讨论】:

      【解决方案2】:

      就我而言,我必须: .更改 Bundle Name 的名称与 Bunder Identifier com.company.projectname 相同 .复选框:用于包装菜单中的分发。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2016-12-30
        • 2022-09-28
        • 1970-01-01
        • 2012-09-05
        • 1970-01-01
        • 2019-10-22
        • 1970-01-01
        相关资源
        最近更新 更多