xcode7から8にアップデートして、appstore用にビルドしたら下記のようにエラーになりました。
該当箇所を見ると、書き方がおかしいようなのですが、どう直したらいいか分かりません。
1. While type-checking 'application' at /Users/myname/a/AppDelegate.swift:255:5 2. While type-checking expression at [/Users/myname/AppDelegate.swift:263:13 - line:263:49] RangeText="title = aps["alert"]!!["title"] as! S" 3. /Users/myname/Library/Developer/Xcode/DerivedData/dumunogkzcswgbfcgxogdfxurnob/Build/Intermediates/ArchiveIntermediatesrRelease/BuildProductsPath/release-iphoneos/RealmSwift/RealmSwift.framework/Headers/RealmSwift-Swift.h:254:1: importing 'RealmSwiftObject::objectForKeyedSubscript:'
// 起動中に受け取ったプッシュ通知 func application(application: UIApplication, didReceiveRemoteNotification userInfo:[NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void){ var title = "" var message = "" // ここがおかしい if let aps = userInfo["aps"] { title = aps["alert"]!!["title"] as! String message = aps["alert"]!!["body"] as! String } ...続く }
よろしくおねがいします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/10/18 18:50