Iphonesimulator (SDK not found)

Hi all,

I’m new to this whole Unity/Xcode thing, and I’m running into some problems that I haven’t been able to find answers to. I’m able to build my Unity project for my physical iOS device, but I have been unable to get the build to work for the simulator.

I’m running Unity 3.5.6f4, and Xcode 4.5.2.

In Unity, in iOS Player Settings > Other Settings, I have API Compatibility Level set to .NET 2.0 Subset, SDK version is iOS Simulator latest, and Target iOS version is 6.0.

When I try to build the Xcode project, however, I get a bunch of errors and I can’t figure out how to get it to build properly. I’m building the Unity-iPhone-simulator > iPad 6.0 Simulator target, but I get these Mach-O Linker errors when I try to build. Xcode architecture is set to i386, as is Valid Architectures. The weird thing I see is that “Base SDK” is set to “iphonesimulator (SDK not found),” which looks like a red flag to me.

Am I just missing something? Has anyone else had similar problems?

Can you reproduce the problem with newly created empty project?

i am running into the similar problem. i want to make screenshots for retina 4 inch display, but i do not have the device so i am trying to run in simulator through xcode. i have iOS6.1 and it gives me similar errors just like original poster described, iphonesimulator (sdk missing), i installed iphone simulator 6.1 sdk but no luck. any ideas?

here are the linker errors i have, any ideas about them:

 ld: warning: directory not found for option '-L"/Users/mirko/Dropbox/Unity'
    ld: warning: directory not found for option '-LProjects/Project3D'
    ld: warning: directory not found for option '-LProject/Project3D/Builds/iOS/S3D"'
    ld: warning: directory not found for option '-L"/Users/mirko/Dropbox/Unity'
    ld: warning: directory not found for option '-LProjects/Project3D'
    ld: warning: directory not found for option '-LProject/Project3D/Builds/iOS/S3D/Libraries"'
    0  0x10a87b098  __assert_rtn + 144
    1  0x10a87e431  mach_o::relocatable::Section<x86>::addRelocFixup(mach_o::relocatable::Parser<x86>, macho_relocation_info<Pointer32<LittleEndian> > const*) + 1781
    2  0x10a88e636  mach_o::relocatable::Section<x86>::makeFixups(mach_o::relocatable::Parser<x86>, mach_o::relocatable::Parser<x86>::CFI_CU_InfoArrays const) + 90
    3  0x10a88aaad  mach_o::relocatable::Parser<x86>::parse(mach_o::relocatable::ParserOptions const) + 1433
    4  0x10a8820c3  mach_o::relocatable::Parser<x86>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const) + 313
    5  0x10a87faa1  mach_o::relocatable::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const) + 149
    6  0x10a8a033a  archive::File<x86>::makeObjectFileForMember(archive::File<x86>::Entry const*) const + 794
    7  0x10a89fb50  archive::File<x86>::forEachAtom(ld::File::AtomHandler) const + 198
    8  0x10a8b176c  ld::tool::InputFiles::forEachInitialAtom(ld::File::AtomHandler) + 420
    9  0x10a8ba884  ld::tool::Resolver::resolve() + 44
    10  0x10a87b380  main + 370
    11  0x10a86ccd4  start + 52
    A linker snapshot was created at:
    	/tmp/Project3DSystem-2013-02-20-134511.ld-snapshot
    ld: Assertion failed: (src.atom != NULL), function addRelocFixup, file /SourceCache/ld64/ld64-136/src/ld/parsers/macho_relocatable_file.cpp, line 5468.

Try to set target to lower version !

1201791--48171--$K17RC.png

Yes,I had met this problem at my frist time to run a game on simulator. At last I found the SDK version must be the same .if you selected 4.1 in unity3d, then you must run it on 4.1 version simulator.
Does it give you any helps?

Hi, I’m facing the same issue but I can’t make it work. It doesn’t matter if Unity3d and xcode run the same version of iOS.
Any help would be really appreciated! :smile:

I’ve found the solution to this. You can find it here: http://forum.unity3d.com/threads/ios8-xcode6-compatibility.249533/page-2#post-1769753

Hi all, this is very frustrating! I can reproduce this problem with an empty project. I am using Unity 5.1.2 and Xcode 7.1
I just created an empty project, set Target SDK to ‘Simulator SDK’ and built the Xcode project. In Xcode at Base SDK there is ‘iphonesimulator (SDK not found)’ and there is no other build scheme than ‘Unity-iPhone → MyMac’ which of course does not start a simulator. Setting the Deployment Target in Xcode to the same as in Unity’s ‘Target minimum iOS version’ doesn’t change anything. I am an experienced developer with over 5 years experience in Unity and Xcode. I worked with simulator builds quite often without any problem until now. Does anyone please have a suggestion what to do to get the iOS simulator working again?

Any help would be very appreciated - we are not able to publish our Apps without having the possibility to test with the simulator… :frowning:

Ok, sorry - meanwhile I found a solution… it seems to be the case that some Unity versions do not like some Xcode versions. In my case the problem has to do with Xcode 7.1
Because I didn’t want to Update Xcode I used this ‘hack’ I found in a forum (iOS Xcode Simulator Problem - Unity Engine - Unity Discussions):

  • Clicked on Unity-iPhone in the Xcode project navigator pane (under PROJECT)

  • Selected the Build Settings tab

  • Changed Supported Platforms from iphonesimulator to iOS in the Architectures section

  • Changed iOS Deployment target from 4.0 to iOS 9.0 in the (null) - Deployment section (scroll down and down)

  • Clicked on Unity-iPhone in the Xcode project navigator pane (under TARGETS)

  • Selected the Build Settings tab

  • Changed Supported Platforms from iphonesimulator to iOS in the Architectures section

  • Changed iOS Deployment target from 4.0 to iOS 9.0 in the (null) - Deployment section (scroll down and down)

  • Changed the ‘My Mac’ scheme to a simulator, such as iPhone 6s Plus

I was then able to select the Run button and it successfully launched the simulator with my app.

NOTE: I did NOT change the Base SDK from iphonesimulator (SDK not found) in the Architectures section

Hi @Pikku73 ,
The build settings for newer Xcodes have slightly changed making older versions of Unity’s (such as 5.1.x) Xcode project generation break. Newer versions of Unity have fixed this issue. I’m glad you were able to find a solution.
Cheers,
Chris

Hate to ruin the party, but i have the exact same issue with 5.4.0F1

Hi!, yeah like screenname_taken , i have this issue in recent versions (5.3.6p1 y 5.4.0f3) : ( any solution? please , i need upload my app to Facebook revisions and they ask for a simulator build. Thanks

@christophergoy Any new input on this issue?

Hey @screenname_taken ,
Can you file a bug and post the case number here? I will take a look at this as soon as I can.
Cheers,
Chris

Well i submitted a report for something else, but the same project is the one that does the sdk not found thing.
Vase 820049.

@screenname_taken ,
Thanks, I’ll have a look.
Cheers,
Chris

Same issue with Unity 5.3.5f1 and XCode 7.3.1 - Also the General section of the settings is not visible, I cannot change my bundle id and other settings there.

@christophergoy Any news on this? for a workaround at least? I really need screenshots for the app store!

Hey @screename_taken,
I have not been able to get to this yet. I noticed that the case you posted here was closed by QA. Were you able to get any good feedback from them? If not, please open another bug with this specific simulator issue, attach your unity project, and post the case number here, otherwise it’s hard to keep track of what needs to get done.
Cheers,
Chris