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