右键点击工程右侧info.plist,选择open as --->source code 加入如下两句 <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>