I have updated my Mac to 10.6.7 with Xcode 4. I am trying to build and run some projects which has downloaded from Internet. I set the deployment target as 4.1/4.2/4.3 and device family as 'iPhone' and trying to build and run the application in Simulator. For ex: i downloaded a project from the following link from GitHub:
http://www.icodeblog.com/2010/10/07/cloning-uiimagepickercontroller-using-the-assets-library-framework/
I set the deployment target as 4.1 or 4.2 or 4.3 and device family as 'iPhone' and trying to build and run the application in Simulator. But Simulator launches and stuck up infinitely. I had to do force quit of simulator, i checked so many times, but the same result. But at the same time, i'm able to build and run some other my projects without any issues. This is happening only for few projects when i run.
What could be the reason here? Is there any settings that i need to make-up?
Please advise me.
Thank you in Advance!
Trash your /Users/{Your name}/Library/Application Support/iPhone Simulator/ directory and rebuild the projects you are having trouble with.
#Kirby Todd Answer perfectly correct with a small change
notifications doesn't show/ doesn't scheduled in Simulator but works in device Problm on Simulator 4.3?
Make Sure we put a copy of "User's" folder existed in iPhone Simulator folder
Thank U #Kirby Todd
Related
Update 2
One of my other targets builds fine to device... looking at the difference in dependencies now.
================
Update
I have now installed new Xcode on a different computer, and I get the same result.
================
I have an app that builds OK to the simulator, but when I build to any device, it fails, and gives no errors.
When I look at the Log Navigator, I see this message:
Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons. Some of these (up to 12) may be listed below.
That is the only error I see. I just installed XCode on this new computer, and it is XCode 4.5, including the iOS6 SDK. My partner is able to build the app just fine to the same devices, but she is on an older version of XCode, without iOS6.
You need to have iOS6 installed on your device to put apps in it. Do you have iOS6 GM on your device?
Make sure your device is on the latest version of iOS i.e iOS6.
I needed to update multiple frameworks I depended on.
I was still on Xcode 4.5.2 when I got this error. Two computer restarts fixed my problem.
Today, m getting strange problem. My app is not running on device(Jailbreak). Earlier I have run other app on the device. Yesterday, I have formatted device, now application is not running on the iPhone - 4.2.1.
I have added all the required things like provisioning profile. I have also checked in apple developer site. that device is added to that portal.
I have targeted my application to 4.2 as my device version is 4.2.1.
No error is coming when m trying to run the app. only it ends in “finished running app on iphone”.
M not getting where and what m missing..
Reset the Simulator . Delete the Build File. And Restart the xCode. And Run the yor Project.I Hope it will help you.
Go to your project and delete the build folder. Clean all the installed provision profile from device then restart Xcode. Hope it will help you.
Delete the Build File, Reset the Simulator , And Restart the xCode. And than run your project. and got output on device.
I'm having a bit of an issue testing my app using my iPhone. Last week I upgraded to Xcode 4.3. I was able to test my apps on my iPhone (which was running iOS 4.3). Today I upgraded my iPhone to iOS 5.1 and now Xcode wont detect my iPhone (btw SDK is 5.1).
I'm not too sure what to do, I've even tried changing the Deployment target in Xcode back down to 4.3, but still nothing.
Make sure the device is "Enabled for development" under Organizer in Xcode. I've seen cases, where Xcode doesn't recognise the device, because it wasn't setup to be a development device.
I had this problem but my device was already enabled for development. Here are the steps I took to get it working.
If you want to cheat, try the last step. That's what got it working for me!
Try restarting both Xcode and the device. Separately.
Make sure you're using the latest iOS SDK under Base SDK (in Targets / Projects > Build Settings) and that it's a greater version that what's running on your device
Check Project > Build Settings > iOS Deployment Target is less or equal to what's on your device.
It turned out, when I'd created a new project, it had chosen an iOS Deployment Target greater than my device version.
I'm using iOS5 GM Seed and created an application using "story board" concept. Now I want to distribute the app to app store and want to set the deployment target to iOS4.2
The app when tested in simulator, its working fine.
When I'm building it for iOS device using development profile to test on device, its giving error: "Story boards are unavailable on iOS 4.3 and prior"
How to resolve this issue and make my app run on ios4.2 as well.
I ran into the same issue today using XCode 4.2. Here is what I did to get it to build correctly:
Set Deployment and Build options back to 5.0.
Clean the project.
Close the project.
Quit XCode.
Restart XCode.
Debug / Build the project.
Since Apple has officially release the XCode 4.2 :
Try closing the project and reopening it after switching to device from simulator.
Worked for me.
I made it work! I do not know how it happened but in build settings, iOS deployment target settings was iOS 4.2 and that is why i got this issue. I set it back to iOS5.0 and nothing more required. It just got to work.
You officially can't do it - Storyboards are supported in iOS 5 and later and are enabled by default for new projects. If your app must run on earlier versions of iOS, though, you cannot use storyboards and should continue to use nib files
I am getting an error while uploading my app on device. It does installs it but not able to upload it.
Also I want to run the instrument tool on device but when I run it shows nothing.
Anyone facing the same issues.
I had this problem after changing around provisioning profiles and app ID's.
What fixed it for me:
Quit XCode
In Terminal.app, navigate to your project directory and execute rm -rf build/
Restart XCode
I also confirm, that I had that issue on Xcode 3.2.5 and iOS 4.2 GM Seed and after adding new provisioning profile.
You do not have to use terminal, you can select *.app from Products Group in 'Groups & Files' pane in Xcode. Then right-click on it, and select 'Reveal in finder'. Then manually delete the build catalogue. And restart Xcode.
Worked for me.
I was getting this issue on an iPhone running 3.0 software, but it was working fine on phones running 3.1. The app used to work on the 3.0 software until we added users to the provisioning for the app - this is the only thing I can think of that might have caused it.
If you're running 3.0 still, try upgrading to 3.1 and see if that fixes it.
I had the same error message in iOS 4.1 but from a different cause: when trying to link to a universal (ARM & X86) static library that was over 10MB. If I link directly to the ARM version of the static library (for iPhones), then it works fine.
Sometimes manual delete of Build folder of your application fails to solve the problem
"Failed to upload the .app on device"
Try
WIndows->organizer->Provisioning profile(in left pane)->refresh it once....
This has solved my problem!