Random NSLAYOUT Error - ios

Out of nowhere without changing anything or uploading to a new version I can't build my app anymore because of some strange error which never occurred before in the past year and I see no way to solve them
I already cleaned my build, restarted Xcode, tried another test device, restarted my Mac and so on, nothing helped.
I even reconnected the outlet...
More over this error first only occurred on my real device, like 1 hour later also on any simulator...
Any idea?

Related

Xcode 6 crash when hitting run, persistent error in code

Xcode 6 won't build when I run simulator on mac or on my own ipad...
The last run in failed to build because of an error, which I fixed. Yet the error message, telling me that addObject is not a member, which clearly nonsensical, still remains in the code. I rewrote the code around the error and nothing is making it disappear, not restarting Xcode or my computer has helped either. I assume this has something to do with the crash.
Any idea what I can do?
For the error in the code, hit command+shift+k to clean your project. This might fix your problem.
If it still occurs, even after rebooting and restarting Xcode I'd recommend to reinstall Xcode completely: deinstall it first (using CleanMyMac for instance) and then download and install it.
Hope this helps :)

Stale Requests on iOS simulator

I am getting stale requests for all my web-service calls when running on iOS simulator, however running on a device runs perfectly fine
I've compared the calls themselves using Charles, and they are getting made exactly the same
This is only happening in one particular computer, I've tried running on simulator on other PC's and they also run fine, using the exact same project settings, through an SVN checkout
I've tried deleting derived data in Xcode, doing a clean, reset content and settings, uninstalling/re-installing Xcode... even creating a new account on the PC and installing a fresh copy of Xcode there, but the problem persists..
Any ideas on what the problem could be?
Greatly appreciated
Really old, but it might help someone... I had manually changed the time on my computer, so the time that was sent in the request from the simulator being received by the server mismatched, causing these stale requests apparently... (re-checking set date and time automatically, fixed this issue)

Xcode does not run the app on simulator. (App exited unexpectedly)

I'm developing for iPad (iOS 7), using Xcode 5.0.2.
Yesterday morning I was playing around with the app (my first app) and every time I ran it, it was displayed in the emulator perfectly. But after some 5/6 runs Xcode just stopped launching my app in the simulator. I started to receive this message:
MagazineManager exited unexpectedly - lost connection
Image:
I've been researching since yesterday morning for a solution with no luck. I even uninstalled and reinstalled Xcode, cleared the cache, delete folders... all that drama thinking it could be some sort of cache problem.
Then, going online I've tried lots of "solutions", none worked.
I've tried all listed here: Xcode suddenly stopped running project on hardware: "Could not launch xxx.app: .. No such file.."
and here:https://discussions.apple.com/message/23431537#23431537
and in more places.
After all my "try this, try that" I'm stuck with the same problem. I can only see a black screen at the simulator (image below) and that message at Xcode!
In my extensive research I've read that people are still able to debug using their iPad's. The problem is that I got the new iPad air, that's only getting here dec, 20th!! So I don't have a place to test my app[s].
Thanks!
UPDATE
Just got this message in the debugger console:
013-12-09 20:23:25.902 sim[607:303] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin/sim: Did not find an executable file at the path: '/Users//Library/Developer/Xcode/DerivedData/MagMan-bvhhiijesvrvuteunbmpsxcqgsst/Build/Products/Debug-iphonesimulator/MagMan.app'
My problem was the debugger. Actually, it still is.
The way I solved, and have been doing for every new project, was to disable the debugger and then run the project. That way I'm able to use the app on the simulator but without the debugging functionality.
I don't know what the problem is, what is causing this debugger issue in my case, but for now that's the best I could come up with. Thanks to the friends that replied to my question and helped my research I was able to test it and disable it.
This is how I disabled the debugger:
Project > Edit scheme
Set Debugger to None
If anyone knows a solution for this, feel free to answer this question and I'll make sure to update the selected answer accordingly.
Again, thanks for all your time and patience, specially #Popeye and #HotLicks that spent a lot of their time trying to help me.
Sometimes the simulator can be a bit flaky and just needs resetting. In the navigation bar at the top of the screen when the simulator is visible try:
iOS Simulator --> Reset Content and Settings...
This should reset all the settings and remove the content so all data, images, apps etc will be removed, its like it has never run before.
UPDATE
The answer on XCode5 can't install app on iOS simulator indicates the following
I found a "Fix" for this. After trying everything and getting the same error on "My App", I opened and tried to run "My App 2". "My App 2" ran fine, so I went back to "My App", tried again and this time everything worked fine. Crazy
If that doesn't work leave a comment and I will have another look.
Delete the app and restart your iPad it will work

Running app crashes iPhone5S and forces hard reset with the error "failed to get task for process" on the second launch only

I have been at this for hours and am about to start flipping tables. This problem cropped up out of nowhere after working on this app successfully for about a month. No changes to build settings or build schemes or anything that I can think of.
If I build and run the app on an iPhone 4 I have no problems at all. If I build and run the app on an iPhone5S it will:
On the first attempt: Build successfully, appear to install the app on the device and launch it, but then fail with "error: failed to launch '.../MyApp.app' -- NotFound".
On the second attempt: Build, run, have a happy little debug session and everything is perfectly fine and dandy.
On the third attempt: Build successfully, begin to launch the app, and then will fail with "error: failed to launch '.../MyApp.app' -- Failed to get task for process -1". The phone will then become unresponsive, and the only way to bring it back is a hard reset.
Once or twice throughout the past few weeks I've had this problem happen, but after resetting everything was fine. Turning on or off building for arm64 doesn't seem to make a difference, and I can't think of anything else that would be different between the two devices.
Even a hint would be appreciated.
UPDATE: I changed the build scheme to "Wait for app to be launched manually", and by launching it myself after it's been built it seems to avoid the crashing. Obviously this doesn't fix whatever the underlying problem is, but at least I can function now.
Looks like this is a known bug, and it's resolved in Xcode 5.0.2.
I'm experiencing this very same issue but the workaround I've found is to disconnect and reconnect the phone before running the app. Using this workaround, I haven't experienced the error as frequently as otherwise, but it's still a rather tedious process...
This problem is known back to first Xcode 5 Previews. It helps to disconnect and connect the phone again. MY worst experience was Preview 4 with iPad. It till happens occasionally, but very rare compared to before.

"failed to get to process -1"

i have this big problem with my iOS Developer (i guess).
Sometimes (every 2 or 3 times) when i run my app on my iPhone 5S it stops and the error "failed to get to process -1" appears. After that my iPhone is stuck and frozen and i have to reset it (Power + HomeButton). I searched through the web and found that it has something to do with the Code Signing.
Something like "Only use iOS Developer" and "code signing entitlements only for debug" i tried like every variant with this, but without success. It is kind of weird, because all the others with the same problem seem to have it all the time. My iPhone only gets stuck every now and then.
I have already reseted it to defaults and tried it again, no success. I deleted the Provisioning Profile and add it again, but again with no success.
It's a real pain.
Here is a screenshot of my settings that i used to use:
And here the error:
I did nothing, it just occurred and it happens in every project,
Can you guys help me? I am really tired of this problem and i am not able to find a solution.
I am running XCode 5.0.1 on the latest OS X Mavericks. On my iPhone 5S i have the latest iOS 7.0.3.
Thanks in advance!
Same problem here, seems related to xcode 5.0.1. Rolling back to 5.0.0 solved the issue.

Resources