iOS Building Error

When I tried to package my project to iOS always have same error.
Post on forum. iOS building error - Mobile - Epic Developer Community Forums

Hi,

It looks like it isn’t finding Xcode in /Applications/Developer/Xcode.app. Have you installed Xcode? If so, did you install it to a non-standard location?

-Pete

my Xcode in /applications/xcode.app

ok, we utilize xcrun to run Xcode. Right now on your system, xcrun thinks your Xcode is at /Applications/Developer/Xcode.app. You can change this by running the following in a terminal window:

xcode-select --switch /Applications/Xcode.app

That should resolve your issue.

-Pete

Did it. Getting next error

Also, if that doesn’t work, you might have an environment variable DEVELOPER_DIR set which will override the xcode-select call. If that’s the case, just clear out the environment variable.

env DEVELOPER_DIR=""

Ok, can copy the contents of that output log and post it? That would give me a fuller picture of what is going, but it looks like you don’t have a bundle identifier which matches a mobile provision on your system.

Check the IOS tab Project Settings and look to verify you a) have a mobile provision in the Provision List, b) have a certificate in the Certificate List, and c) that the Bundle Identifier is correct for your project. Strangely, you shouldn’t get this far when this is the case, so having the full log will help me understand why you got to here without tripping any of our provision safeguards.

-Pete

Looks like xcode-select fixed it. We both posted at the same time :slight_smile:

how can I do it?

my log file

My Log File

just now installed 4.7.2 same error. I tried with provision and without it, same issue

Ok, so made it to the signing stage without a provision because of a bug that will be fixed in 4.7.2 (coming out soon). Did you check your IOS Project Settings?

-Pete

Do you have a new log with the 4.7.2 editor?

one moment

Log File 4.7.2

Ok, based on that log, Xcode is failing to find a provision which matches your bundle identifier. However, our validation did find it. Can you look in the Engine install directory (usually /Users/Shared/Unreal Engine) for the following file:

Engine/Intermediate/IOS/UE4Game-Info.plist

Inside of there, check what the CFBundleIdentifier is. The output from Xcode is showing ???your identifier??? which makes me think there are some extra characters getting in to the identifier in the plist. The above plist is generated, so it is possible we have a bug in the generation.

-Pete

in intermediate no folder “iOS”

I just checked by building one of my projects via Launch On and it did create an IOS directory. In

/Users/Shared/UnrealEngine/4.7/Engine/Intermediate

That was with 4.7, updating to 4.7.2. now, but I expect it would still create the file there.

-Pete

Barring that tho, there should be an Info.plist in

Location of Game Project/Saved/StagedBuilds/IOS

that should be the same one as is generated just copied for creation of the IPA.

-Pete