Download

Can't import mobile provision and certificate on Mac, help please

I have OSX 10.11 and UE4.8, 4.9, 4.10 Preview all installed on my machine, and all versions can’t import mobile provision and certificate in the iOS settings panel. When open the settings and click iOS, output logs:



LogTemp:Display: Running Mono...
LogTemp:Display: Setting up Mono
LogTemp:Display: /Users/Shared/UnrealEngine/4.9/Engine /Users/Shared/UnrealEngine/4.9
LogTemp:Display: Executing iPhonePackager certificates Engine -bundlename com.JustZht.PlanetaryEpoch
LogTemp:Display: CWD: /Users/Shared/UnrealEngine/4.9/Engine/Binaries/DotNET/IOS
LogTemp:Display: Initial Dir: /Users/Shared/UnrealEngine/4.9/Engine
LogTemp:Display: Env CWD: /Users/Shared/UnrealEngine/4.9/Engine/Binaries/DotNET/IOS
LogTemp:Display: BranchPath = FincherdeMBP.lan///Users/Shared/UnrealEngine/4.9/Engine/Binaries/DotNET/IOS/../.. --- GameBranchPath = FincherdeMBP.lan///Users/Shared/UnrealEngine/4.9/Engine/Binaries/DotNET/IOS/../..
LogTemp:Display: IPP ERROR: Application exception: System.ArgumentOutOfRangeException: Cannot be negative.
LogTemp:Display: Parameter name: length
LogTemp:Display:   at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in <filename unknown>:0 
LogTemp:Display:   at iPhonePackager.CodeSignatureBuilder.FindCertificates () [0x00000] in <filename unknown>:0 
LogTemp:Display:   at iPhonePackager.Program.Main (System.String] args) [0x00000] in <filename unknown>:0 


and when I click “import provision”, select my provision and hit “Open” , it shows “Importing Provision. Please wait…” for about 10sec and still “No Provisions Found Please import a Provision”, the output log still prints the same



LogTemp:Display: Running Mono...
LogTemp:Display: Setting up Mono
LogTemp:Display: /Users/Shared/UnrealEngine/4.9/Engine /Users/Shared/UnrealEngine/4.9
LogTemp:Display: Executing iPhonePackager certificates Engine -bundlename com.JustZht.PlanetaryEpoch
LogTemp:Display: CWD: /Users/Shared/UnrealEngine/4.9/Engine/Binaries/DotNET/IOS
LogTemp:Display: Initial Dir: /Users/Shared/UnrealEngine/4.9/Engine
LogTemp:Display: Env CWD: /Users/Shared/UnrealEngine/4.9/Engine/Binaries/DotNET/IOS
LogTemp:Display: BranchPath = FincherdeMBP.lan///Users/Shared/UnrealEngine/4.9/Engine/Binaries/DotNET/IOS/../.. --- GameBranchPath = FincherdeMBP.lan///Users/Shared/UnrealEngine/4.9/Engine/Binaries/DotNET/IOS/../..
LogTemp:Display: IPP ERROR: Application exception: System.ArgumentOutOfRangeException: Cannot be negative.
LogTemp:Display: Parameter name: length
LogTemp:Display:   at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in <filename unknown>:0 
LogTemp:Display:   at iPhonePackager.CodeSignatureBuilder.FindCertificates () [0x00000] in <filename unknown>:0 
LogTemp:Display:   at iPhonePackager.Program.Main (System.String] args) [0x00000] in <filename unknown>:0 


is it a mono relative problem? or has anyone experiencing the same? Thanks.
(I have the standalone mono installed on my mac ,and I tested with mono removed to use the bundled mono but still failed)

I also am having the same problem.

My environment is …


MacBook Pro (Retina 15-inch Late 2013)
2.3 GHz Intel Core i7
16 GP 1600 MHz DDr3
NVIDIA GeForce GT 750M 2048 MB

I was setting up a new build machine with the latest OSX SDK and encountered the same problem too on UE4 10.1 using OS X 10.11.2 - El Capitan and Xcode 7.2.
It appears this combination broke the editor trying to retrieve the list of provisioning profiles:

(Note: command line building/packaging works without problems… so as a work around you can issue a command line build to avoid the problem). e.g. the following command line build successfully builds the ipa on my new build machine.

