1 运行中报错
1.1 The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
原因:未使用安全链接(https)。
解决方法:需在info里设置允许非安全链接的访问:打开info.plist -> 添加App Transport Security Settings -> 添加子项Allow Arbitrary Loads,值设为YES。

ld: warning: directory not found for option
简单来说,这个问题分两个方面。
错误如下,这表示是查询 Library 的时候出现的异常。
"directory not found for option '-L/..."
解决方法:
依次 Project -> targets -> Build Setting -> Library Search Paths
删除里面的路径
错误如下, 这表示是查询 Framework 的时候出现的异常。
"directory not found for option '-F/..."
解决方法:
依次 Project -> targets -> Build Setting -> Framework Search Paths
删除里面的路径
参考文献:
https://blog.csdn.net/zhyl8157121/article/details/48844573
duplicate symbol ...
duplicate就是重复的意思,那么看代码 要删除重复的。
网友评论