I just created one new cordova ios project via CLI, and i opened that project in Xcode 7.1 and while running on simulator am getting some error on mainViewController.xib, if
Unfortunately, this error is pretty generic and doesn't point to an actual cause. If you look at the error report generated by Xcode, you might be able to get more context to figure out what is going on.
Common causes include:
Fixed the problem in my program, hope this can help someone!
So, this is the process of my fix:
Could not figure out why I was getting this issue, when everything had been working fine.
I tried the following:
Cleaning project
Deleting DerivedData
Creating new, identical View Controllers to see if the issue was just in those particular views. (the same issue occurred)
Deleting and Reinstalling Xcode
Restarting my Computer.
Asking on StackOverflow.
(Finally) Submitting a TSI, which got redirected to Apple Bug Reporter.
I made a new swift file for the View Controller that was having the issue, and it compiled, showing that is was not an issue with the View Controller itself.
I started getting an error: "Command failed due to signal: Segmentation fault: 11" (on the file associated with the View that did not work), which is really ambiguous. This error looks as if it would be an error occurring in a segue (jumping from one View Controller to another) but the code itself would not compile. After digging into the error, I realized the code stopped compiling at that swift file.
So, I copy-pasted the code from the swift file (the one causing problems) into the Notes application and I deleted the swift file from the Application.
Little by little, I started taking code from the file that did not work (in Notes) and putting it into the file that did work until the error came up:
Command failed due to signal: Segmentation fault: 11
I started commenting out snippets of the code to isolate the error.
After finding the error line, I realized it was just an error that caused all of these issues. A simple fix that the debugger did not recognize as a routine error. So, I fixed it and it works!
And for those of you less inclined to read
Summary of what your problem may be:
This happened to me in Xcode 10.2, while editing .xib file. Trying to clear de derived data didn't help me. What solved the problem was change the device for prototyping in the interface builder, it forced the IB to render again and solved the problem.
from my side, its RAM issue. I have remove others application.Then it works normally.
Mine caused from creating a bad constraint so I fixed the constraint and everything is working now.
Xcode 7.3.1
In my case, the error was caused by the following line:
print("|" + board[x][y])
Changed to:
print("| \(board[x][y])")
After that, I did a Product -> Clean (Command+Shift+K) That fixed the issue.
PS: board[x][y] is a [[Character]], if that matters. I copy-pasted my Java Class into Xcode to edit it into Swift.