dyld: Symbol not found: error how to resolve this issue

后端 未结 6 1672
無奈伤痛
無奈伤痛 2020-12-01 22:09

I have the following code (given below) where I am using NSURLConnection for connecting and parsing the response string. But I am getting the following error:

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 22:45

    dyld errors are caused by a missing or a bad library linking, not code.

    Double check your frameworks links, do not hesitate to delete/recreate the links, taking care of iOS version you are taking your frameworks from. (usually use the Xcode provided list, do not browse for files)

    In your case I won't be surprised that linking /System/Library/Frameworks/Security.framework is an error, since it doesnt look like belonging to iOS SDK, looking at its path...

    Which I guess should be instead something like: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/Security.framework

提交回复
热议问题