簡體   English   中英

iOs 虛幻引擎的配置證書在一台計算機上有效,但在另一台計算機上無效

[英]iOs Provisioning certificate for Unreal Engine works on one computer but not on another

伙計們,我希望你能幫助我。

早在 2 月份,我就經歷了創建 Apple Developer 證書的所有麻煩,並要求我的導師為我創建一個配置文件並添加我的設備(Apple Developer University Program)。 這一切都適用於我的 MacBookPro,我很高興。 Unreal 會以綠色突出顯示我的配置文件和我作為 iPhone 開發人員的證書。

在此處輸入圖像描述

快進一個月,我正在全球范圍內進行 8 小時的實習。 我做的第一件事是讓我的新導師給我分配一台 iMac,我安裝 Xcode,Unreal,在 Xcode 上設置我的帳戶,為 iMac 創建一個證書,下載配置文件並雙擊它(無論如何都不需要) . 在我的 iPhone 上測試部署一個應用程序並完成,它可以工作。

切換到 Unreal,讓我們測試這個新的 AR 模板,打開項目設置,然后...配置文件為紅色,顯示“未找到有效證書”,我的 iPhone Developer 證書就在下面。 在此處輸入圖像描述

如果我手動導入供應文件,它是相同的“未找到有效證書”問題如果我嘗試構建和部署無論如何我得到這個錯誤:

LogPlayLevel:代碼簽名錯誤:配置文件“bartolomei-provisioning”不包括簽名證書“iPhone 開發人員:Massimo Bortolamei (2HEP25L8WM)”。

LogPlayLevel:代碼簽名錯誤:SDK“iOS 11.2”中的產品類型“應用程序”需要代碼簽名

這沒有任何意義,因為在同一張桌子上的下一台 MacBook Pro 上一切正常!

我嘗試了什么:

  • 玩弄時區並轉移到 GMT 0

  • 檢查我的 Apple Worldwide Developer Relations Certification Authority 是否是最新的。

  • 查看 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:

好的,我能夠找到我認為的解決方案。

我對代碼簽名有非常基本的了解,但是似乎我在MacBookPro上使用的相同密鑰和證書以某種方式鏈接到了我正在使用的配置文件。 在iMac上移動配置文件對於Xcode來說可以很好地工作,因為它可以自動管理事務,不幸的是,Unreal不能這樣做,並且會抱怨缺少簽名密鑰。 然后,我從另一個角度解決了這個問題(因為我在開發中心沒有完整的權限,因為它是一個大學程序),並研究了如何將密鑰從一台計算機導出到另一台計算機。

這完美地解決了這個問題導出/導入證書的問題,Iphone在鑰匙串訪問下的私鑰

對於懶惰的人:在工作的PC上,轉到+和->旁邊的Xcode>首選項>帳戶>小齒輪圖標,請記住輸入密碼,因為它非常重要。

將文件傳輸到另一台計算機,雙擊,輸入密碼,所有內容將自動導入!

關閉並重新打開Xcode首選項並登錄到該帳戶。

在虛幻中,所有內容都應自動導入。

只是記得要從干凈的情況開始(實際上我不得不導入文件兩次),方法是從“鑰匙串”中手動刪除所有密鑰和證書。 這次,虛幻將在預配置文件旁邊顯示“有效”,並且在部署時會詢問鑰匙串密碼。

並做了!

就我而言,我必須:。 更改 Bundle Name 的名稱與 Bunder Identifier com.company.projectname 相同。 復選框:用於包裝菜單中的分發。

這是舊的,但我最近遇到了虛幻引擎 5.1 的類似問題。

在我的例子中,問題是用於創建歌唱請求的私鑰以及證書不在我的鑰匙串中。 它是在另一台機器上創建的。

@MaX 的解決方案解決了這個問題,但在我的情況下,只需使用鑰匙串訪問應用程序導出所述密鑰,然后在目標機器上再次導入它就更直接、更簡單。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM