在Info.plist中add Row添加App Transport Security Settingscode
Info.plist
App Transport Security Settings
而后在App Transport Security Settings下添加Allows Arbitrary Loads类型Boolean,值设为YESit
Allows Arbitrary Loads
Boolean
YES