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

前端 未结 23 2123
春和景丽
春和景丽 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:58

    Super specific but one of compile-time errors that can cause this is putting the keyword 'optional' before a function in a non-objc protocol.

    0 讨论(0)
  • 2020-12-02 15:59

    Close project from File menu and Reopen the project again, the issue is gone.

    0 讨论(0)
  • 2020-12-02 15:59

    Yesterday I had this problem too. I remember I've had it before 1 year too and I remember how to fix it. The reason for the error (in my case) was an error in the code in AppDelegate. Sometimes errors in AppDelegate are the reason for this behaviour of xCode. So if You want to fix it, first try commenting Your code in AppDelegate function by function, until you find the function with the error. Once you find it start uncommenting piece by piece the code in that particular function until you see which code line is breaking everything. Believe me ... This will save you lots of time searching the internet.

    0 讨论(0)
  • 2020-12-02 16:00

    I have deleted XCode 7.1 and installed XCode 7.0.1.

    http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_7.0.1/Xcode_7.0.1.dmg

    This solved the problem.

    0 讨论(0)
  • 2020-12-02 16:00

    I changed Xcode - Preferences - Text Editing, ticked on 'Code Folding Ribbon' and 'Focus code blocks on hover'.

    Cleaned the project and it removed the source editing error.

    0 讨论(0)
提交回复
热议问题