質問編集履歴
2
手順をより詳しく書き直した。
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -24,10 +24,38 @@ | |
| 24 24 | 
             
            ### 該当のソースコード
         | 
| 25 25 |  | 
| 26 26 | 
             
            ```swift
         | 
| 27 | 
            +
            // Copyright 2016 Google Inc. All Rights Reserved.
         | 
| 28 | 
            +
            //
         | 
| 29 | 
            +
            // Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 30 | 
            +
            // you may not use this file except in compliance with the License.
         | 
| 31 | 
            +
            // You may obtain a copy of the License at
         | 
| 32 | 
            +
            //
         | 
| 33 | 
            +
            // http://www.apache.org/licenses/LICENSE-2.0
         | 
| 34 | 
            +
            //
         | 
| 35 | 
            +
            // Unless required by applicable law or agreed to in writing, software
         | 
| 36 | 
            +
            // distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 37 | 
            +
            // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 38 | 
            +
            // See the License for the specific language governing permissions and
         | 
| 39 | 
            +
            // limitations under the License.
         | 
| 27 40 |  | 
| 28 41 | 
             
            import UIKit
         | 
| 29 42 | 
             
            import SwiftyJSON      <--16行目 (!)No such module 'SwiftyJSON' 
         | 
| 30 43 |  | 
| 44 | 
            +
            class ViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
         | 
| 45 | 
            +
                let imagePicker = UIImagePickerController()
         | 
| 46 | 
            +
                let session = URLSession.shared
         | 
| 47 | 
            +
                
         | 
| 48 | 
            +
                @IBOutlet weak var imageView: UIImageView!
         | 
| 49 | 
            +
                @IBOutlet weak var spinner: UIActivityIndicatorView!
         | 
| 50 | 
            +
                @IBOutlet weak var labelResults: UITextView!
         | 
| 51 | 
            +
                @IBOutlet weak var faceResults: UITextView!
         | 
| 52 | 
            +
                
         | 
| 53 | 
            +
                var googleAPIKey = "API_KEY"
         | 
| 54 | 
            +
                var googleURL: URL {
         | 
| 55 | 
            +
                    return URL(string: "https://vision.googleapis.com/v1/images:annotate?key=(googleAPIKey)")!
         | 
| 56 | 
            +
                }
         | 
| 57 | 
            +
                
         | 
| 58 | 
            +
                (以下略)
         | 
| 31 59 |  | 
| 32 60 | 
             
            ```
         | 
| 33 61 |  | 
1
手順をより詳しく書き直した。
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -4,8 +4,15 @@ | |
| 4 4 | 
             
            ・[Google Cloud Vision API の 光学式文字認識(OCR)機能 試してみた](https://developers.freee.co.jp/entry/2017/12/10/001258)
         | 
| 5 5 | 
             
            ・[Cloud Vision Swift Sample](https://github.com/GoogleCloudPlatform/cloud-vision/blob/master/ios/Swift/README.md)
         | 
| 6 6 |  | 
| 7 | 
            -
            上から2番目の記事を参考にしてCloudVisionを使って画像から文字を検出し文字起こしするアプリを作ろうとしています。 | 
| 7 | 
            +
            上から2番目の記事を参考にしてCloudVisionを使って画像から文字を検出し文字起こしするアプリを作ろうとしています。(以下の手順で本来は成功するはずなのですが。。。)
         | 
| 8 8 |  | 
| 9 | 
            +
            ```
         | 
| 10 | 
            +
            $ git clone https://github.com/GoogleCloudPlatform/cloud-vision.git
         | 
| 11 | 
            +
            $ cd cloud-vision/ios/Swift
         | 
| 12 | 
            +
            $ pod install
         | 
| 13 | 
            +
            ```
         | 
| 14 | 
            +
             | 
| 15 | 
            +
             | 
| 9 16 | 
             
            ### 環境
         | 
| 10 17 | 
             
            Xcode:Version 10.1 (10B61)
         | 
| 11 18 | 
             
            swift:3.0
         | 
