Simulator/Device name shows only Unity-iPhone - ios7

Just loaded a project in Unity 3D (4.34f) it is working as desired, Built and Run for iOS devices. works perfect in the Xcode (5.1.1) simulator.
In the Simulator/Device Name is written Unity-iPhone, it does not show neither my iPad or my iphone when connected.
What am I missing? any help?

Easy, happens to me frequently, two choices deselect the Development Build in build settings or in the player settings change the dropdown list of Optimization SDK Version to "Device SDK".
Let me know if works for you....

Related

Library not loaded

I added Social.framework in my application in the same way i use to add the other frame works. I have downloaded xcode 4.5 and iOS 6 . but my application crashes with follwing error only on device. It works fine on simulator.
dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /var/mobile/Applications/FC88291D-2052-45D6-A7BB-65CE340F07BF/Uploading Image.app/Uploading Image
Reason: image not found
I was getting this exact error. My app currently has a deployment target of 5.1. I wanted to add Facebook sharing. I found this old post, Conditionally including a library for different iOS SDK versions?. All I did was set "Social.framework" to 'optional' and it did the trick, then my app would run on ios 5.1 and ios 6.0. Of course you need to do checks at runtime for what OS the device is running otherwise you could run into a crash if you try to access social.framework in ios 5.1 or earlier. Hope that helps!
In Xcode go to targets, Go to build phase and search for Social frame work you will find that under "Link Binary with Libraries" section. There select social frame work and see there is an option on right hand side required/optional in that just change required to optional. Now you are able to run on all ios devices without any crashes.

Where can I find an iPhone simulator for Xcode 3.1.4

My kids want to learn to write apps on their MacBook which currently runs OS version 10.5.8.
I have downloaded Xcode 3.1.4 but it doesn't seem to have the iPhone Simulator.
Does anyone know where I can find this?
(And are their better tags I should use for this question?)
Thanks.
(UPDATE: I down loaded the " xcode 3.2.6 & ios sdk 4.3" dmg file from Apple in the hopes of accessing just the "iPhone simulator" but repeated attempts to open the .dmg file on my OS10.5.8 Macbook result in a complete, "blackscreen" crash.)
I am really very sorry because this is not straight to your question. But if I were you, I'd like to encourage them to start with Android. To me, an open-platform is more preferred. Beside that, Java is a strong/ dynamic language when comparing to C/C++.
Android developer site
Eclipse IDE
Android SDK
ADT plugin for Eclipse
API guides
Training videos
Hope they will like :-)
Are you sure the simulator was not included? One thing to remember is it won't be shown with xcode in your applications folder.
To use the simulator you have to launch it from xcode by pressing the play button in the top left corner of the interface. If you have already used xcode with an iPhone/iPod/iPad make sure you select simulator from the drop down next the play and stop buttons(press and hold to change what is selected).
If you want to make sure you can access the simulator without xcode, launch the simulator as described above and then right click(or ctrl click) the icon for the simulator and select keep in dock from the options menu.
Hopefully the above helps you with your problem. If xcode truly did not come with the simulator your best option is to uninstall xcode(after backing up any projects) and trying a fresh install. Also try checking Apples dev center (https://developer.apple.com/devcenter/ios/index.action) for information about xcode and the simulator.

Am I using Core Location correctly? It doesn't seem to be working

I just started doing some research into Core Location and it seems that the tutorials that I am following are not working for me. Even when I download the source code and run it, nothing happens. At present I have attempted this tutorial. When I run it, I get a popup asking if I want iPhone to use my current location. I press ok, and then nothing happens. Am I supposed to do anything else?
I am also using VMWare, and currently am unsure if this is the cause (although my internet connection works perfectly on it). I'm using base sdk ios 4.3 - running simulator.
In order for location to work, you need to be running the code on an actual device. The latest public iOS SDKs don't yet support location changes in the simulator. The simulator will always return 1 Infinite Loop, Cupertino, CA (Apple's headquarters) as the location.
See the Core Location documentation for more information on using location in your apps. (Although I can't find a citation for the limitation of the simulator at the moment.)
CoreLocation within the simulator is always going to return 1, Infinite Loop, Cupertino, CA, although Xcode 4.1 and iOS 5 have improved support for testing CoreLocation capabilities in the simulator.
iOS5 iPhone simulator supports location simulation.
If you are using 4.3, it does support location in some conditions. I notice that when I am tethering using my iPhone, my iPhone simulator is able to get location from my phone. I can see location update in my simulator when I'm working while commuting in a train. But this update is only through core location. Map gives u Cupertino unless u use iOS5

Problem with upgraded project from iphone sdk3.2 to work on sdk4.0

I had a application that was written for iphone SDK3.2 and now I want that application to be upgraded to full fill multi tasking...
I just compiled it to SDK4.0 actually it has to get upgraded and when the home button is pressed it should 1st go to applicationWillResignActive and then it should goto
applicationDidEnterBackground but my application is not calling applicationDidEnterBackground but it is calling applicationWillTerminate...
Should I need to add any code to prevent this to happen if so, Please any one help me in solving this...
Waiting for reply...
~Raviraja
You need to setup the app to build as follows:
Base SDK: iPhone Device 4.0
iPhone OS Deployment Target: iPhone OS 3.0
They are two separate settings when in the Project > Edit Project Settings section of Xcode.
Hope that helps!
In your 'Info.plist', add 'Application does not run in background' and make sure the checkbox is NOT checked.
Source

Interface builder is unable to open documents of type iPad XIB

I got a application from my teammate, and it is for both iphone and ipad devices (which it is developed under iPhone SDK 3.2).
I have iPhone SDK 3.1.3 installed in my mac book. When i tried to compile the application for iphone simulator i got the following error.
Interface builder is unable to open documents of type iPad XIB.
The above error is for interface builder created for ipad.
My Question is we can't compile the application on iPhone SDK 3.1.3 which the application developed under iPhone SDK 3.2?
Please shed some light of this?
thanks
mindus
Go to your project settings, and delete the line that says Interface Builder Plugin search path or something similar.
the exact line in project.pbxproj is: IBC_PLUGIN_SEARCH_PATHS = "${PROJECT_DIR}/**";
Short answer
Temporarily remove the iPad xib when working with the 3.1.3 SDK. Put them back when you go back to 3.2 and above.
Longer answer
This cropped up for me when compiling against 3.1.3. You can use conditional compiling to get code user newer features to build successfully (see Matt Gallagher's helpful post on conditional compiling).
There may be a smarter way to tell the compiler not to look at the iPad xibs. For testing on the 3.1.3 simulator I simply made a copy all my iPad xibs and then removed them from the xcode project. When going back to my current development set up, you have to put them back. It's a bit of pain, but not that fiddly.
To fix this:
Press Command-1 to go to the project tree
Select your project
The in the right panel select your project, and then click on "Build Settings"
In search field just below the "Build Settings" enter: "Overriding Plug-In"
Now, the only visible setting left should say "Overriding Plug-In and Framework Directory"
Double-click the value and remove all entries using "-" button
Click somewhere else so settings are saved
That should fix it