I\'m having some issues with the iPhone simulators after upgrading to Lion and XCode 4.1. When I launch the simulator for 4.0, 4.1 or 4.2 (which I restored from Time Machine
You said you upgraded to Lion. Did you install the Lion build of Xcode or the Snow Leopard one? This looks to me like you need to install the Lion build of Xcode on Lion.
edit: The fix is in the comments, putting it here. Recreating the project file using the fresh lion installation and importing the existing source code got things going again.
Ok, so after weeks and weeks, I finally found the solution: fixing my linker flags according to this comment: EXC_BAD_ACCESS when copying or retaining Block
Essentially you change -weak_library /usr/lib/libSystem.B.dylib
to -weak-lSystem
.
I had originally added this because Urban Airship required it.
Kyle. I have been having a hugely similar problem. For the last few days my app crashes on the simulator but works fine on the device. I have been lazy and just testing on the device.
But when I get home tonight, I will try out some things and see if I can resolve it. For me the crash does not happen right upon launch. It happens when I type in the second character in a textField. Nothing bad happens on the first letter. Only on the second.
The crash occurs in one of two places. One is just the same as in yours - in Main. The second is in one of the textfield's callbacks. It randomly alternates. There is no stack trace in the debug window. Because I dont have the computer in front of me, I cannot remember all the details.
One thing we have in common is that I have lion. I am using xcode 4.2
Do you know if the bounty can be extended for a day or two?
You're missing some core functionality for the simulator. Springboard is the name of the app-launcher "desktop" for iOS, and your simulator system seems to think it's unimplemented.
__springboard_unimplemented ()
This discrepency would explain why you're having trouble on the simulator, and not your phone.
I would suggest a full removal of Xcode and the iOS SDK, then reinstall fresh from the App Store.
EDIT: Some of my Googlings:
The last one was buried deep within the confines of Apple-Developer-only territory. It's a text-dump from a forum, so it's not formatted particularly well, but it looks to be the most promising. This looks like the bottom line:
Your app died because something called abort(), as shown in the Application Specific Information. The backtrace shows that abort() was called by __springboard_unimplemented(), which means you're calling a function that is present in the simulator but may not be on the device. That function is mcount_L1(). Calls to mcount_L1() come from profiling tools. To fix this, make sure you have "Generate Profile Code" unchecked in your build settings.
The answer to your problem lies in what you have written: (which I restored from Time Machine).
You are using a restored version of the Simulator that do not match your Xcode 4.1 installation.
Using any Simulator not part of the installed SDK is done at your own risk.
Firstly you can reset your simulator & quit your Xcode. After that you can delete the Application Folder in iPhone Simulator & also delete all derived data from /Library/Developer/Xcode/DerivedData. Then open your project & check whether any framework is missing or not according to your app functionality.