###前提・実現したいこと
http://docs.fabo.io/swift/uikit/009_uiwebview.html
を使ったswiftの学習中にエラーを吐かれて、コードの確認をしても問題はなさそう(エラー文から見るとinfo.plistの方に問題があるのかな?なんて思っています)です。
info.plistを編集すること自体初めてなので、あれこれ聞いてしまったらすみません。。
###発生している問題・エラーメッセージ
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
###該当のソースコード
swift
1(info.plist) 2 3 4<?xml version="1.0" encoding="UTF-8"?> 5<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 6<plist version="1.0"> 7<dict> 8 <key>CFBundleDevelopmentRegion</key> 9 <string>en</string> 10 <key>CFBundleExecutable</key> 11 <string>$(EXECUTABLE_NAME)</string> 12 <key>CFBundleIdentifier</key> 13 <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> 14 <key>CFBundleInfoDictionaryVersion</key> 15 <string>6.0</string> 16 <key>CFBundleName</key> 17 <string>$(PRODUCT_NAME)</string> 18 <key>CFBundlePackageType</key> 19 <string>APPL</string> 20 <key>CFBundleShortVersionString</key> 21 <string>1.0</string> 22 <key>CFBundleVersion</key> 23 <string>1</string> 24 <key>LSRequiresIPhoneOS</key> 25 <true/> 26 <key>UILaunchStoryboardName</key> 27 <string>LaunchScreen</string> 28 <key>UIMainStoryboardFile</key> 29 <string>Main</string> 30 <key>UIRequiredDeviceCapabilities</key> 31 <array> 32 <string>armv7</string> 33 </array> 34 <key>NSAppTransportSecurity</key> 35 <dict> 36 <key>NSExceptionDomains</key> 37 <dict> 38 <key>www.info.io</key> 39 <dict> 40 <key>NSExceptionAllowsInsecureHTTPLoads</key> 41 <true/> 42 </dict> 43 </dict> 44 </dict> 45 <key>UISupportedInterfaceOrientations</key> 46 <array> 47 <string>UIInterfaceOrientationPortrait</string> 48 <string>UIInterfaceOrientationLandscapeLeft</string> 49 <string>UIInterfaceOrientationLandscapeRight</string> 50 </array> 51</dict> 52</plist> 53
###補足情報(言語/FW/ツール等のバージョンなど)
xcode8.3.3
swift3.1
###画像追加しました。
回答2件
あなたの回答
tips
プレビュー