プログラミングスクール最大70%OFF! ←クリックして見に行く

【Warning】Swift Compiler Warning:Using ‘!’ is not allowed here; treating this as ‘?’ instead

【Warning】Swift Compiler Warning:Using ‘!’ is not allowed here; treating this as ‘?’ instead

エラー解消方法の備忘録_φ(・_・ )

発生したエラー

Using ‘!’ is not allowed here; treating this as ‘?’ instead

翻訳

ここでは、’!’は使用できませんので、代わりに’?’として処理します

原因

翻訳の通り

解決手順

FixボタンでXcodeに修正してもらう(!から?に変更)

参考サイト

なし

Swiftカテゴリの最新記事