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

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

    FWIW, here's what fixed this for me:

    I was performing an operation on a value in a dictionary:

    _outcomes[key] *= multiplier
    

    I didn't realize that Swift would treat the value as an optional even though the dictionary is not an optional in this class.

    changing to the following worked:

    _outcomes[key]! *= multiplier
    

提交回复
热议问题