IOS project showing error “An internal error occurred. Editing functionality may be limited” on xcode 7.1

前端 未结 23 2144
春和景丽
春和景丽 2020-12-02 15:34

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

23条回答
  •  再見小時候
    2020-12-02 15:37

    Fixed the problem in my program, hope this can help someone!

    So, this is the process of my fix:

    1. Could not figure out why I was getting this issue, when everything had been working fine.

    2. 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.

    3. 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.

    4. 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.

    5. 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.

    6. 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

    7. I started commenting out snippets of the code to isolate the error.

    8. 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:

    • Compile-time error in your code that is not recognized by the Xcode debugger!

提交回复
热议问题