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 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.