/Users/Shared/UnrealEngine/4.10/Engine/Build/BatchFiles/RunUAT.command BuildCookRun -rocket -nocompile -nocompileeditor -installed -nop4 -project="$projectfile" -cook -stage -archive -archivedirectory="$outputdir" -package -clientconfig=Shipping -ue4exe=UE4Editor -clean -compressed -CookAll -pak -prereqs -distribution -nodebuginfo -targetplatform=IOS -build -utf8output

Error Logs are here (the second log is the good one using OSX Yosemite and Xocd 6.4 with UE4 10.1)

LogTemp:Display: Running Mono…
LogTemp:Display: Setting up Mono
LogTemp:Display: /Users/Shared/UnrealEngine/4.10/Engine /Users/Shared/UnrealEngine/4.10
LogTemp:Display: Executing iPhonePackager certificates Engine -bundlename com.xxx.yyy
LogTemp:Display: CWD: /Users/Shared/UnrealEngine/4.10/Engine/Binaries/DotNET/IOS
LogTemp:Display: Initial Dir: /Users/Shared/UnrealEngine/4.10/Engine
LogTemp:Display: Env CWD: /Users/Shared/UnrealEngine/4.10/Engine/Binaries/DotNET/IOS
LogTemp:Display: BranchPath = xxxx.local///Users/Shared/UnrealEngine/4.10/Engine/Binaries/DotNET/IOS/…/… — GameBranchPath = xxx.local///Users/Shared/UnrealEngine/4.10/Engine/Binaries/DotNET/IOS/…/…
LogTemp:Display: IPP ERROR: Application exception: System.ArgumentOutOfRangeException: Cannot be negative.
LogTemp:Display: Parameter name: length
LogTemp:Display: at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in <filename unknown>:0
LogTemp:Display: at iPhonePackager.CodeSignatureBuilder.FindCertificates () [0x00000] in <filename unknown>:0
LogTemp:Display: at iPhonePackager.Program.Main (System.String] args) [0x00000] in <filename unknown>:0

With OS X Yosemite 10.10.5, and Xcode 6.4, UE4 10.1 … there’s no problem on my old build machine:

> LogTemp:Display: Running Mono…
> LogTemp:Display: Setting up Mono
> LogTemp:Display: /Users/Shared/UnrealEngine/4.10/Engine /Users/Shared/UnrealEngine/4.10
> LogTemp:Display: Executing iPhonePackager certificates Engine -bundlename com.xxx.yyy
> LogTemp:Display: CWD: /Users/Shared/UnrealEngine/4.10/Engine/Binaries/DotNET/IOS
> LogTemp:Display: Initial Dir: /Users/Shared/UnrealEngine/4.10/Engine
> LogTemp:Display: Env CWD: /Users/Shared/UnrealEngine/4.10/Engine/Binaries/DotNET/IOS
> LogTemp:Display: BranchPath = Ches-Mac-mini///Users/Shared/UnrealEngine/4.10/Engine/Binaries/DotNET/IOS/…/… — GameBranchPath = xxx///Users/Shared/UnrealEngine/4.10/Engine/Binaries/DotNET/IOS/…/…
> LogTemp:Display: CERTIFICATE-Name:iPhone Developer: xxxx Validity:VALID,StartDate:2015-08-08T13:31:37.0000000-04:00,EndDate:2016-08-07T13:31:37.0000000-04:00
> LogTemp:Display: CERTIFICATE-Name:iPhone Distribution: xxxx,Validity:VALID,StartDate:2015-08-08T13:37:49.0000000-04:00,EndDate:2016-08-07T13:37:49.0000000-04:00
> LogTemp:Display: CERTIFICATE-Name:Apple iPhone Certification Authority,Validity:VALID,StartDate:2007-04-12T13:43:28.0000000-04:00,EndDate:2022-04-12T13:43:28.0000000-04:00
> LogTemp:Display: CERTIFICATE-Name:Apple iPhone OS Provisioning Profile Signing,Validity:VALID,StartDate:2008-05-20T22:04:15.0000000-04:00,EndDate:2020-05-20T22:04:15.0000000-04:00