LoginSignup
53

More than 5 years have passed since last update.

posted at

updated at

XCode7(iOS9)にして最初に出たエラーと対策方法とか

Swift2でのSyntaxエラー対応

XCode menu bar -> Edit -> Convert -> To Latest Swift Syntax...

Objective-Cベースのプロジェクトで
一部Swift製ライブラリを使用していた程度だったので
ほぼこれで問題なかった

does not contain bitcodeエラー

->Xcode7GMでビルドすると「does not contain bitcode.」とか言われる

非SSL/TLSサイトのデータが取得できない

アプリ内から非SSL/TLSサイトにアクセスすると、以下のログがでてブロックされる

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.

特定ドメインでATSを無効にする設定は .plistに以下のように追記

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>your.domain.com</key>
        <dict>
            <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
            <true/>
        </dict>
    </dict>
</dict>

参考:[iOS 9] iOS 9 で追加された App Transport Security の概要

Localizable.stringが効かない、英語になる

->iOS9で日本語のLocalizable.stringが適用されない

日本語のコードが「ja」から「ja-JP」や「ja-US」などのコードに変更されました。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
53